From 8b9cd39bc4d4503a8dc1b42c88220e5ab98fdf03 Mon Sep 17 00:00:00 2001 From: gabemontero Date: Fri, 14 May 2021 12:03:17 -0400 Subject: [PATCH] test direct registry.ci access from e2e --- test/extended/builds/s2i_root.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/extended/builds/s2i_root.go b/test/extended/builds/s2i_root.go index fa86313469b7..40b2857749eb 100644 --- a/test/extended/builds/s2i_root.go +++ b/test/extended/builds/s2i_root.go @@ -3,8 +3,6 @@ package builds import ( "context" "fmt" - "github.com/openshift/origin/test/extended/util/image" - g "github.com/onsi/ginkgo" o "github.com/onsi/gomega" @@ -37,7 +35,7 @@ var _ = g.Describe("[sig-builds][Feature:Builds] s2i build with a root user imag Before(oc) defer After(oc) - firstArgString := fmt.Sprintf("%s~https://github.com/sclorg/nodejs-ex", image.LocationFor("registry.ci.openshift.org/ocp/4.7:test-build-roots2i")) + firstArgString := fmt.Sprintf("%s~https://github.com/sclorg/nodejs-ex", "registry.ci.openshift.org/ocp/4.7:test-build-roots2i") err := oc.Run("new-app").Args(firstArgString, "--name", "nodejsfail").Execute() o.Expect(err).NotTo(o.HaveOccurred()) @@ -114,7 +112,7 @@ var _ = g.Describe("[sig-builds][Feature:Builds] s2i build with a root user imag roleBinding, err = oc.AdminKubeClient().RbacV1().RoleBindings(oc.Namespace()).Create(context.Background(), roleBinding, metav1.CreateOptions{}) o.Expect(err).NotTo(o.HaveOccurred()) - firstArgString := fmt.Sprintf("%s~https://github.com/sclorg/nodejs-ex", image.LocationFor("registry.ci.openshift.org/ocp/4.7:test-build-roots2i")) + firstArgString := fmt.Sprintf("%s~https://github.com/sclorg/nodejs-ex", "registry.ci.openshift.org/ocp/4.7:test-build-roots2i") err = oc.Run("new-build").Args(firstArgString, "--name", "nodejspass").Execute() o.Expect(err).NotTo(o.HaveOccurred())