mirror of
https://github.com/containers/podman-compose.git
synced 2025-08-14 07:48:47 +02:00
Allow merging of args in both list and dict syntax
Signed-off-by: Piotr Kubiak <piotr-kubiak@users.noreply.github.com>
This commit is contained in:
committed by
Povilas Kanapickas
parent
7d7533772b
commit
f9489afaf5
@ -68,6 +68,16 @@ class TestCanMergeBuild(unittest.TestCase):
|
||||
{"build": {"dockerfile": "./dockerfile-1", "args": ["ENV2=2"]}},
|
||||
{"build": {"dockerfile": "./dockerfile-1", "args": ["ENV1=1", "ENV2=2"]}},
|
||||
),
|
||||
(
|
||||
{"build": {"dockerfile": "./dockerfile-1", "args": {"ENV1": "1"}}},
|
||||
{"build": {"dockerfile": "./dockerfile-2", "args": {"ENV2": "2"}}},
|
||||
{"build": {"dockerfile": "./dockerfile-2", "args": ["ENV1=1", "ENV2=2"]}},
|
||||
),
|
||||
(
|
||||
{"build": {"dockerfile": "./dockerfile-1", "args": ["ENV1=1"]}},
|
||||
{"build": {"dockerfile": "./dockerfile-2", "args": {"ENV2": "2"}}},
|
||||
{"build": {"dockerfile": "./dockerfile-2", "args": ["ENV1=1", "ENV2=2"]}},
|
||||
),
|
||||
])
|
||||
def test_parse_compose_file_when_multiple_composes(self, input, override, expected):
|
||||
compose_test_1 = {"services": {"test-service": input}}
|
||||
|
Reference in New Issue
Block a user