Skip to content

Commit 491fd38

Browse files
committed
Update e2e_suite_test.go
Signed-off-by: Ernest Wong <[email protected]>
1 parent b3a76c2 commit 491fd38

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
@@ -384,14 +384,29 @@ func createInferExt(k8sClient client.Client, filePath string) {
384384
ginkgo.By("Creating inference extension resources from manifest: " + filePath)
385385
createObjsFromYaml(k8sClient, outManifests)
386386

387+
// Wait for the serviceaccount to exist.
388+
testutils.EventuallyExists(ctx, func() error {
389+
return k8sClient.Get(ctx, types.NamespacedName{Name: inferExtName}, &corev1.ServiceAccount{})
390+
}, existsTimeout, interval)
391+
392+
// Wait for the role to exist.
393+
testutils.EventuallyExists(ctx, func() error {
394+
return k8sClient.Get(ctx, types.NamespacedName{Name: "pod-read"}, &rbacv1.Role{})
395+
}, existsTimeout, interval)
396+
397+
// Wait for the rolebinding to exist.
398+
testutils.EventuallyExists(ctx, func() error {
399+
return k8sClient.Get(ctx, types.NamespacedName{Name: "pod-read-binding"}, &rbacv1.RoleBinding{})
400+
}, existsTimeout, interval)
401+
387402
// Wait for the clusterrole to exist.
388403
testutils.EventuallyExists(ctx, func() error {
389-
return k8sClient.Get(ctx, types.NamespacedName{Name: "pod-read"}, &rbacv1.ClusterRole{})
404+
return k8sClient.Get(ctx, types.NamespacedName{Name: "auth-reviewer"}, &rbacv1.ClusterRole{})
390405
}, existsTimeout, interval)
391406

392407
// Wait for the clusterrolebinding to exist.
393408
testutils.EventuallyExists(ctx, func() error {
394-
return k8sClient.Get(ctx, types.NamespacedName{Name: "pod-read-binding"}, &rbacv1.ClusterRoleBinding{})
409+
return k8sClient.Get(ctx, types.NamespacedName{Name: "auth-reviewer-binding"}, &rbacv1.ClusterRoleBinding{})
395410
}, existsTimeout, interval)
396411

397412
// 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
@@ -195,7 +195,7 @@ kind: RoleBinding
195195
apiVersion: rbac.authorization.k8s.io/v1
196196
metadata:
197197
name: pod-read-binding
198-
namespace: default
198+
namespace: $E2E_NS
199199
subjects:
200200
- kind: ServiceAccount
201201
name: vllm-llama3-8b-instruct-epp

0 commit comments

Comments
 (0)