summaryrefslogtreecommitdiff
path: root/spec/integration/client
diff options
context:
space:
mode:
authordanielsdeleo <dan@opscode.com>2014-02-19 08:59:41 -0800
committerdanielsdeleo <dan@opscode.com>2014-02-20 12:30:43 -0800
commit0b3498ffb09504225b1019a4a530256407a3e67e (patch)
treef77e83dede0291c980e349987bf286beeff6abcd /spec/integration/client
parent50847457ab95ca651c75c13a45734b25e2129eea (diff)
downloadchef-0b3498ffb09504225b1019a4a530256407a3e67e.tar.gz
Add `-r` flag to chef-client
Diffstat (limited to 'spec/integration/client')
-rw-r--r--spec/integration/client/client_spec.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/integration/client/client_spec.rb b/spec/integration/client/client_spec.rb
index bca9ed4854..6357f1e2c0 100644
--- a/spec/integration/client/client_spec.rb
+++ b/spec/integration/client/client_spec.rb
@@ -215,5 +215,19 @@ EOM
result = shell_out("#{chef_client} -c \"#{path_to('config/client.rb')}\" -o 'x::default' -z", :cwd => chef_dir)
result.error!
end
+
+ it "should complete with success when setting the run list with -r" do
+ file 'config/client.rb', <<EOM
+chef_server_url 'http://omg.com/blah'
+cookbook_path "#{path_to('cookbooks')}"
+EOM
+
+ result = shell_out("#{chef_client} -c \"#{path_to('config/client.rb')}\" -r 'x::default' -z", :cwd => chef_dir)
+ result.stdout.should_not include("Overridden Run List")
+ result.stdout.should include("Run List is [recipe[x::default]]")
+ #puts result.stdout
+ result.error!
+ end
+
end
end