Add in query options for catalog service existing in a specific (#16652)
namespace when creating service for tests
This commit is contained in:
parent
e766b74a8b
commit
6b7045e3f4
|
@ -206,8 +206,8 @@ func createService(t *testing.T, cluster *libcluster.Cluster, serviceOpts *libse
|
|||
service, _, err := libservice.CreateAndRegisterStaticServerAndSidecar(node, serviceOpts, containerArgs...)
|
||||
require.NoError(t, err)
|
||||
|
||||
libassert.CatalogServiceExists(t, client, serviceOpts.Name+"-sidecar-proxy", nil)
|
||||
libassert.CatalogServiceExists(t, client, serviceOpts.Name, nil)
|
||||
libassert.CatalogServiceExists(t, client, serviceOpts.Name+"-sidecar-proxy", &api.QueryOptions{Namespace: serviceOpts.Namespace})
|
||||
libassert.CatalogServiceExists(t, client, serviceOpts.Name, &api.QueryOptions{Namespace: serviceOpts.Namespace})
|
||||
|
||||
return service
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue