mirror of https://github.com/docker/compose.git
run build tests against bake
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
parent
095f65cb42
commit
a85f8a40a9
|
@ -33,8 +33,8 @@ import (
|
|||
|
||||
func TestLocalComposeBuild(t *testing.T) {
|
||||
|
||||
for _, env := range []string{"DOCKER_BUILDKIT=0", "DOCKER_BUILDKIT=1"} {
|
||||
c := NewCLI(t, WithEnv(env))
|
||||
for _, env := range []string{"DOCKER_BUILDKIT=0", "DOCKER_BUILDKIT=1", "DOCKER_BUILDKIT=1,COMPOSE-BAKE=1"} {
|
||||
c := NewCLI(t, WithEnv(strings.Split(env, ",")...))
|
||||
|
||||
t.Run(env+" build named and unnamed images", func(t *testing.T) {
|
||||
// ensure local test run does not reuse previously build image
|
||||
|
|
|
@ -8,5 +8,5 @@ networks:
|
|||
test:
|
||||
ipam:
|
||||
config:
|
||||
- subnet: ${SUBNET-172.28.0.0/16}
|
||||
- subnet: ${SUBNET-172.99.0.0/16}
|
||||
|
||||
|
|
|
@ -159,7 +159,7 @@ func TestNetworkConfigChanged(t *testing.T) {
|
|||
})
|
||||
|
||||
res := c.RunDockerComposeCmd(t, "--project-name", projectName, "exec", "test", "hostname", "-i")
|
||||
res.Assert(t, icmd.Expected{Out: "172.28.0."})
|
||||
res.Assert(t, icmd.Expected{Out: "172.99.0."})
|
||||
res.Combined()
|
||||
|
||||
cmd := c.NewCmdWithEnv([]string{"SUBNET=192.168.0.0/16"},
|
||||
|
|
Loading…
Reference in New Issue