diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-09-16 16:38:45 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-16 16:38:45 -0700 |
commit | 8779797e6dc67f34eb9fb7bf8908e77d86a70e74 (patch) | |
tree | badd83d046815aeae0f91ef72f92e4fae01d3810 /kitchen-tests | |
parent | 6cfcd38f11217cf8e4a39ec1b530840242828522 (diff) | |
download | chef-8779797e6dc67f34eb9fb7bf8908e77d86a70e74.tar.gz |
add a test for non-utf8 chars in filenames in the file provider (#5335)
fix non-utf8 filename issues in the file provider (again)
Diffstat (limited to 'kitchen-tests')
-rw-r--r-- | kitchen-tests/cookbooks/base/recipes/default.rb | 4 | ||||
-rw-r--r-- | kitchen-tests/cookbooks/base/recipes/tests.rb | 21 |
2 files changed, 24 insertions, 1 deletions
diff --git a/kitchen-tests/cookbooks/base/recipes/default.rb b/kitchen-tests/cookbooks/base/recipes/default.rb index 2499dcb814..397d50c016 100644 --- a/kitchen-tests/cookbooks/base/recipes/default.rb +++ b/kitchen-tests/cookbooks/base/recipes/default.rb @@ -28,7 +28,7 @@ end include_recipe "build-essential" -include_recipe "#{cookbook_name}::packages" +include_recipe "::packages" include_recipe "ntp" @@ -50,3 +50,5 @@ include_recipe "openssh" include_recipe "nscd" include_recipe "logrotate" + +include_recipe "::tests" diff --git a/kitchen-tests/cookbooks/base/recipes/tests.rb b/kitchen-tests/cookbooks/base/recipes/tests.rb new file mode 100644 index 0000000000..9d9d813865 --- /dev/null +++ b/kitchen-tests/cookbooks/base/recipes/tests.rb @@ -0,0 +1,21 @@ +# +# Cookbook Name:: webapp +# Recipe:: default +# +# Copyright (C) 2014 +# + +# +# this file is for random tests to check specific chef-client internal functionality +# + +file "/tmp/chef-test-ümlauts" do + content "testing UTF-8 char in the filename" +end + +# this caught a regression in 12.14.70 before it was released when i +# ran it in lamont-ci, so added the test here so everyone else other than +# me gets coverage for this as well. +file "/tmp/chef-test-\xFDmlaut" do + content "testing illegal UTF-8 char in the filename" +end |