Skip to content

Commit

Permalink
WIP amplify/debug testQualifiedUsers
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Sep 7, 2023
1 parent 7bbf916 commit 7beaf2c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 86 deletions.
47 changes: 0 additions & 47 deletions .github/workflows/unit-tests.yml

This file was deleted.

36 changes: 0 additions & 36 deletions packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,42 +23,6 @@ srpm_build_deps:
# use the nicely formatted release NEWS from our upstream release, instead of git shortlog
copy_upstream_release_description: true
jobs:
- job: tests
identifier: self
trigger: pull_request
targets:
- fedora-38
- fedora-39
- fedora-latest-aarch64
- fedora-development
- centos-stream-8-x86_64
- centos-stream-9-x86_64
- centos-stream-9-aarch64

# current Fedora runs reverse dependency testing against https://copr.fedorainfracloud.org/coprs/g/cockpit/main-builds/
- job: tests
identifier: revdeps
trigger: pull_request
targets:
- fedora-latest-stable
tf_extra_params:
environments:
- artifacts:
- type: repository-file
id: https://copr.fedorainfracloud.org/coprs/g/cockpit/main-builds/repo/fedora-$releasever/group_cockpit-main-builds-fedora-$releasever.repo
tmt:
context:
revdeps: "yes"

# run build/unit tests on some interesting architectures
- job: copr_build
trigger: pull_request
targets:
# 32 bit
- fedora-development-i386
# big-endian
- fedora-development-s390x

# for cross-project testing
- job: copr_build
trigger: commit
Expand Down
2 changes: 1 addition & 1 deletion test/run
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ PREPARE_OPTS=""
RUN_OPTS=""
ALL_TESTS="$(test/common/run-tests --test-dir test/verify -l)"

RE_NETWORKING='Networking|Bonding|TestBridge|Firewall|Team|IPA|AD'
RE_NETWORKING='IPA|AD'
RE_STORAGE='Storage'
RE_EXPENSIVE='HostSwitching|MultiMachine|Updates|Superuser|Kdump|Pages'

Expand Down
19 changes: 17 additions & 2 deletions test/verify/check-system-realms
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,14 @@ class CommonTests:
# b.assert_pixels("#realms-leave-dialog", "realm-leave", [".pf-v5-c-expandable-section__toggle-icon"])
b.click("#realms-op-leave")

with b.wait_timeout(30):
b.wait_not_present("#realms-leave-dialog")
try:
with b.wait_timeout(30):
b.wait_not_present("#realms-leave-dialog")
except testlib.Error:
log = m.execute("cat /var/log/ipaclient-uninstall.log")
print(f"------- /var/log/ipaclient-uninstall.log -------\n{log}\n-------------------------------")
raise
testlib.sit()
wait_number_domains(0)
# re-enables hostname changing
b.wait_visible("#system_information_hostname_button:not([disabled])")
Expand Down Expand Up @@ -286,6 +292,15 @@ class CommonTests:
# sometimes polling for info and joining a domain creates this noise
self.allow_journal_messages('.*org.freedesktop.DBus.Error.Spawn.ChildExited.*')

def testQualifiedUsers2(self):
self.testQualifiedUsers()

def testQualifiedUsers3(self):
self.testQualifiedUsers()

def testQualifiedUsers4(self):
self.testQualifiedUsers()

def testUnqualifiedUsers(self):
m = self.machine
b = self.browser
Expand Down

0 comments on commit 7beaf2c

Please sign in to comment.