File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -253,6 +253,12 @@ spec:
253253 type: AdminKey
254254 adminKey:
255255 value: "%s"
256+ plugins:
257+ - name: response-rewrite
258+ enabled: true
259+ config:
260+ headers:
261+ X-Proxy-Test: "enabled"
256262`
257263
258264 gatewayProxyWithSecretYaml := `
@@ -274,6 +280,12 @@ spec:
274280 secretKeyRef:
275281 name: admin-secret
276282 key: admin-key
283+ plugins:
284+ - name: response-rewrite
285+ enabled: true
286+ config:
287+ headers:
288+ X-Proxy-Test: "enabled"
277289`
278290
279291 var ingressClassWithProxy = `
@@ -368,11 +380,12 @@ spec:
368380 time .Sleep (5 * time .Second )
369381
370382 By ("verify HTTP request" )
371- s .NewAPISIXClient ().
383+ resp := s .NewAPISIXClient ().
372384 GET ("/get" ).
373385 WithHost ("proxy.example.com" ).
374386 Expect ().
375387 Status (200 )
388+ resp .Header ("X-Proxy-Test" ).IsEqual ("enabled" )
376389 })
377390
378391 It ("Test IngressClass with GatewayProxy using Secret" , func () {
You can’t perform that action at this time.
0 commit comments