Skip to content

Commit

Permalink
test: Adjust expected error message for port conflict to podman 5.0.2
Browse files Browse the repository at this point in the history
podman 5.0.2 in CentOS 9 stream changes the error message for port
conflicts from "address already in use" to "failed to bind any port".
Accept that as well.
  • Loading branch information
martinpitt authored and allisonkarlitskaya committed May 8, 2024
1 parent 3c8ea2b commit 6d1afe3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -2368,8 +2368,9 @@ class TestApplication(testlib.MachineCase):
b.set_input_text('#run-image-dialog-publish-0-host-port', '5000')
b.set_input_text('#run-image-dialog-publish-0-container-port', '5000')
b.click('.pf-v5-c-modal-box__footer #create-image-create-run-btn')
# Can be "[aA]ddress"
b.wait_in_text(".pf-v5-c-alert", "ddress already in use")
# Can be "[aA]ddress already in use" or "Failed to bind any port" with newer passt
b.wait_visible(".pf-v5-c-alert")
self.assertRegex(b.text(".pf-v5-c-alert"), "[aA]ddress already in use|[fF]ailed to bind any port")

# Changing the port should allow creation of container
b.set_input_text('#run-image-dialog-publish-0-host-port', '5001')
Expand Down

0 comments on commit 6d1afe3

Please sign in to comment.