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