summaryrefslogtreecommitdiff
path: root/kitchen-tests
diff options
context:
space:
mode:
authorKapil Chouhan <kapil.chouhan@msystechnologies.com>2019-01-18 17:11:13 +0530
committerKapil Chouhan <kapil.chouhan@msystechnologies.com>2019-01-18 18:42:41 +0530
commit7c00ecf30ea22d67d10e5c848a8c36c50ab31a05 (patch)
tree53d102f3fcf9eecde1220f79eacbea9d14dc13fe /kitchen-tests
parent2f7ad6baf98f1999faa49f5218552911105e0380 (diff)
downloadchef-7c00ecf30ea22d67d10e5c848a8c36c50ab31a05.tar.gz
Fix for Sysctl doesn't work when key has a dot(.) in the name
Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
Diffstat (limited to 'kitchen-tests')
-rw-r--r--kitchen-tests/cookbooks/end_to_end/recipes/tests.rb8
-rw-r--r--kitchen-tests/kitchen.yml1
2 files changed, 9 insertions, 0 deletions
diff --git a/kitchen-tests/cookbooks/end_to_end/recipes/tests.rb b/kitchen-tests/cookbooks/end_to_end/recipes/tests.rb
index 1c9171b9f3..b53fc39e17 100644
--- a/kitchen-tests/cookbooks/end_to_end/recipes/tests.rb
+++ b/kitchen-tests/cookbooks/end_to_end/recipes/tests.rb
@@ -19,3 +19,11 @@ end
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
diff --git a/kitchen-tests/kitchen.yml b/kitchen-tests/kitchen.yml
index 7e654f1491..fd8e5383ea 100644
--- a/kitchen-tests/kitchen.yml
+++ b/kitchen-tests/kitchen.yml
@@ -37,3 +37,4 @@ suites:
- name: end-to-end
run_list:
- recipe[end_to_end::default]
+ - recipe[end_to_end::tests]