Skip to content

Commit 5a260f9

Browse files
committed
Update e2e_suite_test.go
Signed-off-by: Ernest Wong <[email protected]>
1 parent 49432c8 commit 5a260f9

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

test/e2e/epp/e2e_suite_test.go

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,12 +373,27 @@ func createInferExt(k8sClient client.Client, filePath string) {
373373

374374
// Wait for the clusterrole to exist.
375375
testutils.EventuallyExists(ctx, func() error {
376-
return k8sClient.Get(ctx, types.NamespacedName{Name: "pod-read"}, &rbacv1.ClusterRole{})
376+
return k8sClient.Get(ctx, types.NamespacedName{Name: inferExtName}, &corev1.ServiceAccount{})
377+
}, existsTimeout, interval)
378+
379+
// Wait for the clusterrole to exist.
380+
testutils.EventuallyExists(ctx, func() error {
381+
return k8sClient.Get(ctx, types.NamespacedName{Name: "pod-read"}, &rbacv1.Role{})
382+
}, existsTimeout, interval)
383+
384+
// Wait for the clusterrolebinding to exist.
385+
testutils.EventuallyExists(ctx, func() error {
386+
return k8sClient.Get(ctx, types.NamespacedName{Name: "pod-read-binding"}, &rbacv1.RoleBinding{})
387+
}, existsTimeout, interval)
388+
389+
// Wait for the clusterrole to exist.
390+
testutils.EventuallyExists(ctx, func() error {
391+
return k8sClient.Get(ctx, types.NamespacedName{Name: "auth-reviewer"}, &rbacv1.ClusterRole{})
377392
}, existsTimeout, interval)
378393

379394
// Wait for the clusterrolebinding to exist.
380395
testutils.EventuallyExists(ctx, func() error {
381-
return k8sClient.Get(ctx, types.NamespacedName{Name: "pod-read-binding"}, &rbacv1.ClusterRoleBinding{})
396+
return k8sClient.Get(ctx, types.NamespacedName{Name: "auth-reviewer-binding"}, &rbacv1.ClusterRoleBinding{})
382397
}, existsTimeout, interval)
383398

384399
// Wait for the deployment to exist.

0 commit comments

Comments
 (0)