Fixes #1757 - include all service properties in the config_dict()
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
This commit is contained in:
parent
cf2dbf55b8
commit
d92f323e6d
3 changed files with 113 additions and 0 deletions
|
|
@ -1,3 +1,7 @@
|
|||
"""
|
||||
Integration tests which cover state convergence (aka smart recreate) performed
|
||||
by `docker-compose up`.
|
||||
"""
|
||||
from __future__ import unicode_literals
|
||||
import tempfile
|
||||
import shutil
|
||||
|
|
@ -151,6 +155,24 @@ class ProjectWithDependenciesTest(ProjectTestCase):
|
|||
|
||||
self.assertEqual(new_containers - old_containers, set())
|
||||
|
||||
def test_service_removed_while_down(self):
|
||||
next_cfg = {
|
||||
'web': {
|
||||
'image': 'busybox:latest',
|
||||
'command': 'tail -f /dev/null',
|
||||
},
|
||||
'nginx': self.cfg['nginx'],
|
||||
}
|
||||
|
||||
containers = self.run_up(self.cfg)
|
||||
self.assertEqual(len(containers), 3)
|
||||
|
||||
project = self.make_project(self.cfg)
|
||||
project.stop(timeout=1)
|
||||
|
||||
containers = self.run_up(next_cfg)
|
||||
self.assertEqual(len(containers), 2)
|
||||
|
||||
|
||||
def converge(service,
|
||||
allow_recreate=True,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue