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