From e674b831ec07dc4e2d16af45e8c99a78519fb8fb Mon Sep 17 00:00:00 2001 From: aleskandro Date: Mon, 8 Jul 2024 13:04:07 +0100 Subject: [PATCH] [Test] Native multi-arch ClusterBuildStrategy --- test/e2e/v1alpha1/e2e_test.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/test/e2e/v1alpha1/e2e_test.go b/test/e2e/v1alpha1/e2e_test.go index 98ed07c4c7..c9adecef05 100644 --- a/test/e2e/v1alpha1/e2e_test.go +++ b/test/e2e/v1alpha1/e2e_test.go @@ -117,6 +117,29 @@ var _ = Describe("For a Kubernetes cluster with Tekton and build installed", fun }) }) + Context("when a Multiarch Native Buildah build is defined", func() { + + BeforeEach(func() { + testID = generateTestID("buildah-multi-arch-native") + + // create the build definition + build = createBuild( + testBuild, + testID, + "test/data/v1beta1/build_multiarch_native_buildah_cr.yaml", + ) + }) + + It("successfully runs a build", func() { + buildRun, err = buildRunTestData(testBuild.Namespace, testID, "test/data/v1beta1/build_multiarch_native_buildah_cr.yaml") + Expect(err).ToNot(HaveOccurred(), "Error retrieving buildrun test data") + appendRegistryInsecureParamValue(build, buildRun) + + buildRun = validateBuildRunToSucceed(testBuild, buildRun) + testBuild.ValidateImageDigest(buildRun) + }) + }) + Context("when a heroku Buildpacks build is defined using a cluster strategy", func() { BeforeEach(func() {