mirror of
https://github.com/docker/compose.git
synced 2025-07-17 02:34:28 +02:00
update depends_on tests
Signed-off-by: aiordache <anca.iordache@docker.com>
This commit is contained in:
parent
a75b6249f8
commit
fa720787d6
@ -5269,7 +5269,7 @@ def get_config_filename_for_files(filenames, subdir=None):
|
|||||||
|
|
||||||
|
|
||||||
class SerializeTest(unittest.TestCase):
|
class SerializeTest(unittest.TestCase):
|
||||||
def test_denormalize_depends_on_v3(self):
|
def test_denormalize_depends(self):
|
||||||
service_dict = {
|
service_dict = {
|
||||||
'image': 'busybox',
|
'image': 'busybox',
|
||||||
'command': 'true',
|
'command': 'true',
|
||||||
@ -5279,27 +5279,7 @@ class SerializeTest(unittest.TestCase):
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
assert denormalize_service_dict(service_dict, VERSION) == {
|
assert denormalize_service_dict(service_dict, VERSION) == service_dict
|
||||||
'image': 'busybox',
|
|
||||||
'command': 'true',
|
|
||||||
'depends_on': ['service2', 'service3']
|
|
||||||
}
|
|
||||||
|
|
||||||
def test_denormalize_depends_on_v2_1(self):
|
|
||||||
service_dict = {
|
|
||||||
'image': 'busybox',
|
|
||||||
'command': 'true',
|
|
||||||
'depends_on': {
|
|
||||||
'service2': {'condition': 'service_started'},
|
|
||||||
'service3': {'condition': 'service_started'},
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
assert denormalize_service_dict(service_dict, VERSION) == {
|
|
||||||
'image': 'busybox',
|
|
||||||
'command': 'true',
|
|
||||||
'depends_on': ['service2', 'service3']
|
|
||||||
}
|
|
||||||
|
|
||||||
def test_serialize_time(self):
|
def test_serialize_time(self):
|
||||||
data = {
|
data = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user