Blame SOURCES/0002-test-Adjust-for-RHEL-7.5-image.patch

57c460
From cd5bce10444b8c1bea0210c94ab25c3b38d4bb0b Mon Sep 17 00:00:00 2001
57c460
From: Martin Pitt <martin@piware.de>
57c460
Date: Sun, 10 Dec 2017 12:13:58 +0100
57c460
Subject: [PATCH 2/6] test: Adjust for RHEL 7.5 image
57c460
57c460
Backported from master commit 42ef1b8c (without the bots/ parts) and
57c460
commits 71b4dd0b4 and 657d49bc65.
57c460
---
57c460
 test/verify/check-docker-storage      | 1 +
57c460
 test/verify/check-journal             | 6 +++---
57c460
 test/verify/check-networking-settings | 6 +++---
57c460
 test/verify/check-ostree              | 4 ++--
57c460
 test/verify/check-packagekit          | 4 ++--
57c460
 test/verify/check-storage-format      | 2 +-
57c460
 test/verify/check-storage-iscsi       | 2 +-
57c460
 test/verify/check-system-info         | 2 +-
57c460
 8 files changed, 14 insertions(+), 13 deletions(-)
57c460
57c460
diff --git a/test/verify/check-docker-storage b/test/verify/check-docker-storage
57c460
index 103ef02..73f6180 100755
57c460
--- a/test/verify/check-docker-storage
57c460
+++ b/test/verify/check-docker-storage
57c460
@@ -41,6 +41,7 @@ def can_manage(machine):
57c460
                               "fedora-testing",
57c460
                               "rhel-7",
57c460
                               "rhel-7-4",
57c460
+                              "rhel-7-5",
57c460
                               "centos-7",
57c460
                               "rhel-atomic",
57c460
                               "fedora-atomic",
57c460
diff --git a/test/verify/check-journal b/test/verify/check-journal
57c460
index c7921bd..fe7c59b 100755
57c460
--- a/test/verify/check-journal
57c460
+++ b/test/verify/check-journal
57c460
@@ -295,7 +295,7 @@ s.send("PRIORITY=3\\nFOO=bar\\n")'
57c460
 
57c460
         b.wait_text("#journal-entry-message", "[no data]")
57c460
 
57c460
-    @skipImage("Newer version of ABRT required", "centos-7", "rhel-7", "fedora-25", "fedora-i386", "fedora-testing", "rhel-7-4")
57c460
+    @skipImage("Newer version of ABRT required", "centos-7", "rhel-7", "fedora-25", "fedora-i386", "fedora-testing", "rhel-7-4", "rhel-7-5")
57c460
     @skipImage("ABRT not available", "debian-stable", "debian-testing", "ubuntu-stable", "ubuntu-1604", "rhel-atomic", "fedora-atomic", "continuous-atomic")
57c460
     def testAbrtSegv(self):
57c460
         b = self.browser
57c460
@@ -330,7 +330,7 @@ s.send("PRIORITY=3\\nFOO=bar\\n")'
57c460
         sel += " .panel-body:contains('signal: 11  executable: ')"
57c460
         b.wait_present(sel)
57c460
 
57c460
-    @skipImage("Newer version of ABRT required", "centos-7", "rhel-7", "fedora-25", "fedora-i386", "fedora-testing", "rhel-7-4")
57c460
+    @skipImage("Newer version of ABRT required", "centos-7", "rhel-7", "fedora-25", "fedora-i386", "fedora-testing", "rhel-7-4", "rhel-7-5")
57c460
     @skipImage("ABRT not available", "debian-stable", "debian-testing", "ubuntu-stable", "ubuntu-1604", "rhel-atomic", "fedora-atomic", "continuous-atomic")
57c460
     def testAbrtDelete(self):
57c460
         b = self.browser
57c460
@@ -366,7 +366,7 @@ s.send("PRIORITY=3\\nFOO=bar\\n")'
57c460
         b.wait_not_present("#journal-entry-fields .nav")
57c460
 
57c460
 
57c460
-    @skipImage("Newer version of ABRT required", "centos-7", "rhel-7", "fedora-25", "fedora-i386", "fedora-testing", "rhel-7-4")
57c460
+    @skipImage("Newer version of ABRT required", "centos-7", "rhel-7", "fedora-25", "fedora-i386", "fedora-testing", "rhel-7-4", "rhel-7-5")
57c460
     @skipImage("ABRT not available", "debian-stable", "debian-testing", "ubuntu-stable", "ubuntu-1604", "rhel-atomic", "fedora-atomic", "continuous-atomic")
57c460
     def testAbrtReport(self):
57c460
         # The testing server is located at verify/files/mock-faf-server.py
57c460
diff --git a/test/verify/check-networking-settings b/test/verify/check-networking-settings
57c460
index b3727b9..349337c 100755
57c460
--- a/test/verify/check-networking-settings
57c460
+++ b/test/verify/check-networking-settings
57c460
@@ -86,7 +86,7 @@ class TestNetworking(NetworkCase):
57c460
 
57c460
         iface = self.add_iface()
57c460
         con_id = self.iface_con_id(iface)
57c460
-        m.execute("nmcli con mod '%s' ipv4.dhcp-hostname foo" % con_id)
57c460
+        m.execute("nmcli con mod '%s' connection.gateway-ping-timeout 12" % con_id)
57c460
 
57c460
         self.login_and_go("/network")
57c460
         self.wait_for_iface(iface)
57c460
@@ -103,8 +103,8 @@ class TestNetworking(NetworkCase):
57c460
 
57c460
         self.assertEqual(m.execute("nmcli -m tabular -t -f ipv4.method con show '%s'" % con_id).strip(),
57c460
                          "shared")
57c460
-        self.assertEqual(m.execute("nmcli -m tabular -t -f ipv4.dhcp-hostname con show '%s'" % con_id).strip(),
57c460
-                         "foo")
57c460
+        self.assertEqual(m.execute("nmcli -m tabular -t -f connection.gateway-ping-timeout con show '%s'" % con_id).strip(),
57c460
+                         "12")
57c460
 
57c460
 if __name__ == '__main__':
57c460
     test_main()
57c460
diff --git a/test/verify/check-ostree b/test/verify/check-ostree
57c460
index b405321..b1f792f 100755
57c460
--- a/test/verify/check-ostree
57c460
+++ b/test/verify/check-ostree
57c460
@@ -114,7 +114,7 @@ def rhsmcertd_hack(m):
57c460
     m.execute("systemctl stop rhsmcertd || true")
57c460
 
57c460
 
57c460
-@skipImage("No OSTree available", "centos-7", "debian-stable", "debian-testing", "fedora-25", "fedora-26", "fedora-27", "fedora-testing", "fedora-i386", "rhel-7", "rhel-7-4", "ubuntu-1604", "ubuntu-stable")
57c460
+@skipImage("No OSTree available", "centos-7", "debian-stable", "debian-testing", "fedora-25", "fedora-26", "fedora-27", "fedora-testing", "fedora-i386", "rhel-7", "rhel-7-4", "rhel-7-5", "ubuntu-1604", "ubuntu-stable")
57c460
 class OstreeRestartCase(MachineCase):
57c460
     provision = {
57c460
         "machine1": { "address": "10.111.113.2/20", "dns": "10.111.113.2" }
57c460
@@ -415,7 +415,7 @@ class OstreeRestartCase(MachineCase):
57c460
 
57c460
         self.allow_restart_journal_messages()
57c460
 
57c460
-@skipImage("No OSTree available", "centos-7", "debian-stable", "debian-testing", "fedora-25", "fedora-26", "fedora-27", "fedora-testing", "fedora-i386", "rhel-7", "rhel-7-4", "ubuntu-1604", "ubuntu-stable")
57c460
+@skipImage("No OSTree available", "centos-7", "debian-stable", "debian-testing", "fedora-25", "fedora-26", "fedora-27", "fedora-testing", "fedora-i386", "rhel-7", "rhel-7-4", "rhel-7-5", "ubuntu-1604", "ubuntu-stable")
57c460
 class OstreeCase(MachineCase):
57c460
     provision = {
57c460
         "machine1": { "address": "10.111.113.2/20", "dns": "10.111.113.2" }
57c460
diff --git a/test/verify/check-packagekit b/test/verify/check-packagekit
57c460
index df4ecfb..bb58fab 100755
57c460
--- a/test/verify/check-packagekit
57c460
+++ b/test/verify/check-packagekit
57c460
@@ -550,7 +550,7 @@ class TestUpdatesSubscriptions(PackageCase):
57c460
         self.candlepin.execute("systemctl start tomcat")
57c460
 
57c460
         # remove all existing products (RHEL server), as we can't control them
57c460
-        m.execute("rm /etc/pki/product-default/*.pem /etc/pki/product/*.pem")
57c460
+        m.execute("rm -f /etc/pki/product-default/*.pem /etc/pki/product/*.pem")
57c460
 
57c460
         # download product info from the candlepin machine and install it
57c460
         product_file = os.path.join(self.tmpdir, "88888.pem")
57c460
@@ -656,7 +656,7 @@ class TestAutoUpdates(PackageCase):
57c460
             self.backend = "apt"
57c460
         elif self.machine.image.startswith("fedora"):
57c460
             self.backend = "dnf"
57c460
-        elif self.machine.image in ["centos-7", "rhel-7", "rhel-7-4"]:
57c460
+        elif self.machine.image in ["centos-7", "rhel-7", "rhel-7-4", "rhel-7-5"]:
57c460
             self.backend = "yum"
57c460
         else:
57c460
             raise NotImplementedError("unknown image " + self.machine.image)
57c460
diff --git a/test/verify/check-storage-format b/test/verify/check-storage-format
57c460
index 2d8a6ac..de5206c 100755
57c460
--- a/test/verify/check-storage-format
57c460
+++ b/test/verify/check-storage-format
57c460
@@ -73,7 +73,7 @@ class TestStorage(StorageCase):
57c460
         check_type("xfs")
57c460
         check_type("ext4")
57c460
         check_type("vfat")
57c460
-        if not m.image in [ "rhel-7", "rhel-7-4", "centos-7" ]:
57c460
+        if not m.image in [ "rhel-7", "rhel-7-4", "rhel-7-5", "centos-7" ]:
57c460
             check_type("ntfs")
57c460
 
57c460
 if __name__ == '__main__':
57c460
diff --git a/test/verify/check-storage-iscsi b/test/verify/check-storage-iscsi
57c460
index 9127fe1..8f1b1a2 100755
57c460
--- a/test/verify/check-storage-iscsi
57c460
+++ b/test/verify/check-storage-iscsi
57c460
@@ -31,7 +31,7 @@ class TestStorage(StorageCase):
57c460
         b.wait_timeout(120)
57c460
 
57c460
         # rhel-7 is missing the iSCSI session API
57c460
-        if m.image in ["rhel-7", "rhel-7-4"]:
57c460
+        if m.image in ["rhel-7", "rhel-7-4", "rhel-7-5"]:
57c460
             self.login_and_go("/storage")
57c460
             # The optional parts of the UI have been configured
57c460
             # properly before the page is shown, so we can now
57c460
diff --git a/test/verify/check-system-info b/test/verify/check-system-info
57c460
index 0031bb6..7353297 100755
57c460
--- a/test/verify/check-system-info
57c460
+++ b/test/verify/check-system-info
57c460
@@ -252,7 +252,7 @@ class TestSystemInfo(MachineCase):
57c460
         self.assertIn("Mon Jun  4 06:34:", m.execute("date"))
57c460
         self.assertIn("EEST 2018\n", m.execute("date"))
57c460
 
57c460
-    @skipImage("No NTP servers config", "centos-7", "continuous-atomic", "rhel-7", "rhel-7-4", "rhel-atomic")
57c460
+    @skipImage("No NTP servers config", "centos-7", "continuous-atomic", "rhel-7", "rhel-7-4", "rhel-7-5", "rhel-atomic")
57c460
     def testTimeServers(self):
57c460
         m = self.machine
57c460
         b = self.browser
57c460
-- 
57c460
2.14.3
57c460