diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-09-16 10:07:10 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-09-16 10:07:10 -0700 |
commit | f690626bfff3f102394b941b67ff28c6c447b476 (patch) | |
tree | 8ec6bae317195c1c7500e1e757e0b4ca6b265fa0 | |
parent | e50207b4315823954a8826fff57ee54140ffc8e2 (diff) | |
download | chef-f690626bfff3f102394b941b67ff28c6c447b476.tar.gz |
add a test for non-utf8 chars in filenames in the file provider
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r-- | kitchen-tests/cookbooks/base/recipes/default.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/kitchen-tests/cookbooks/base/recipes/default.rb b/kitchen-tests/cookbooks/base/recipes/default.rb index 2499dcb814..8d4b11d697 100644 --- a/kitchen-tests/cookbooks/base/recipes/default.rb +++ b/kitchen-tests/cookbooks/base/recipes/default.rb @@ -7,6 +7,14 @@ hostname "chef-travis-ci.chef.io" +file "/tmp/chef-test-ümlauts" do + content "testing UTF-8 char in the filename" +end + +file "/tmp/chef-test-\xFDmlaut" do + content "testing illegal UTF-8 char in the filename" +end + if node["platform_family"] == "debian" include_recipe "ubuntu" apt_update "packages" @@ -28,7 +36,7 @@ end include_recipe "build-essential" -include_recipe "#{cookbook_name}::packages" +include_recipe "::packages" include_recipe "ntp" @@ -50,3 +58,5 @@ include_recipe "openssh" include_recipe "nscd" include_recipe "logrotate" + +include_recipe "::tests" |