diff --git a/tests/e2e/kserve_test.go b/tests/e2e/kserve_test.go index 3abb5440063..ce1cee7cc20 100644 --- a/tests/e2e/kserve_test.go +++ b/tests/e2e/kserve_test.go @@ -52,6 +52,14 @@ func kserveTestSuite(t *testing.T) { func (k *KserveTestCtx) validateKserveInstance(t *testing.T) { g := k.WithT(t) + g.Eventually( + k.updateComponent(func(c *dscv1.Components) { + c.Kserve.ManagementState = operatorv1.Managed + }), + ).ShouldNot( + HaveOccurred(), + ) + g.Eventually( k.List(gvk.Kserve), ).Should(And( @@ -66,6 +74,15 @@ func (k *KserveTestCtx) validateKserveInstance(t *testing.T) { jq.Match(`.status.phase == "%s"`, readyStatus), )), )) + + g.Eventually( + k.List(gvk.DataScienceCluster), + ).Should(And( + HaveLen(1), + HaveEach( + jq.Match(`.status.conditions[] | select(.type == "%sReady") | .status == "%s"`, componentApi.KserveComponentName, metav1.ConditionTrue), + ), + )) } func (k *KserveTestCtx) validateDefaultCertsAvailable(t *testing.T) {