Skip to content

Commit 7123bf8

Browse files
committed
merge
1 parent d6d06a4 commit 7123bf8

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

test/e2e/crds/backendtrafficpolicy.go

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,23 @@ import (
1212
var _ = Describe("Test BackendTrafficPolicy", func() {
1313
s := scaffold.NewDefaultScaffold()
1414

15+
var defaultGatewayProxy = `
16+
apiVersion: gateway.apisix.io/v1alpha1
17+
kind: GatewayProxy
18+
metadata:
19+
name: api7-proxy-config
20+
spec:
21+
provider:
22+
type: ControlPlane
23+
controlPlane:
24+
endpoints:
25+
- %s
26+
auth:
27+
type: AdminKey
28+
adminKey:
29+
value: "%s"
30+
`
31+
1532
var defaultGatewayClass = `
1633
apiVersion: gateway.networking.k8s.io/v1
1734
kind: GatewayClass
@@ -88,7 +105,7 @@ spec:
88105
`
89106

90107
BeforeEach(func() {
91-
s.ApplyDefaultGatewayResource(defaultGatewayClass, defaultGateway, defaultHTTPRoute)
108+
s.ApplyDefaultGatewayResource(defaultGatewayProxy, defaultGatewayClass, defaultGateway, defaultHTTPRoute)
92109
})
93110
It("should rewrite upstream host", func() {
94111
s.ResourceApplied("BackendTrafficPolicy", "httpbin", createUpstreamHost, 1)

0 commit comments

Comments
 (0)