Skip to content

Commit

Permalink
Test VirtualService
Browse files Browse the repository at this point in the history
Signed-off-by: Matheus Cruz <[email protected]>
  • Loading branch information
mcruzdev committed Sep 15, 2024
1 parent 942f3a1 commit 8e9ca9c
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,12 @@ var _ = Describe("Workspace Controller", func() {
virtualServiceList := &unstructured.UnstructuredList{}
virtualServiceList.SetAPIVersion(istio.ApiVersionIstio)
virtualServiceList.SetKind(istio.VirtualServiceKind)
Eventually(func() ([]corev1.Service, error) {
err := k8sClient.List(ctx, virtualServiceList, client.InNamespace(namespaceName), client.MatchingLabels{workspaceNameLabel: workspaceName})
Eventually(func() ([]unstructured.Unstructured, error) {
err := k8sClient.List(ctx, virtualServiceList, client.InNamespace(namespaceName))
if err != nil {
return nil, err
}
return serviceList.Items, nil
return virtualServiceList.Items, nil
}, timeout, interval).Should(HaveLen(1))

//
Expand Down

0 comments on commit 8e9ca9c

Please sign in to comment.