Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backport #51677 to master #55637

Merged
merged 11 commits into from
Dec 14, 2019
Prev Previous commit
Next Next commit
Update integration tests to reflect recent changes
  • Loading branch information
Erik Johnson committed Dec 13, 2019
commit a24862e310c7bc7ebf989ff877dc71688c475472
5 changes: 3 additions & 2 deletions tests/integration/states/test_docker_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -1156,10 +1156,11 @@ def test_run_failhard(self, name):
'docker_container.run',
name=name,
image=self.image,
command=RUNTIME_VARS.SHELL_FALSE_PATH,
command='/bin/false',
failhard=True)
self.assertSaltFalseReturn(ret)
ret = ret[next(iter(ret))]
log.critical('ret = %s', ret)
self.assertEqual(ret['changes']['Logs'], '')
self.assertTrue(
ret['comment'].startswith(
Expand All @@ -1172,7 +1173,7 @@ def test_run_failhard(self, name):
'docker_container.run',
name=name,
image=self.image,
command=RUNTIME_VARS.SHELL_FALSE_PATH,
command='/bin/false',
failhard=False)
self.assertSaltTrueReturn(ret)
ret = ret[next(iter(ret))]
Expand Down