run build tests against bake

Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
This commit is contained in:
Nicolas De Loof 2024-11-26 11:01:51 +01:00 committed by Guillaume Lours
parent 095f65cb42
commit a85f8a40a9
3 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -8,5 +8,5 @@ networks:
test:
ipam:
config:
- subnet: ${SUBNET-172.28.0.0/16}
- subnet: ${SUBNET-172.99.0.0/16}

View File

@ -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"},