httproute hittable

pull/16278/head
Sarah Alsmiller 2 years ago
parent 184b6bbcb0
commit cc213b67b4

@ -152,18 +152,13 @@ func createService(t *testing.T, cluster *libcluster.Cluster, serviceOpts *libse
// Create a service and proxy instance // Create a service and proxy instance
// Create a service and proxy instance // Create a service and proxy instance
_, _, err := libservice.CreateAndRegisterStaticServerAndSidecar(node, serviceOpts) service, _, err := libservice.CreateAndRegisterStaticServerAndSidecar(node, serviceOpts)
require.NoError(t, err) assert.NoError(t, err)
libassert.CatalogServiceExists(t, client, serviceOpts.Name+"-sidecar-proxy") libassert.CatalogServiceExists(t, client, serviceOpts.Name+"-sidecar-proxy")
libassert.CatalogServiceExists(t, client, serviceOpts.Name) libassert.CatalogServiceExists(t, client, serviceOpts.Name)
// Create a client proxy instance with the server as an upstream return service
//TODO this is always going to be named static-client-sidecar-proxy and I don't know if that matters
clientConnectProxy, err := libservice.CreateAndRegisterStaticClientSidecar(node, "", false)
require.NoError(t, err)
libassert.CatalogServiceExists(t, client, "static-client-sidecar-proxy")
return clientConnectProxy
} }
func createServices(t *testing.T, cluster *libcluster.Cluster, ports ...int) (libservice.Service, libservice.Service) { func createServices(t *testing.T, cluster *libcluster.Cluster, ports ...int) (libservice.Service, libservice.Service) {

@ -211,9 +211,6 @@ func TestHTTPRouteFlattening(t *testing.T) {
"x-v2": "v2", "x-v2": "v2",
}) })
for {
}
//libassert.HTTPServiceEchoes(t, "localhost", gatewayService.GetPort(listenerPort), "v2") //libassert.HTTPServiceEchoes(t, "localhost", gatewayService.GetPort(listenerPort), "v2")
//checkRoute(t, //checkRoute(t,
// gatewayService.GetPort(listenerPort), // gatewayService.GetPort(listenerPort),

Loading…
Cancel
Save