From 46fbde8e7fa8839006f511dc497ac2e1f3ae15bc Mon Sep 17 00:00:00 2001 From: Jimmi Dyson Date: Tue, 21 May 2024 22:16:50 +0100 Subject: [PATCH] test(e2e): Specify architecture for test images in e2e (#727) This allows running the e2e tests on arm64 dev machines. --- test/e2e/imagebundle/push_bundle_test.go | 3 +++ test/e2e/imagebundle/serve_bundle_test.go | 2 ++ 2 files changed, 5 insertions(+) diff --git a/test/e2e/imagebundle/push_bundle_test.go b/test/e2e/imagebundle/push_bundle_test.go index ce843747..33578b35 100644 --- a/test/e2e/imagebundle/push_bundle_test.go +++ b/test/e2e/imagebundle/push_bundle_test.go @@ -155,6 +155,7 @@ var _ = Describe("Push Bundle", func() { GinkgoT(), bundleFile, filepath.Join("testdata", "create-success.yaml"), + "linux/"+runtime.GOARCH, ) runTest(registryHost, registryScheme, registryPath, registryInsecure) @@ -203,6 +204,7 @@ var _ = Describe("Push Bundle", func() { GinkgoT(), bundleFile, filepath.Join("testdata", "create-success.yaml"), + "linux/"+runtime.GOARCH, ) }) @@ -285,6 +287,7 @@ var _ = Describe("Push Bundle", func() { GinkgoT(), bundleFile, filepath.Join("testdata", "create-success.yaml"), + "linux/"+runtime.GOARCH, ) DeferCleanup(GinkgoWriter.ClearTeeWriters) diff --git a/test/e2e/imagebundle/serve_bundle_test.go b/test/e2e/imagebundle/serve_bundle_test.go index 8c0146b5..81847b26 100644 --- a/test/e2e/imagebundle/serve_bundle_test.go +++ b/test/e2e/imagebundle/serve_bundle_test.go @@ -50,6 +50,7 @@ var _ = Describe("Serve Bundle", func() { GinkgoT(), bundleFile, filepath.Join("testdata", "create-success.yaml"), + "linux/"+runtime.GOARCH, ) port, err := freeport.GetFreePort() @@ -102,6 +103,7 @@ var _ = Describe("Serve Bundle", func() { GinkgoT(), bundleFile, filepath.Join("testdata", "create-success.yaml"), + "linux/"+runtime.GOARCH, ) port, err := freeport.GetFreePort()