summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorThom May <thom@may.lt>2018-05-04 17:57:01 +0100
committerGitHub <noreply@github.com>2018-05-04 17:57:01 +0100
commitd0271d9f5f8918acbeb1b592c705584fe993dde1 (patch)
tree90f8c8bc7dc24a5e0902d6a33c20da46699866d5 /spec
parent2678a7b4150a10ebb131f9443c0f9366c9ce1e47 (diff)
parent34a66ec9ab64d740c0d371f7284b8c266b147e3b (diff)
downloadchef-d0271d9f5f8918acbeb1b592c705584fe993dde1.tar.gz
Merge pull request #7223 from chef/windows-open-uri
Trying to use --recipe-url on Windows with local file fails
Diffstat (limited to 'spec')
-rw-r--r--spec/integration/client/client_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/integration/client/client_spec.rb b/spec/integration/client/client_spec.rb
index 201815ef01..8f2364d99a 100644
--- a/spec/integration/client/client_spec.rb
+++ b/spec/integration/client/client_spec.rb
@@ -553,6 +553,12 @@ EOM
result = shell_out("#{chef_client} --recipe-url=http://localhost:9000/recipes.tgz", :cwd => tmp_dir)
expect(result.exitstatus).not_to eq(0)
end
+
+ it "should fail when passed --recipe-url with a file that doesn't exist" do
+ broken_path = File.join(CHEF_SPEC_DATA, "recipes_dont_exist.tgz")
+ result = shell_out("#{chef_client} --recipe-url=#{broken_path}", :cwd => tmp_dir)
+ expect(result.exitstatus).not_to eq(0)
+ end
end
when_the_repository "has a cookbook with broken metadata.rb, but has metadata.json" do