Skip to content

Commit

Permalink
httproute hittable
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahalsmiller committed Feb 22, 2023
1 parent 184b6bb commit cc213b6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
_, _, err := libservice.CreateAndRegisterStaticServerAndSidecar(node, serviceOpts)
require.NoError(t, err)
service, _, err := libservice.CreateAndRegisterStaticServerAndSidecar(node, serviceOpts)
assert.NoError(t, err)

libassert.CatalogServiceExists(t, client, serviceOpts.Name+"-sidecar-proxy")
libassert.CatalogServiceExists(t, client, serviceOpts.Name)

// Create a client proxy instance with the server as an upstream
//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
return service

}
func createServices(t *testing.T, cluster *libcluster.Cluster, ports ...int) (libservice.Service, libservice.Service) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,6 @@ func TestHTTPRouteFlattening(t *testing.T) {
"x-v2": "v2",
})

for {
}

//libassert.HTTPServiceEchoes(t, "localhost", gatewayService.GetPort(listenerPort), "v2")
//checkRoute(t,
// gatewayService.GetPort(listenerPort),
Expand Down

0 comments on commit cc213b6

Please sign in to comment.