Skip to content

Commit 10ca6ae

Browse files
committed
use fixed version of compose bridge transformer images
to avoid CI issue on Compose when a new version is released and change the outputs Signed-off-by: Guillaume Lours <[email protected]>
1 parent 289faae commit 10ca6ae

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pkg/e2e/bridge_test.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
package e2e
1818

1919
import (
20+
"fmt"
2021
"path/filepath"
2122
"strings"
2223
"testing"
@@ -28,12 +29,13 @@ func TestConvertAndTransformList(t *testing.T) {
2829
c := NewParallelCLI(t)
2930

3031
const projectName = "bridge"
32+
const bridgeImageVersion = "v0.0.3"
3133
tmpDir := t.TempDir()
3234

3335
t.Run("kubernetes manifests", func(t *testing.T) {
3436
kubedir := filepath.Join(tmpDir, "kubernetes")
3537
res := c.RunDockerComposeCmd(t, "-f", "./fixtures/bridge/compose.yaml", "--project-name", projectName, "bridge", "convert",
36-
"--output", kubedir)
38+
"--output", kubedir, "--transformation", fmt.Sprintf("docker/compose-bridge-kubernetes:%s", bridgeImageVersion))
3739
assert.NilError(t, res.Error)
3840
assert.Equal(t, res.ExitCode, 0)
3941
res = c.RunCmd(t, "diff", "-r", kubedir, "./fixtures/bridge/expected-kubernetes")
@@ -43,7 +45,7 @@ func TestConvertAndTransformList(t *testing.T) {
4345
t.Run("helm charts", func(t *testing.T) {
4446
helmDir := filepath.Join(tmpDir, "helm")
4547
res := c.RunDockerComposeCmd(t, "-f", "./fixtures/bridge/compose.yaml", "--project-name", projectName, "bridge", "convert",
46-
"--output", helmDir, "--transformation", "docker/compose-bridge-helm")
48+
"--output", helmDir, "--transformation", fmt.Sprintf("docker/compose-bridge-helm:%s", bridgeImageVersion))
4749
assert.NilError(t, res.Error)
4850
assert.Equal(t, res.ExitCode, 0)
4951
res = c.RunCmd(t, "diff", "-r", helmDir, "./fixtures/bridge/expected-helm")

0 commit comments

Comments
 (0)