summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-02-13 15:14:27 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-02-13 15:14:27 -0800
commit621bec9e651e89ccdb4b627111a4e1e62b69acda (patch)
tree8319461af373909755a882a7046e6ac8bb05b54d /spec
parente150d7dc2c781e230d46f8a23f2c8e17e9de0042 (diff)
downloadchef-621bec9e651e89ccdb4b627111a4e1e62b69acda.tar.gz
fixed a bug in --bootstrap-vault-item
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/knife/bootstrap_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/unit/knife/bootstrap_spec.rb b/spec/unit/knife/bootstrap_spec.rb
index b7c66321c0..d7ef29e114 100644
--- a/spec/unit/knife/bootstrap_spec.rb
+++ b/spec/unit/knife/bootstrap_spec.rb
@@ -48,6 +48,13 @@ describe Chef::Knife::Bootstrap do
expect(File.basename(knife.bootstrap_template)).to eq("chef-full")
end
+ context "with --bootstrap-vault-item" do
+ let(:bootstrap_cli_options) { [ "--bootstrap-vault-item", "vault1:item1", "--bootstrap-vault-item", "vault1:item2", "--bootstrap-vault-item", "vault2:item1" ] }
+ it "sets the knife config cli option correctly" do
+ expect(knife.config[:bootstrap_vault_item]).to be({"vault1"=>["item1", "item2"], "vault2"=>["item1"]})
+ end
+ end
+
context "with :distro and :bootstrap_template cli options" do
let(:bootstrap_cli_options) { [ "--bootstrap-template", "my-template", "--distro", "other-template" ] }