FM-8400 - add debian10 support (#862)
authorlionce <42546087+lionce@users.noreply.github.com>
Tue, 8 Oct 2019 14:33:40 +0000 (17:33 +0300)
committerWilliam Hurt <hurt.bill@gmail.com>
Tue, 8 Oct 2019 14:33:40 +0000 (07:33 -0700)
* FM-8356 Add support on debian 10

* fix tests for debian10

metadata.json
provision.yaml
spec/acceptance/firewall_attributes_exceptions_spec.rb
spec/acceptance/firewall_attributes_ipv6_exceptions_spec.rb

index 705a1d4abc7bcffc45132853e0812709aac47084..234812c466e39ec167daa9220c5b430ef0a88a4d 100644 (file)
@@ -57,7 +57,8 @@
       "operatingsystem": "Debian",
       "operatingsystemrelease": [
         "8",
-        "9"
+        "9",
+        "10"
       ]
     },
     {
index ffdf1b8e3e5cb560430ce30855d880b92157cdd2..c4a281e44bdd379e7abc0ed77b5796f5e05f874f 100644 (file)
@@ -10,4 +10,4 @@ waffle_el:
   images: ['waffleimage/centos7']
 release_checks:
   provisioner: vmpooler
-  images: ['redhat-5-x86_64', 'redhat-6-x86_64', 'redhat-7-x86_64', 'redhat-8-x86_64', 'centos-5-x86_64', 'centos-6-x86_64', 'centos-7-x86_64', 'oracle-6-x86_64', 'scientific-6-x86_64', 'scientific-7-x86_64', 'debian-8-x86_64', 'debian-9-x86_64', 'sles-11-x86_64', 'sles-12-x86_64', 'sles-15-x86_64', 'ubuntu-1404-x86_64', 'ubuntu-1604-x86_64', 'ubuntu-1804-x86_64']
+  images: ['redhat-5-x86_64', 'redhat-6-x86_64', 'redhat-7-x86_64', 'redhat-8-x86_64', 'centos-5-x86_64', 'centos-6-x86_64', 'centos-7-x86_64', 'oracle-6-x86_64', 'scientific-6-x86_64', 'scientific-7-x86_64', 'debian-8-x86_64', 'debian-9-x86_64', 'debian-10-x86_64', 'sles-11-x86_64', 'sles-12-x86_64', 'sles-15-x86_64', 'ubuntu-1404-x86_64', 'ubuntu-1604-x86_64', 'ubuntu-1804-x86_64']
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