service: detailed error messages for create and start
Fixes: #3355 Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
This commit is contained in:
parent
c3fd6a8f4d
commit
fea970dff3
5 changed files with 28 additions and 4 deletions
|
|
@ -738,7 +738,10 @@ class ServiceTest(DockerClientTestCase):
|
|||
|
||||
self.assertEqual(len(service.containers()), 1)
|
||||
self.assertTrue(service.containers()[0].is_running)
|
||||
self.assertIn("ERROR: for composetest_web_2 Boom", mock_stderr.getvalue())
|
||||
self.assertIn(
|
||||
"ERROR: for composetest_web_2 Cannot create container for service web: Boom",
|
||||
mock_stderr.getvalue()
|
||||
)
|
||||
|
||||
def test_scale_with_unexpected_exception(self):
|
||||
"""Test that when scaling if the API returns an error, that is not of type
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue