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) {
|
||||
res := c.RunDockerCmd("compose", "run", "-f", "./fixtures/run-test/docker-compose.yml", "--rm", "back")
|
||||
res.Assert(t, icmd.Expected{Out: "Hello there!!"})
|
||||
res := c.RunDockerCmd("compose", "run", "-f", "./fixtures/run-test/docker-compose.yml", "--rm", "back", "echo", "Hello again")
|
||||
res.Assert(t, icmd.Expected{Out: "Hello again"})
|
||||
})
|
||||
|
||||
t.Run("check run container removed", func(t *testing.T) {
|
||||
|
|
|
@ -18,7 +18,7 @@ services:
|
|||
networks:
|
||||
- frontnet
|
||||
networks:
|
||||
frontnet: {}
|
||||
backnet: {}
|
||||
frontnet:
|
||||
backnet:
|
||||
volumes:
|
||||
data: {}
|
||||
data:
|
||||
|
|
Loading…
Reference in New Issue