mirror of
https://github.com/docker/compose.git
synced 2025-07-23 05:34:36 +02:00
Update cli integration test for 'auto_start' behaviour
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
This commit is contained in:
parent
22c531dea7
commit
13a296049b
1
tests/fixtures/simple-figfile/fig.yml
vendored
1
tests/fixtures/simple-figfile/fig.yml
vendored
@ -2,5 +2,6 @@ simple:
|
|||||||
image: ubuntu
|
image: ubuntu
|
||||||
command: /bin/sleep 300
|
command: /bin/sleep 300
|
||||||
another:
|
another:
|
||||||
|
auto_start: false
|
||||||
image: ubuntu
|
image: ubuntu
|
||||||
command: /bin/sleep 300
|
command: /bin/sleep 300
|
||||||
|
@ -43,6 +43,13 @@ class CLITestCase(DockerClientTestCase):
|
|||||||
self.assertNotIn('fig_another_1', output)
|
self.assertNotIn('fig_another_1', output)
|
||||||
self.assertIn('fig_yetanother_1', output)
|
self.assertIn('fig_yetanother_1', output)
|
||||||
|
|
||||||
|
def test_up(self):
|
||||||
|
self.command.dispatch(['up', '-d'], None)
|
||||||
|
service = self.command.project.get_service('simple')
|
||||||
|
another = self.command.project.get_service('another')
|
||||||
|
self.assertEqual(len(service.containers()), 1)
|
||||||
|
self.assertEqual(len(another.containers()), 0)
|
||||||
|
|
||||||
def test_rm(self):
|
def test_rm(self):
|
||||||
service = self.command.project.get_service('simple')
|
service = self.command.project.get_service('simple')
|
||||||
service.create_container()
|
service.create_container()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user