Skip to content

Commit 8f248f0

Browse files
camilamacedo86ci-robot
authored andcommitted
UPSTREAM: <carry>: Ensure unique name for bad-catalog tests
1 parent 6c01fc2 commit 8f248f0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

openshift/tests-extension/test/olmv1-catalog.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import (
1515
"k8s.io/apimachinery/pkg/api/meta"
1616
"k8s.io/apimachinery/pkg/api/resource"
1717
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
18+
"k8s.io/apimachinery/pkg/util/rand"
1819
"sigs.k8s.io/controller-runtime/pkg/client"
1920

2021
olmv1 "github.com/operator-framework/operator-controller/api/v1"
@@ -202,7 +203,8 @@ var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLM][Skipped:Disconnected] OLMv1
202203
helpers.RequireOLMv1CapabilityOnOpenshift()
203204
})
204205
It("should fail to install if it has an invalid reference", func(ctx SpecContext) {
205-
catName := "bad-catalog"
206+
unique := rand.String(4)
207+
catName := "bad-catalog-" + unique
206208
imageRef := "example.com/does-not-exist:latest"
207209

208210
By("creating the malformed catalog with an invalid image ref")

0 commit comments

Comments
 (0)