mirror of https://github.com/docker/compose.git
Slightly better tests
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
This commit is contained in:
parent
d127cac6d4
commit
0e319ae65a
|
@ -138,8 +138,8 @@ func TestLocalComposeRun(t *testing.T) {
|
||||||
})
|
})
|
||||||
|
|
||||||
t.Run("compose run --rm", func(t *testing.T) {
|
t.Run("compose run --rm", func(t *testing.T) {
|
||||||
res := c.RunDockerCmd("compose", "run", "-f", "./fixtures/run-test/docker-compose.yml", "--rm", "back")
|
res := c.RunDockerCmd("compose", "run", "-f", "./fixtures/run-test/docker-compose.yml", "--rm", "back", "echo", "Hello again")
|
||||||
res.Assert(t, icmd.Expected{Out: "Hello there!!"})
|
res.Assert(t, icmd.Expected{Out: "Hello again"})
|
||||||
})
|
})
|
||||||
|
|
||||||
t.Run("check run container removed", func(t *testing.T) {
|
t.Run("check run container removed", func(t *testing.T) {
|
||||||
|
|
|
@ -18,7 +18,7 @@ services:
|
||||||
networks:
|
networks:
|
||||||
- frontnet
|
- frontnet
|
||||||
networks:
|
networks:
|
||||||
frontnet: {}
|
frontnet:
|
||||||
backnet: {}
|
backnet:
|
||||||
volumes:
|
volumes:
|
||||||
data: {}
|
data:
|
||||||
|
|
Loading…
Reference in New Issue