From fc382cc09517df4145ad1eb985c0635418a326b5 Mon Sep 17 00:00:00 2001 From: Martin Pitt Date: Mon, 3 Jul 2023 10:21:06 +0200 Subject: [PATCH] XXX debug/amplify tests --- packit.yaml | 22 ----------------- test/check-application | 54 ++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 22 deletions(-) diff --git a/packit.yaml b/packit.yaml index e7c9c9602..1af4f24de 100644 --- a/packit.yaml +++ b/packit.yaml @@ -16,28 +16,6 @@ srpm_build_deps: - npm jobs: - - job: copr_build - trigger: pull_request - targets: - - fedora-37 - - fedora-38 - - fedora-latest-aarch64 - - fedora-development - - centos-stream-9-x86_64 - - centos-stream-9-aarch64 - - centos-stream-8-x86_64 - - - job: tests - trigger: pull_request - targets: - - fedora-37 - - fedora-38 - - fedora-latest-aarch64 - - fedora-development - - centos-stream-9-x86_64 - - centos-stream-9-aarch64 - - centos-stream-8-x86_64 - - job: copr_build trigger: release owner: "@cockpit" diff --git a/test/check-application b/test/check-application index 13934c7a6..121dab5e7 100755 --- a/test/check-application +++ b/test/check-application @@ -564,6 +564,8 @@ class TestApplication(testlib.MachineCase): expected_ws += "ws" self.login(auth) + b.eval_js('window.debugging = "podman"') + b.cdp.trace = True # Check all containers if auth: @@ -1515,6 +1517,15 @@ class TestApplication(testlib.MachineCase): def testCreateContainerSystem(self): self._testCreateContainer(True) + def testCreateContainerSystem2(self): + self._testCreateContainer(True) + + def testCreateContainerSystem3(self): + self._testCreateContainer(True) + + def testCreateContainerSystem4(self): + self._testCreateContainer(True) + def testCreateContainerUser(self): self._testCreateContainer(False) @@ -1542,6 +1553,9 @@ class TestApplication(testlib.MachineCase): b = self.browser container_name = "busybox-downloaded" + b.eval_js('window.debugging = "podman"') + b.cdp.trace = True + b.click("#containers-containers button.pf-v5-c-button.pf-m-primary") b.set_input_text("#run-image-dialog-name", container_name) @@ -1639,6 +1653,8 @@ class TestApplication(testlib.MachineCase): self.execute(False, "podman rmi --all") self.login(auth) + b.eval_js('window.debugging = "podman"') + b.cdp.trace = True b.click("#containers-images button.pf-v5-c-expandable-section__toggle") @@ -2283,6 +2299,8 @@ class TestApplication(testlib.MachineCase): self.execute(False, f"podman rmi {IMG_BUSYBOX}") self.login(auth) + b.eval_js('window.debugging = "podman"') + b.cdp.trace = True b.click("#containers-images button.pf-v5-c-expandable-section__toggle") @@ -2404,10 +2422,31 @@ class TestApplication(testlib.MachineCase): def testHealthcheckSystem(self): self._testHealthcheck(True) + def testHealthcheckSystem2(self): + self._testHealthcheck(True) + + def testHealthcheckSystem3(self): + self._testHealthcheck(True) + + def testHealthcheckSystem4(self): + self._testHealthcheck(True) + @testlib.skipImage("Ubuntu-stable does not get health check run signals", "ubuntu-stable") def testHealthcheckUser(self): self._testHealthcheck(False) + @testlib.skipImage("Ubuntu-stable does not get health check run signals", "ubuntu-stable") + def testHealthcheckUser2(self): + self._testHealthcheck(False) + + @testlib.skipImage("Ubuntu-stable does not get health check run signals", "ubuntu-stable") + def testHealthcheckUser3(self): + self._testHealthcheck(False) + + @testlib.skipImage("Ubuntu-stable does not get health check run signals", "ubuntu-stable") + def testHealthcheckUser4(self): + self._testHealthcheck(False) + @testlib.skipImage("podman-restart not available in debian/ubuntu", *DISTROS_WITHOUT_PODMAN_USER_RESTART) def testPodmanRestartEnabledUser(self): self._testPodmanRestartEnabled(False) @@ -2582,6 +2621,18 @@ class TestApplication(testlib.MachineCase): def testCreatePodUser(self): self._createPod(False) + def testCreatePodUser2(self): + self._createPod(False) + + def testCreatePodUser3(self): + self._createPod(False) + + def testCreatePodUser4(self): + self._createPod(False) + + def testCreatePodUser5(self): + self._createPod(False) + def _createPod(self, auth): b = self.browser m = self.machine @@ -2629,6 +2680,9 @@ class TestApplication(testlib.MachineCase): b.set_file_autocomplete_val("#create-pod-dialog-volume-1 .pf-v5-c-select", rwdir) b.set_input_text('#create-pod-dialog-volume-1-container-path', '/tmp/rw') + b.eval_js('window.debugging = "podman"') + b.cdp.trace = True + b.click("#create-pod-create-btn") b.set_val("#containers-containers-filter", "all") self.waitPodContainer(pod_name, [])