Skip to content

Commit

Permalink
run build tests against bake
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
  • Loading branch information
ndeloof authored and glours committed Nov 26, 2024
1 parent 095f65c commit a85f8a4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pkg/e2e/build_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pkg/e2e/fixtures/network-test/compose.subnet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ networks:
test:
ipam:
config:
- subnet: ${SUBNET-172.28.0.0/16}
- subnet: ${SUBNET-172.99.0.0/16}

2 changes: 1 addition & 1 deletion pkg/e2e/networks_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
Expand Down

0 comments on commit a85f8a4

Please sign in to comment.