Skip to content

Commit f53a341

Browse files
committed
integration/tests: Test project name override with COMPOSE_PROJECT_NAME env variable
Signed-off-by: Ruben Jenster <[email protected]>
1 parent 6fd5b54 commit f53a341

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

tests/integration/env-tests/test_podman_compose_env.py

+20
Original file line numberDiff line numberDiff line change
@@ -67,3 +67,23 @@ def test_project_name(self):
6767
compose_yaml_path(),
6868
"down",
6969
])
70+
71+
def test_project_name_override(self):
72+
try:
73+
output, _ = self.run_subprocess_assert_returncode([
74+
podman_compose_path(),
75+
"-f",
76+
compose_yaml_path(),
77+
"run",
78+
"-e",
79+
"COMPOSE_PROJECT_NAME=project-name-override",
80+
"project-name-test",
81+
])
82+
self.assertIn("project-name-override", str(output))
83+
finally:
84+
self.run_subprocess_assert_returncode([
85+
podman_compose_path(),
86+
"-f",
87+
compose_yaml_path(),
88+
"down",
89+
])

0 commit comments

Comments
 (0)