Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions test/verify/check-apps
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import testlib


@testlib.skipWsContainer("Not supported")
@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
@testlib.nondestructive
class TestApps(packagelib.PackageCase):

Expand Down
2 changes: 1 addition & 1 deletion test/verify/check-client
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ exec "$@"
''', timeout=10)
self.m_target.execute("while pgrep -af '([c]ockpit|[s]sh-agent)' >&2; do sleep 1; done",
timeout=30)

@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
def testBeibootNoBridge(self):
# set up target machine: no cockpit
self.m_target.execute("rm /usr/bin/cockpit-bridge; rm -r /usr/share/cockpit")
Expand Down
1 change: 1 addition & 0 deletions test/verify/check-connection
Original file line number Diff line number Diff line change
Expand Up @@ -1183,6 +1183,7 @@ until pgrep -f '^(/usr/[^ ]+/[^ /]*python[^ /]* )?/usr/bin/cockpit-bridge'; do s
self.allow_journal_messages("admin: Executing command .*COMMAND=.*cockpit-bridge --privileged.*")

@testlib.skipBeiboot("test does not make sense in beiboot mode")
@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
def testReverseProxy(self):
m = self.machine
b = self.browser
Expand Down
1 change: 1 addition & 0 deletions test/verify/check-loopback
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import testlib


@testlib.skipWsContainer("cockpit/ws always uses loopback")
@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
@testlib.nondestructive
class TestLoopback(testlib.MachineCase):

Expand Down
5 changes: 3 additions & 2 deletions test/verify/check-metrics
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def applySettings(browser, dialog_selector):


@testlib.skipOstree("no PCP support")
@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
class TestHistoryMetrics(testlib.MachineCase):
def setUp(self):
super().setUp()
Expand Down Expand Up @@ -1032,7 +1033,7 @@ class TestCurrentMetrics(testlib.MachineCase):
b.click("table[aria-label='Top 5 CPU services'] tbody td[data-label='Service'] a:contains('cpu-userhog')")
b.enter_page("/system/services")
b.wait_in_text(".service-name", "/usr/bin/dd if=/dev/urandom of=/dev/null")

@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
def testMemory(self):
b = self.browser
m = self.machine
Expand Down Expand Up @@ -1489,7 +1490,7 @@ class TestMultiCPU(testlib.MachineCase):

self.allow_journal_messages('.*apparmor="DENIED" operation="open" class="file" profile="hostname" name="/proc/sys/net/ipv6/conf/all/disable_ipv6".*')


@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
@testlib.skipOstree("no PCP support")
class TestGrafanaClient(testlib.MachineCase):

Expand Down
4 changes: 3 additions & 1 deletion test/verify/check-packagekit
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import testlib

OSesWithoutTracer = ["debian-*", "ubuntu-*", "fedora-coreos", "centos-10", "rhel-10*"]
OSesWithDnfRestart = ["centos-10", "rhel-10*"]
OSesWithoutKpatch = ["debian-*", "ubuntu-*", "arch", "fedora-*", "centos-*"]
OSesWithoutKpatch = ["debian-*", "ubuntu-*", "arch", "fedora-*", "centos-*", "opensuse-*"]


class NoSubManCase(packagelib.PackageCase):
Expand Down Expand Up @@ -1239,6 +1239,7 @@ ExecStart=/usr/local/bin/{packageName}


@testlib.skipImage("TODO: Arch Linux has no cockpit-ws package, it's in cockpit", "arch")
@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
@testlib.skipWsContainer("no cockpit-ws package with cockpit/ws container")
class TestWsUpdate(NoSubManCase):
def testBasic(self):
Expand Down Expand Up @@ -1836,6 +1837,7 @@ WantedBy=basic.target


@testlib.skipOstree("Image uses OSTree")
@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
@testlib.nondestructive
class TestInstallDialog(NoSubManCase):

Expand Down
3 changes: 1 addition & 2 deletions test/verify/check-reauthorize
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

import testlib


@testlib.nondestructive
class TestReauthorize(testlib.MachineCase):
def testBasic(self):
Expand Down Expand Up @@ -68,7 +67,7 @@ class TestReauthorize(testlib.MachineCase):
b.wait_in_text(".super-channel span", 'result: uid=0')
b.leave_page()
b.check_superuser_indicator("")

@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
def testSudo(self):
m = self.machine
b = self.browser
Expand Down
2 changes: 2 additions & 0 deletions test/verify/check-selinux
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ mv -f ~/.ssh/authorized_keys.test-avc ~/.ssh/authorized_keys

# https://github.com/fedora-selinux/selinux-policy/issues/2947
@testlib.skipDaily("nightly has selinux set to permissive")
@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
class TestSelinux(testlib.MachineCase):
provision = {
"0": {},
Expand Down Expand Up @@ -296,6 +297,7 @@ class TestSelinux(testlib.MachineCase):
@testlib.skipDaily("nightly has selinux set to permissive")
@testlib.skipImage("No cockpit-selinux", "debian-*", "ubuntu-*", "arch")
@testlib.skipOstree("No cockpit-selinux")
@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
@testlib.nondestructive
class TestSelinuxEnforcing(testlib.MachineCase):
def test(self):
Expand Down
1 change: 1 addition & 0 deletions test/verify/check-session
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import testlib


@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
@testlib.nondestructive
class TestSession(testlib.MachineCase):

Expand Down
1 change: 1 addition & 0 deletions test/verify/check-shell-keys
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ class TestKeys(testlib.MachineCase):

# Possible workaround - ssh as `admin` and just do `m.execute()`
@testlib.skipBrowser("Firefox cannot do `cockpit.spawn`", "firefox")
@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
def testPrivateKeys(self):
b = self.browser
m = self.machine
Expand Down
2 changes: 1 addition & 1 deletion test/verify/check-shell-menu
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class TestMenu(testlib.MachineCase):
b.wait_visible("#login")
b.wait_visible("#login-info-message")
b.wait_text("#login-info-message", "You have been logged out due to inactivity.")

@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
def testKeyboardNavigation(self):
b = self.browser
self.login_and_go()
Expand Down
1 change: 1 addition & 0 deletions test/verify/check-sosreport
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import testlib

@testlib.skipOstree("No sosreport")
@testlib.skipImage("No sosreport", "arch")
@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
@testlib.nondestructive
class TestSOS(testlib.MachineCase):

Expand Down
1 change: 1 addition & 0 deletions test/verify/check-ssh-api
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class TestSshDialog(testlib.MachineCase):
self.machine.execute("pkill -ef [s]sh.*ferny.*127.0.0.1")

@testlib.skipImage("FIXME: Assertion failed: UnknownHostDialog needs a host-key and host-fingerprint in error", "rhel-8-10")
@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
def testPassword(self):
m = self.machine
b = self.browser
Expand Down
1 change: 1 addition & 0 deletions test/verify/check-static-login
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import testlib


@testlib.nondestructive
@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
class TestLogin(testlib.MachineCase):
def check_shell(self):
b = self.browser
Expand Down
6 changes: 4 additions & 2 deletions test/verify/check-system-info
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class TestSystemInfo(testlib.MachineCase):

# Switching into and out of FIPS mode is not supported anymore in newer OSes.
self.supportsFIPS = self.machine.image.startswith(("rhel-8", "rhel-9", "centos-9"))

@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
def testBasic(self):
m = self.machine
b = self.browser
Expand Down Expand Up @@ -207,6 +207,7 @@ class TestSystemInfo(testlib.MachineCase):
"sudo: unable to resolve host host1.cockpit.lan: .*")

@testlib.nondestructive
@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
def testMotd(self):
m = self.machine
b = self.browser
Expand Down Expand Up @@ -872,7 +873,7 @@ class TestSystemInfoTime(packagelib.PackageCase):
b.click("#change_systime_btn")
b.click(f"#change_systime button:contains('{mode}')")
b.wait_in_text("#system_information_change_systime #change_systime_btn", mode)

@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
def testTime(self):
m = self.machine
b = self.browser
Expand Down Expand Up @@ -958,6 +959,7 @@ class TestSystemInfoTime(packagelib.PackageCase):
self.assertIn("EEST 2050\n", m.execute("date"))

@testlib.skipImage("timesyncd not available", "rhel*", "centos-*")
@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
def testTimeServersTimesyncd(self):
m = self.machine
b = self.browser
Expand Down
1 change: 1 addition & 0 deletions test/verify/check-system-realms
Original file line number Diff line number Diff line change
Expand Up @@ -1134,6 +1134,7 @@ class TestKerberos(testlib.MachineCase):

@testlib.skipImage("No realmd available", "arch")
@testlib.skipOstree("Package (un)install does not work on OSTree")
@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
class TestPackageInstall(packagelib.PackageCase):

def setUp(self):
Expand Down
3 changes: 3 additions & 0 deletions test/verify/check-system-services
Original file line number Diff line number Diff line change
Expand Up @@ -374,6 +374,7 @@ WantedBy=default.target
b.wait_not_present('#test.service > svg.service-thumbtack-icon-color')

@testlib.nondestructive
@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
def testFilter(self):
b = self.browser

Expand Down Expand Up @@ -655,10 +656,12 @@ WantedBy=default.target
b.click(".pf-v6-c-breadcrumb a:contains('Services')")

@testlib.nondestructive
@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
def testServiceMetrics(self):
self._testServiceMetrics(user=False)

@testlib.nondestructive
@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
def testServiceMetricsSession(self):
self._testServiceMetrics(user=True)

Expand Down
9 changes: 5 additions & 4 deletions test/verify/check-users
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def createUser(

@testlib.nondestructive
class TestAccounts(testlib.MachineCase):

@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
def testBasic(self):
b = self.browser
m = self.machine
Expand Down Expand Up @@ -443,7 +443,7 @@ class TestAccounts(testlib.MachineCase):
check_column_sort("[data-label='ID']", invert=True)
b.click("#accounts-list > thead > tr > th:nth-child(3) > button")
check_column_sort("[data-label='ID']")

@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
def testUserPasswords(self):
b = self.browser
m = self.machine
Expand Down Expand Up @@ -1021,7 +1021,7 @@ class TestAccounts(testlib.MachineCase):
_, _, value = line.partition(":")
return value.strip()
return None

@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
def testExpire(self):
m = self.machine
b = self.browser
Expand Down Expand Up @@ -1118,6 +1118,7 @@ class TestAccounts(testlib.MachineCase):
self.assertEqual(self.accountExpiryInfo("scruffy", "Password expires"), "password must be changed")

@testlib.skipWsContainer("User is not shown as logged in with cockpit/ws")
@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
def testAccountLogs(self):
b = self.browser
m = self.machine
Expand Down Expand Up @@ -1297,7 +1298,7 @@ class TestAccounts(testlib.MachineCase):
b.click("#groups-create-dialog button.pf-m-primary")
b.wait_not_present("#groups-create-dialog")
b.wait_visible('#groups-list td[data-label="Group name"]:contains("saturn")')

@testlib.skipImage("TODO: enable for OpenSUSE", "opensuse-tumbleweed")
def testGroupRename(self):
b = self.browser
m = self.machine
Expand Down
Loading