Skip to content

Commit

Permalink
e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
lburgazzoli committed Dec 9, 2024
1 parent aaf87bf commit 7e86951
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/e2e/kserve_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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) {
Expand Down

0 comments on commit 7e86951

Please sign in to comment.