Display containers name when scale a container
Display in the log output the name of those containers created using the scale command and change the test_scale_with_api_error test to support the containers name when scale Signed-off-by: Jesus Rodriguez Tinoco <jesus.rodriguez.tinoco@gmail.com>
This commit is contained in:
parent
1502c5a14d
commit
6bfb23baaa
2 changed files with 2 additions and 2 deletions
|
|
@ -735,7 +735,7 @@ class ServiceTest(DockerClientTestCase):
|
|||
|
||||
self.assertEqual(len(service.containers()), 1)
|
||||
self.assertTrue(service.containers()[0].is_running)
|
||||
self.assertIn("ERROR: for 2 Boom", mock_stderr.getvalue())
|
||||
self.assertIn("ERROR: for composetest_web_2 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