summaryrefslogtreecommitdiff
path: root/kitchen-tests/cookbooks/end_to_end/recipes/tests.rb
blob: b53fc39e178e95caff0132ca329bde1fa1da3bac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#
# Cookbook:: end_to_end
# Recipe:: tests
#
# Copyright:: 2014-2018, Chef Software, Inc.
#

#
# 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

node["network"]["interfaces"].each do |interface_data|
  interface = interface_data[0]
  sysctl_param "net/ipv4/conf/#{interface}/rp_filter" do
    value 0
    ignore_failure true
  end
end