Skip to content

Commit

Permalink
[Test] Check .status.numServeEndpoints is greater than zero (#2488)
Browse files Browse the repository at this point in the history
Signed-off-by: win5923 <[email protected]>
  • Loading branch information
win5923 authored Nov 2, 2024
1 parent ebd99da commit a49b91b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ray-operator/test/sampleyaml/rayservice_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,13 @@ func TestRayService(t *testing.T) {

// Check if all worker pods are ready
g.Eventually(WorkerPods(test, rayCluster), TestTimeoutShort).Should(WithTransform(AllPodsRunningAndReady, BeTrue()))

// Check if .status.numServeEndpoints is greater than zero
g.Eventually(func(g Gomega) int32 {
rs, err := GetRayService(test, namespace.Name, rayServiceFromYaml.Name)
g.Expect(err).NotTo(HaveOccurred())
return rs.Status.NumServeEndpoints
}, TestTimeoutShort).Should(BeNumerically(">", 0))
})
}
}

0 comments on commit a49b91b

Please sign in to comment.