]> review.fuel-infra Code Review - puppet-modules/puppetlabs-firewall.git/commitdiff
fix tests for debian10 FM-8356
authorlionce <loredana.ionce@puppet.com>
Tue, 8 Oct 2019 11:46:03 +0000 (14:46 +0300)
committerlionce <loredana.ionce@puppet.com>
Tue, 8 Oct 2019 13:45:36 +0000 (16:45 +0300)
spec/acceptance/firewall_attributes_exceptions_spec.rb
spec/acceptance/firewall_attributes_ipv6_exceptions_spec.rb

index f810da251004d56b8b81816a61f2b649452ddf56..c19e1f13fbc1dd67fdd06417cfac0d30120c0cdb 100644 (file)
@@ -9,6 +9,10 @@ describe 'firewall basics', docker: true do
     end
     iptables_flush_all_tables
     ip6tables_flush_all_tables
+    if os[:family] == 'debian' && os[:release] == '10'
+      # in order to avoid this stderr: Warning: ip6tables-legacy tables present, use ip6tables-legacy-save to see them\n"
+      run_shell('update-alternatives --set iptables /usr/sbin/iptables-legacy')
+    end
   end
 
   # --bytecode is only supported by operatingsystems using nftables (in general Linux kernel 3.13, RedHat 7 (and derivates) with 3.10)
index 6811cc86970a45edde53f9983f5d1cf1b437c59a..263ce704a06e7b8b512d61995641d7ee0815209c 100644 (file)
@@ -4,6 +4,10 @@ describe 'firewall ipv6 attribute testing, exceptions' do
   before(:all) do
     iptables_flush_all_tables
     ip6tables_flush_all_tables
+    if os[:family] == 'debian' && os[:release] == '10'
+      # in order to avoid this stderr: Warning: ip6tables-legacy tables present, use ip6tables-legacy-save to see them\n"
+      run_shell('update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy')
+    end
   end
 
   describe 'standard attributes', unless: (os[:family] == 'redhat' && os[:release].start_with?('5', '6')) || (os[:family] == 'sles') do