File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
tests/integration/env_tests Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change 11version : " 3"
22
3- name : my-project-name
3+ name : my-project-name${ZZVAR1:-}
44
55services :
66 env-test :
Original file line number Diff line number Diff line change @@ -87,3 +87,23 @@ def test_project_name_override(self) -> None:
8787 compose_yaml_path (),
8888 "down" ,
8989 ])
90+
91+ def test_project_name_interpolation (self ) -> None :
92+ try :
93+ output , _ = self .run_subprocess_assert_returncode ([
94+ podman_compose_path (),
95+ "-f" ,
96+ compose_yaml_path (),
97+ "run" ,
98+ "-e" ,
99+ "ZZVAR1=-myval2" ,
100+ "project-name-test" ,
101+ ])
102+ self .assertIn ("my-project-name-myval2" , str (output ))
103+ finally :
104+ self .run_subprocess_assert_returncode ([
105+ podman_compose_path (),
106+ "-f" ,
107+ compose_yaml_path (),
108+ "down" ,
109+ ])
You can’t perform that action at this time.
0 commit comments