e2e compose run --env

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2025-06-23 21:56:04 +02:00 committed by Nicolas De loof
parent 5a063b7510
commit b6a0df8d3c
4 changed files with 6 additions and 3 deletions

View File

@ -210,4 +210,10 @@ func TestLocalComposeRun(t *testing.T) {
res = c.RunDockerCmd(t, "ps", "--all", "--filter", "name=run-test-nginx", "--format", "'{{.Names}}'")
assert.Assert(t, !strings.Contains(res.Stdout(), "run-test-nginx"), res.Stdout())
})
t.Run("compose run --env", func(t *testing.T) {
res := c.RunDockerComposeCmd(t, "-f", "./fixtures/run-test/compose.yaml", "run", "--env", "FOO=BAR",
"front", "env")
res.Assert(t, icmd.Expected{Out: "FOO=BAR"})
})
}

View File

@ -1,4 +1,3 @@
version: "3.6"
services:
service_a:
image: bash

View File

@ -1,4 +1,3 @@
version: '3.8'
services:
simple:
image: alpine

View File

@ -1,4 +1,3 @@
version: '3.8'
services:
back:
image: alpine