diff options
author | danielsdeleo <dan@getchef.com> | 2015-04-01 09:20:14 -0700 |
---|---|---|
committer | danielsdeleo <dan@getchef.com> | 2015-04-01 13:35:02 -0700 |
commit | 3c3702b1cf4920844066a5e0c81e04251ae6d120 (patch) | |
tree | 870211dcd72b19e13fb36fd47f4b19a3c9a6ab1b /spec/integration | |
parent | 8157fdea21c913dfb99ee4f8c285d2d64557d4bc (diff) | |
download | chef-3c3702b1cf4920844066a5e0c81e04251ae6d120.tar.gz |
Update integration tests for chefzero URLs
Diffstat (limited to 'spec/integration')
-rw-r--r-- | spec/integration/knife/common_options_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/integration/knife/common_options_spec.rb b/spec/integration/knife/common_options_spec.rb index ec76738b6f..b2e2e3fc2a 100644 --- a/spec/integration/knife/common_options_spec.rb +++ b/spec/integration/knife/common_options_spec.rb @@ -39,7 +39,7 @@ describe 'knife common options', :workstation do it 'knife raw /nodes/x should retrieve the node' do knife('raw /nodes/x').should_succeed( /"name": "x"/ ) - expect(Chef::Config.chef_server_url).to eq('http://localhost:9999') + expect(Chef::Config.chef_server_url).to eq('chefzero://localhost:9999') end end @@ -101,7 +101,7 @@ EOM it 'knife raw -z --chef-zero-port=9999 /nodes/x retrieves the node' do knife('raw -z --chef-zero-port=9999 /nodes/x').should_succeed( /"name": "x"/ ) - expect(Chef::Config.chef_server_url).to eq('http://localhost:9999') + expect(Chef::Config.chef_server_url).to eq('chefzero://localhost:9999') end context 'when the default port (8889) is already bound' do @@ -149,7 +149,7 @@ EOM it 'knife raw -z --chef-zero-port=9999 /nodes/x retrieves the node' do knife('raw -z --chef-zero-port=9999 /nodes/x').should_succeed( /"name": "x"/ ) - expect(Chef::Config.chef_server_url).to eq('http://localhost:9999') + expect(Chef::Config.chef_server_url).to eq('chefzero://localhost:9999') end end end |