Skip to content

Commit

Permalink
test: Adjust for podman inspect change for "all addresses"
Browse files Browse the repository at this point in the history
containers/podman#21601 changes the output for
"bind port to all addresses" from "" to "0.0.0.0". Adjust the test to
accept either format.
  • Loading branch information
martinpitt committed Feb 10, 2024
1 parent ace1f90 commit 8ff9402
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -1903,9 +1903,9 @@ class TestApplication(testlib.MachineCase):
'7001/tcp')

ports = self.execute(auth, "podman inspect --format '{{.NetworkSettings.Ports}}' busybox-with-tty")
self.assertIn('5000/tcp:[{ 6000}]', ports)
self.assertRegex(ports, r'5000/tcp:\[{(0.0.0.0)? 6000}\]')
self.assertIn('5001/udp:[{127.0.0.1 6001}]', ports)
self.assertIn('8001/tcp:[{ ', ports)
self.assertIn('8001/tcp:[{', ports)
self.assertIn('9001/tcp:[{127.0.0.2 ', ports)
self.assertNotIn('7001/tcp', ports)

Expand Down

0 comments on commit 8ff9402

Please sign in to comment.