diff options
author | Anca Iordache <aiordache@users.noreply.github.com> | 2021-04-06 18:25:24 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-04-06 18:25:24 +0100 |
commit | 683fac0dbf6c3ec39ebb6244c497d3661855cb83 (patch) | |
tree | 13fc823f1cd812edc200804650ada2d38549e0eb /tests/unit/config/config_test.py | |
parent | 1ab1cd202becd0a7f06dd6da6ecf57f51914eaf2 (diff) | |
parent | 4daad056c4d54ea5d4e84f097f9b825067fa016d (diff) |
Merge pull request #8122 from ojab/add_init_containers
Add init container support
Diffstat (limited to 'tests/unit/config/config_test.py')
-rw-r--r-- | tests/unit/config/config_test.py | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/unit/config/config_test.py b/tests/unit/config/config_test.py index 60b82dcf..72e39e4f 100644 --- a/tests/unit/config/config_test.py +++ b/tests/unit/config/config_test.py @@ -2397,7 +2397,8 @@ web: 'image': 'busybox', 'depends_on': { 'app1': {'condition': 'service_started'}, - 'app2': {'condition': 'service_healthy'} + 'app2': {'condition': 'service_healthy'}, + 'app3': {'condition': 'service_completed_successfully'} } } override = {} @@ -2409,11 +2410,12 @@ web: 'image': 'busybox', 'depends_on': { 'app1': {'condition': 'service_started'}, - 'app2': {'condition': 'service_healthy'} + 'app2': {'condition': 'service_healthy'}, + 'app3': {'condition': 'service_completed_successfully'} } } override = { - 'depends_on': ['app3'] + 'depends_on': ['app4'] } actual = config.merge_service_dicts(base, override, VERSION) @@ -2422,7 +2424,8 @@ web: 'depends_on': { 'app1': {'condition': 'service_started'}, 'app2': {'condition': 'service_healthy'}, - 'app3': {'condition': 'service_started'} + 'app3': {'condition': 'service_completed_successfully'}, + 'app4': {'condition': 'service_started'}, } } |