Skip to content

Commit

Permalink
test: Use also tag when running image
Browse files Browse the repository at this point in the history
Now podman shows `image` for given container as string, which was used
when the container was created. So when we expect `busybox:latest` we
need to create it from that.
  • Loading branch information
marusak committed Dec 17, 2020
1 parent 4186998 commit cef7116
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,12 @@ class TestApplication(testlib.MachineCase):

if auth:
# Run two containers as system (first exits immediately)
self.execute(auth, "podman run -d --name test-sh-system alpine sh")
self.execute(auth, "podman run -d --name swamped-crate-system busybox sleep 1000")
self.execute(auth, "podman run -d --name test-sh-system alpine:latest sh")
self.execute(auth, "podman run -d --name swamped-crate-system busybox:latest sleep 1000")

# Run two containers as admin (first exits immediately)
self.execute(False, "podman run -d --name test-sh-user alpine sh")
self.execute(False, "podman run -d --name swamped-crate-user busybox sleep 1000")
self.execute(False, "podman run -d --name test-sh-user alpine:latest sh")
self.execute(False, "podman run -d --name swamped-crate-user busybox:latest sleep 1000")

# Test owner filtering
if auth:
Expand Down Expand Up @@ -786,7 +786,7 @@ class TestApplication(testlib.MachineCase):
self.filter_containers('all')

# run a container
self.execute(auth, "podman run -dit --name swamped-crate busybox sh; podman stop swamped-crate")
self.execute(auth, "podman run -dit --name swamped-crate busybox:latest sh; podman stop swamped-crate")
b.wait(lambda: self.execute(auth, "podman ps --all | grep -e swamped-crate -e Exited"))

b.wait_visible("#containers-containers")
Expand Down Expand Up @@ -874,7 +874,7 @@ class TestApplication(testlib.MachineCase):
self.filter_containers('all')

# Run a container
self.execute(True, "podman run -dit --name swamped-crate busybox sh; podman stop swamped-crate")
self.execute(True, "podman run -dit --name swamped-crate busybox:latest sh; podman stop swamped-crate")
b.wait(lambda: self.execute(True, "podman ps --all | grep -e swamped-crate -e Exited"))
b.click('#containers-containers tbody tr:contains("busybox:latest") td.pf-c-table__toggle button')

Expand Down Expand Up @@ -951,7 +951,7 @@ class TestApplication(testlib.MachineCase):
self.filter_containers('all')

# Run a container
self.execute(True, "podman run -dit --name swamped-crate busybox sh")
self.execute(True, "podman run -dit --name swamped-crate busybox:latest sh")
b.wait(lambda: self.execute(True, "podman ps --all | grep -e swamped-crate"))
b.click('#containers-containers tbody tr:contains("busybox:latest") td.pf-c-table__toggle button')

Expand Down

0 comments on commit cef7116

Please sign in to comment.