Add e2e test to verify docker compose down works even when env file is missing

Signed-off-by: Max Proske <max@mproske.com>
This commit is contained in:
Max Proske 2025-08-15 13:41:37 -07:00 committed by Nicolas De loof
parent 19ad737ee7
commit 60681a824c

View File

@ -37,6 +37,11 @@ func TestUnusedMissingEnvFile(t *testing.T) {
defer c.cleanupWithDown(t, "unused_dotenv")
c.RunDockerComposeCmd(t, "-f", "./fixtures/env_file/compose.yaml", "up", "-d", "serviceA")
// Runtime operations should work even with missing env file
c.RunDockerComposeCmd(t, "-f", "./fixtures/env_file/compose.yaml", "ps")
c.RunDockerComposeCmd(t, "-f", "./fixtures/env_file/compose.yaml", "logs")
c.RunDockerComposeCmd(t, "-f", "./fixtures/env_file/compose.yaml", "down")
}
func TestRunEnvFile(t *testing.T) {