Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

debug TestStorageMountingLUKS.testOverMounting #19476

Closed
wants to merge 3 commits into from
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
51 changes: 0 additions & 51 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
1 change: 0 additions & 1 deletion test/common/testlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -1597,7 +1597,6 @@ def tearDown(self):
self.check_journal_messages()
if not error:
self.check_browser_errors()
self.check_pixel_tests()

shutil.rmtree(self.tmpdir, ignore_errors=True)

Expand Down
45 changes: 45 additions & 0 deletions test/verify/check-storage-mounting
Original file line number Diff line number Diff line change
Expand Up @@ -536,6 +536,11 @@ class TestStorageMountingLUKS(storagelib.StorageCase):
m = self.machine
b = self.browser

self.write_file("/etc/systemd/system/udisks2.service.d/debug.conf",
"[Service]\nExecStart=\nExecStart=/usr/libexec/udisks2/udisksd --debug\n",
post_restore_action="systemctl daemon-reload")
m.execute("systemctl daemon-reload; systemctl try-restart udisks2")

self.login_and_go("/storage")

# Add a disk and make two partitions on it, one on /run/foo
Expand Down Expand Up @@ -609,6 +614,10 @@ class TestStorageMountingLUKS(storagelib.StorageCase):
self.assert_in_configuration(disk + "2", "crypttab", "options", "noauto")
self.assertIn("noauto", m.execute("findmnt --fstab -n -o OPTIONS /run/foo/bar"))

# b.eval_js('window.debugging = "dbus"')
b.cdp.trace = True
m.verbose = True

# Mount them again and check that initializing the disk will
# unmount /run/foo/bar first.

Expand All @@ -620,13 +629,49 @@ class TestStorageMountingLUKS(storagelib.StorageCase):
self.dialog({"passphrase": "vainu-reku-toma-rolle-kaja"})
self.wait_mounted(2, 2)

import time
time.sleep(10)

b.click('button:contains(Create partition table)')
self.dialog_wait_open()
b.wait_text("#dialog tr:nth-child(1) td[data-label=Location]", "/run/foo/bar")
b.wait_text("#dialog tr:nth-child(2) td[data-label=Location]", "/run/foo")
self.dialog_apply()
self.content_row_wait_in_col(1, 0, "Free space")

def testOverMounting2(self):
self.testOverMounting()

def testOverMounting3(self):
self.testOverMounting()

def testOverMounting4(self):
self.testOverMounting()

def testOverMounting5(self):
self.testOverMounting()

def testOverMounting6(self):
self.testOverMounting()

def testOverMounting7(self):
self.testOverMounting()

def testOverMounting8(self):
self.testOverMounting()

def testOverMounting9(self):
self.testOverMounting()

def testOverMounting10(self):
self.testOverMounting()

def testOverMounting11(self):
self.testOverMounting()

def testOverMounting12(self):
self.testOverMounting()


if __name__ == '__main__':
testlib.test_main()
Loading