|
@@ -59,6 +59,21 @@ class ProjectTest(DockerClientTestCase):
|
|
project.kill()
|
|
project.kill()
|
|
project.remove_stopped()
|
|
project.remove_stopped()
|
|
|
|
|
|
|
|
+ def test_project_up_without_auto_start(self):
|
|
|
|
+ console = self.create_service('console', auto_start=False)
|
|
|
|
+ db = self.create_service('db')
|
|
|
|
+ project = Project('figtest', [console, db], self.client)
|
|
|
|
+ project.start()
|
|
|
|
+ self.assertEqual(len(project.containers()), 0)
|
|
|
|
+
|
|
|
|
+ project.up()
|
|
|
|
+ self.assertEqual(len(project.containers()), 1)
|
|
|
|
+ self.assertEqual(len(db.containers()), 1)
|
|
|
|
+ self.assertEqual(len(console.containers()), 0)
|
|
|
|
+
|
|
|
|
+ project.kill()
|
|
|
|
+ project.remove_stopped()
|
|
|
|
+
|
|
def test_unscale_after_restart(self):
|
|
def test_unscale_after_restart(self):
|
|
web = self.create_service('web')
|
|
web = self.create_service('web')
|
|
project = Project('figtest', [web], self.client)
|
|
project = Project('figtest', [web], self.client)
|