Skip to content

Commit 60681a8

Browse files
maxproskendeloof
authored andcommitted
Add e2e test to verify docker compose down works even when env file is missing
Signed-off-by: Max Proske <[email protected]>
1 parent 19ad737 commit 60681a8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/e2e/env_file_test.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ func TestUnusedMissingEnvFile(t *testing.T) {
3737
defer c.cleanupWithDown(t, "unused_dotenv")
3838

3939
c.RunDockerComposeCmd(t, "-f", "./fixtures/env_file/compose.yaml", "up", "-d", "serviceA")
40+
41+
// Runtime operations should work even with missing env file
42+
c.RunDockerComposeCmd(t, "-f", "./fixtures/env_file/compose.yaml", "ps")
43+
c.RunDockerComposeCmd(t, "-f", "./fixtures/env_file/compose.yaml", "logs")
44+
c.RunDockerComposeCmd(t, "-f", "./fixtures/env_file/compose.yaml", "down")
4045
}
4146

4247
func TestRunEnvFile(t *testing.T) {

0 commit comments

Comments
 (0)