Copilot commented on code in PR #2601:
URL:
https://github.com/apache/apisix-ingress-controller/pull/2601#discussion_r2428595659
##########
test/e2e/gatewayapi/httproute.go:
##########
@@ -2439,4 +2442,104 @@ spec:
})
})
+
+ Context("Test Service With AppProtocol", func() {
+ var (
+ httproute = `
+apiVersion: gateway.networking.k8s.io/v1
+kind: HTTPRoute
+metadata:
+ name: nginx
+spec:
+ parentRefs:
+ - name: %s
+ hostnames:
+ - api6.com
+ rules:
+ - matches:
+ - path:
+ type: Exact
+ value: /get
+ backendRefs:
+ - name: nginx
+ port: 443
+ `
+ httprouteWithWSS = `
+apiVersion: gateway.networking.k8s.io/v1
+kind: HTTPRoute
+metadata:
+ name: nginx-wss
+spec:
+ parentRefs:
+ - name: %s
+ hostnames:
+ - api6.com
+ rules:
+ - matches:
+ - path:
+ type: Exact
+ value: /ws
+ backendRefs:
+ - name: nginx
+ port: 8443
+ `
+ )
+
+ BeforeEach(func() {
+ beforeEachHTTPS()
+ s.DeployNginx(framework.NginxOptions{
+ Namespace: s.Namespace(),
+ Replicas: ptr.To(int32(1)),
+ })
+ })
+ It("HTTPS backend", func() {
+ s.ResourceApplied("HTTPRoute", "nginx",
fmt.Sprintf(httproute, s.Namespace()), 1)
+ s.RequestAssert(&scaffold.RequestAssert{
+ Method: "GET",
+ Path: "/get",
+ Host: "api6.com",
+ Check:
scaffold.WithExpectedStatus(http.StatusOK),
+ })
+ })
+
+ It("WWS backend", func() {
Review Comment:
Corrected spelling of 'WWS' to 'WSS' in test description.
```suggestion
It("WSS backend", func() {
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]