From 13a296049b1be6950a3b0c58581c39a037981b31 Mon Sep 17 00:00:00 2001 From: d11wtq Date: Sat, 7 Jun 2014 13:44:07 +0000 Subject: [PATCH] Update cli integration test for 'auto_start' behaviour Signed-off-by: Chris Corbyn --- tests/fixtures/simple-figfile/fig.yml | 1 + tests/integration/cli_test.py | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/tests/fixtures/simple-figfile/fig.yml b/tests/fixtures/simple-figfile/fig.yml index 225323755..26b5f439c 100644 --- a/tests/fixtures/simple-figfile/fig.yml +++ b/tests/fixtures/simple-figfile/fig.yml @@ -2,5 +2,6 @@ simple: image: ubuntu command: /bin/sleep 300 another: + auto_start: false image: ubuntu command: /bin/sleep 300 diff --git a/tests/integration/cli_test.py b/tests/integration/cli_test.py index 125b018ed..c94ac20c1 100644 --- a/tests/integration/cli_test.py +++ b/tests/integration/cli_test.py @@ -43,6 +43,13 @@ class CLITestCase(DockerClientTestCase): self.assertNotIn('fig_another_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): service = self.command.project.get_service('simple') service.create_container()