summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2017-07-11 13:07:18 +0100
committerGitHub <noreply@github.com>2017-07-11 13:07:18 +0100
commite43c128179923fa83a71eb1eb37b405a78e2b33a (patch)
tree659d55c2e5dfd498a1b8d52e4cafc664a923886b /spec
parent7888fa95badc3b73fb87d54fb6725eaaa8baefd8 (diff)
parent14ea525805d7948d1ade3234d33bcc9408953b30 (diff)
downloadchef-e43c128179923fa83a71eb1eb37b405a78e2b33a.tar.gz
Merge pull request #6102 from chef/tm/fix-policy-bootstrap
If we don't have a run_list, don't send it
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/knife/bootstrap_spec.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/spec/unit/knife/bootstrap_spec.rb b/spec/unit/knife/bootstrap_spec.rb
index 4201963b7d..736ff9b099 100644
--- a/spec/unit/knife/bootstrap_spec.rb
+++ b/spec/unit/knife/bootstrap_spec.rb
@@ -586,6 +586,10 @@ describe Chef::Knife::Bootstrap do
expect(knife.bootstrap_context.first_boot).to have_key(:policy_group)
end
+ it "ensures that run_list is not set in the bootstrap context" do
+ expect(knife.bootstrap_context.first_boot).to_not have_key(:run_list)
+ end
+
end
# https://github.com/chef/chef/issues/4131