summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordanielsdeleo <dan@getchef.com>2015-04-01 09:20:14 -0700
committerdanielsdeleo <dan@getchef.com>2015-04-01 09:20:14 -0700
commit6a33eaacdda8fdfdaa56682519cf06a90de68302 (patch)
treefb5c11158d94a532c4fa73e01b2100b8694d4701
parentedbc03163f1aa1aedf4c5929d7e85b6e525a6cff (diff)
downloadchef-socketless-zero.tar.gz
Update integration tests for chefzero URLssocketless-zero
-rw-r--r--spec/integration/knife/common_options_spec.rb6
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