Skip to content

Commit

Permalink
XXX debug/amplify tests
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Jul 12, 2023
1 parent 95ff9e1 commit b15258e
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 22 deletions.
22 changes: 0 additions & 22 deletions packit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
31 changes: 31 additions & 0 deletions test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -1514,6 +1516,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)

Expand Down Expand Up @@ -1541,6 +1552,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)

Expand Down Expand Up @@ -1638,6 +1652,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")

Expand Down Expand Up @@ -2581,6 +2597,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
Expand Down Expand Up @@ -2628,6 +2656,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, [])
Expand Down

0 comments on commit b15258e

Please sign in to comment.