Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openshift/tests-extension/pkg/helpers/cluster_extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ func ExpectServiceAccountExists(ctx context.Context, name, namespace string) {
Eventually(func(g Gomega) {
err := k8sClient.Get(ctx, client.ObjectKey{Name: name, Namespace: namespace}, sa)
g.Expect(err).ToNot(HaveOccurred(), fmt.Sprintf("failed to get ServiceAccount %q/%q: %v", namespace, name, err))
}).WithTimeout(10*time.Second).WithPolling(1*time.Second).Should(Succeed(), "ServiceAccount %q/%q did not become visible within timeout", namespace, name)
}).WithTimeout(5*time.Minute).WithPolling(3*time.Second).Should(Succeed(), "ServiceAccount %q/%q did not become visible within timeout", namespace, name)
}

// ExpectClusterRoleBindingExists waits for a ClusterRoleBinding to be available and visible to the client.
Expand Down
7 changes: 7 additions & 0 deletions openshift/tests-extension/test/olmv1-incompatible.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,13 @@ var _ = Describe("[sig-olmv1][OCPFeatureGate:NewOLM][Skipped:Disconnected] OLMv1
nsCleanup := createNamespace(nsName)
DeferCleanup(nsCleanup)

// The builder (and deployer) service accounts are created by OpenShift itself which injects them in the NS.
By(fmt.Sprintf("waiting for builder serviceaccount in %s", nsName))
helpers.ExpectServiceAccountExists(ctx, "builder", nsName)

By(fmt.Sprintf("waiting for deployer serviceaccount in %s", nsName))
helpers.ExpectServiceAccountExists(ctx, "deployer", nsName)

By("applying image-puller RoleBinding")
rbCleanup := createImagePullerRoleBinding(rbName, nsName)
DeferCleanup(rbCleanup)
Expand Down