diff options
Diffstat (limited to 'spec/integration/knife/node_create_spec.rb')
-rw-r--r-- | spec/integration/knife/node_create_spec.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/spec/integration/knife/node_create_spec.rb b/spec/integration/knife/node_create_spec.rb index 93a2f9ce6f..e8f6d71694 100644 --- a/spec/integration/knife/node_create_spec.rb +++ b/spec/integration/knife/node_create_spec.rb @@ -1,5 +1,5 @@ # -# Copyright:: Copyright 2013-2016, Chef Software Inc. +# Copyright:: Copyright (c) Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -14,6 +14,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +require "spec_helper" require "support/shared/integration/integration_helper" require "support/shared/context/config" require "openssl" @@ -33,13 +34,13 @@ describe "knife node create", :workstation do it "creates a new validator node" do knife("node create bah").should_succeed out - knife("node show bah").should_succeed /Node Name: bah/ + knife("node show bah").should_succeed(/Node Name: bah/) end it "refuses to add an existing node" do pending "Knife node create must not blindly overwrite an existing node" knife("node create bah").should_succeed out - expect { knife("node create bah") }.to raise_error(Net::HTTPServerException) + expect { knife("node create bah") }.to raise_error(Net::HTTPClientException) end end |