summaryrefslogtreecommitdiff
path: root/spec/unit
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-06-09 17:07:26 -0700
committerTim Smith <tsmith84@gmail.com>2020-06-09 17:27:06 -0700
commit52f68ab3ed7fb0175c0bda97409cb5323b0f74e1 (patch)
treed58d261b0e0111fad9b29b1cfbbfd18162ef3f99 /spec/unit
parent3a713a5388930745a5c5da56b87dfc287c49aada (diff)
downloadchef-52f68ab3ed7fb0175c0bda97409cb5323b0f74e1.tar.gz
Warn during bootstrapping when using validation keyswarn_on_validator_bootstrap
We should highly encourage users to move to validatorless bootstrapping 1) It's more secure 2) It requires less admin work since there no validation key to pass around or rotate This also provides an improved message helping the user to move off the old keys and fixes some bad formatting where the 2nd line was indented about 40 columns. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'spec/unit')
-rw-r--r--spec/unit/knife/bootstrap_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/knife/bootstrap_spec.rb b/spec/unit/knife/bootstrap_spec.rb
index e746c6b936..ff61af43c4 100644
--- a/spec/unit/knife/bootstrap_spec.rb
+++ b/spec/unit/knife/bootstrap_spec.rb
@@ -1729,8 +1729,8 @@ describe Chef::Knife::Bootstrap do
allow(vault_handler_mock).to receive(:doing_chef_vault?).and_return false
end
- it "shows a message" do
- expect(knife.ui).to receive(:info)
+ it "shows a warning message" do
+ expect(knife.ui).to receive(:warn).twice
knife.register_client
end
end