mirror of
https://github.com/docker/compose.git
synced 2025-09-24 18:27:56 +02:00
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:
parent
19ad737ee7
commit
60681a824c
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user