diff options
author | Luke Amdor <luke.amdor@gmail.com> | 2014-04-16 15:25:40 -0700 |
---|---|---|
committer | Bryan McLellan <btm@getchef.com> | 2014-06-05 12:19:41 -0700 |
commit | b88db29b5ab1e388cd8f03f2aa8ce2c3018ff1a5 (patch) | |
tree | 00cb2d4064e1e648a9c09ac4eb53e2d283073001 /spec/integration/knife | |
parent | 5c6492da1466048eb259a523fbf38345c1018567 (diff) | |
download | chef-b88db29b5ab1e388cd8f03f2aa8ce2c3018ff1a5.tar.gz |
making the chef-zero host configurable for knife and chef-client
Diffstat (limited to 'spec/integration/knife')
-rw-r--r-- | spec/integration/knife/common_options_spec.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/integration/knife/common_options_spec.rb b/spec/integration/knife/common_options_spec.rb index 00e3131ed4..c9b16d50c0 100644 --- a/spec/integration/knife/common_options_spec.rb +++ b/spec/integration/knife/common_options_spec.rb @@ -50,6 +50,15 @@ describe 'knife common options' do end end + context 'And chef_zero.host is 0.0.0.0' do + before(:each) { Chef::Config.chef_zero.host = '0.0.0.0' } + + it 'knife raw /nodes/x should retrieve the role' do + knife('raw /nodes/x').should_succeed /"name": "x"/ + Chef::Config.chef_server_url.should == 'http://0.0.0.0:8889' + end + end + context 'and there is a private key' do file 'mykey.pem', <<EOM -----BEGIN RSA PRIVATE KEY----- |