Skip to content

Commit b728036

Browse files
committed
fix
Signed-off-by: zirain <zirain2009@gmail.com>
1 parent deaefff commit b728036

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/e2e/tests/proxy_protocol.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ var ProxyProtocolTest = suite.ConformanceTest{
5252
{
5353
FQDN: &egv1a1.FQDNEndpoint{
5454
Hostname: fmt.Sprintf("%s.%s.svc", gwNN.Name, gwNN.Namespace),
55+
Port: 443,
5556
},
5657
},
5758
},
@@ -61,8 +62,19 @@ var ProxyProtocolTest = suite.ConformanceTest{
6162
require.NoError(t, suite.Client.Patch(t.Context(), backend, client.Apply, patchOpts...))
6263
}
6364

65+
BackendMustBeAccepted(t, suite.Client, types.NamespacedName{
66+
Name: "proxy-protocol-backend",
67+
Namespace: ns,
68+
})
69+
6470
gwAddr := kubernetes.GatewayAndRoutesMustBeAccepted(t, suite.Client,
71+
suite.TimeoutConfig, suite.ControllerName, kubernetes.NewGatewayRef(gwNN), &gwapiv1.HTTPRoute{}, false, types.NamespacedName{
72+
Name: "proxy-protocol", Namespace: ns,
73+
})
74+
75+
gwAddr = kubernetes.GatewayAndRoutesMustBeAccepted(t, suite.Client,
6576
suite.TimeoutConfig, suite.ControllerName, kubernetes.NewGatewayRef(gwNN), &gwapiv1.HTTPRoute{}, false, routeNN)
77+
6678
expectedResponse := httputils.ExpectedResponse{
6779
Request: httputils.Request{
6880
Path: "/",

0 commit comments

Comments
 (0)