Skip to content

Commit

Permalink
test: Adjust expected default RestartPolicy value
Browse files Browse the repository at this point in the history
containers/podman#22322 changes the reported
default restart policy from "" to "no". Accept both forms for the time
being, until all supported OSes have podman ≥ 5.1.
  • Loading branch information
martinpitt committed Apr 15, 2024
1 parent bc0e2b0 commit 0031bc9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/check-application
Original file line number Diff line number Diff line change
Expand Up @@ -2538,7 +2538,8 @@ class TestApplication(testlib.MachineCase):

container_name = 'none'
create_container(container_name)
self.assertEqual(self.getRestartPolicy(auth, container_name), '{ 0}')
# format changed in podman 5.1 (https://github.com/containers/podman/pull/22322)
self.assertIn(self.getRestartPolicy(auth, container_name), ['{ 0}', '{no 0}'])

container_name = 'restart'
create_container(container_name, 'always')
Expand Down

0 comments on commit 0031bc9

Please sign in to comment.