summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTensibai <tensibai@iabis.net>2019-05-02 22:22:39 +0000
committerTensibai <tensibai@iabis.net>2019-05-02 22:22:39 +0000
commitfb4776ca9f8d8d12a15d0cd10451bae8b29ca185 (patch)
tree8edb4837d50e82a4abcc40e13c833e18ad44c661
parent61b913af34f1b769eaf2281145beed3f591c2f7e (diff)
downloadchef-fb4776ca9f8d8d12a15d0cd10451bae8b29ca185.tar.gz
Fix a sentence in run_lock and the knife test to match the latest output changes
Signed-off-by: Tensibai <tensibai@iabis.net>
-rw-r--r--lib/chef/run_lock.rb2
-rw-r--r--spec/unit/knife_spec.rb10
2 files changed, 6 insertions, 6 deletions
diff --git a/lib/chef/run_lock.rb b/lib/chef/run_lock.rb
index 513bfd8849..84b43afc19 100644
--- a/lib/chef/run_lock.rb
+++ b/lib/chef/run_lock.rb
@@ -96,7 +96,7 @@ class Chef
# Waits until acquiring the system-wide lock.
#
def wait
- Chef::Log.warn("#{Chef::Dist::PRODUCT} client #{runpid} is running, will wait for it to finish and then run.")
+ Chef::Log.warn("#{Chef::Dist::PRODUCT} #{runpid} is running, will wait for it to finish and then run.")
if Chef::Platform.windows?
mutex.wait
else
diff --git a/spec/unit/knife_spec.rb b/spec/unit/knife_spec.rb
index f48ab4019c..7e05bec8f7 100644
--- a/spec/unit/knife_spec.rb
+++ b/spec/unit/knife_spec.rb
@@ -472,7 +472,7 @@ describe Chef::Knife do
allow(knife).to receive(:username).and_return("sadpanda")
knife.run_with_pretty_exceptions
expect(stderr.string).to match(%r{ERROR: You authenticated successfully to http.+ as sadpanda but you are not authorized for this action})
- expect(stderr.string).to match(%r{ERROR: There are proxy servers configured, your .* server may need to be added to NO_PROXY.})
+ expect(stderr.string).to match(%r{ERROR: There are proxy servers configured, your server url may need to be added to NO_PROXY.})
expect(stderr.string).to match(%r{Response: y u no administrator})
end
end
@@ -508,9 +508,9 @@ describe Chef::Knife do
allow(knife).to receive(:run).and_raise(Net::HTTPClientException.new("406 Not Acceptable", response))
knife.run_with_pretty_exceptions
- expect(stderr.string).to match(/The request that .* sent was using API version 10000000/)
- expect(stderr.string).to match(/The .* server you sent the request to supports a min API verson of 0 and a max API version of 1/)
- expect(stderr.string).to match(/Please either update your .* client or server to be a compatible set/)
+ expect(stderr.string).to match(/The request that .* sent was using API version 10000000./)
+ expect(stderr.string).to match(/The server you sent the request to supports a min API verson of 0 and a max API version of 1./)
+ expect(stderr.string).to match(/Please either update your .* or the server to be a compatible set./)
end
it "formats 500s nicely" do
@@ -588,7 +588,7 @@ describe Chef::Knife do
expected_message = <<~MSG
ERROR: Could not establish a secure connection to the server.
Use `.* ssl check` to troubleshoot your SSL configuration.
- If your .* Server uses a self-signed certificate, you can use
+ If your server uses a self-signed certificate, you can use
`.* ssl fetch` to make .* trust the server's certificates.
MSG
expect(stderr.string).to match(expected_message)