Skip to content

Commit 4095b61

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

File tree

2 files changed

+18
-3
lines changed

2 files changed

+18
-3
lines changed

test/e2e/epp/e2e_suite_test.go

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -371,14 +371,29 @@ func createInferExt(k8sClient client.Client, filePath string) {
371371
ginkgo.By("Creating inference extension resources from manifest: " + filePath)
372372
createObjsFromYaml(k8sClient, outManifests)
373373

374+
// Wait for the serviceaccount to exist.
375+
testutils.EventuallyExists(ctx, func() error {
376+
return k8sClient.Get(ctx, types.NamespacedName{Name: inferExtName}, &corev1.ServiceAccount{})
377+
}, existsTimeout, interval)
378+
379+
// Wait for the role 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 rolebinding 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+
374389
// Wait for the clusterrole to exist.
375390
testutils.EventuallyExists(ctx, func() error {
376-
return k8sClient.Get(ctx, types.NamespacedName{Name: "pod-read"}, &rbacv1.ClusterRole{})
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.

test/testdata/inferencepool-e2e.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ kind: RoleBinding
107107
apiVersion: rbac.authorization.k8s.io/v1
108108
metadata:
109109
name: pod-read-binding
110-
namespace: default
110+
namespace: $E2E_NS
111111
subjects:
112112
- kind: ServiceAccount
113113
name: vllm-llama3-8b-instruct-epp

0 commit comments

Comments
 (0)