diff --git a/tests/test_parse_file.py b/tests/test_parse_file.py index 7bf3cdc..1eaa166 100644 --- a/tests/test_parse_file.py +++ b/tests/test_parse_file.py @@ -241,6 +241,31 @@ from compose_viz.parser import Parser ], ), ), + ( + "cgroup_parent/docker-compose", + Compose( + services=[ + Service( + name="frontend", + image="awesome/frontend", + cgroup_parent="system", + ), + ], + ), + ), + ( + "container_name/docker-compose", + Compose( + services=[ + Service( + name="frontend", + image="awesome/frontend", + container_name="myfrontend", + ), + ], + ), + ), + ], ) def test_parse_file(test_file_path: str, expected: Compose) -> None: @@ -275,3 +300,8 @@ def test_parse_file(test_file_path: str, expected: Compose) -> None: if (actual_service.extends is not None) and (expected_service.extends is not None): assert actual_service.extends.service_name == expected_service.extends.service_name assert actual_service.extends.from_file == expected_service.extends.from_file + + + assert actual_service.cgroup_parent == expected_service.cgroup_parent + assert actual_service.container_name == expected_service.container_name +