mirror of
https://github.com/alibaba/higress.git
synced 2026-04-22 12:37:26 +08:00
fix: Fix e2e 'request header control' and add some testcases (#352)
This commit is contained in:
@@ -61,7 +61,7 @@ kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
higress.io/request-header-control-update: stage pro
|
||||
name: httproute-request-header-control-update
|
||||
name: httproute-request-header-control-update-one
|
||||
namespace: higress-conformance-infra
|
||||
spec:
|
||||
ingressClassName: higress
|
||||
@@ -81,8 +81,10 @@ apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
higress.io/request-header-control-remove: stage
|
||||
name: httproute-request-header-control-remove
|
||||
higress.io/request-header-control-update: |
|
||||
stage pro
|
||||
canary false
|
||||
name: httproute-request-header-control-update-more
|
||||
namespace: higress-conformance-infra
|
||||
spec:
|
||||
ingressClassName: higress
|
||||
@@ -97,3 +99,45 @@ spec:
|
||||
name: infra-backend-v1
|
||||
port:
|
||||
number: 8080
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
higress.io/request-header-control-remove: stage
|
||||
name: httproute-request-header-control-remove-one
|
||||
namespace: higress-conformance-infra
|
||||
spec:
|
||||
ingressClassName: higress
|
||||
rules:
|
||||
- host: "foo.com"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Exact
|
||||
path: "/foo5"
|
||||
backend:
|
||||
service:
|
||||
name: infra-backend-v1
|
||||
port:
|
||||
number: 8080
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
annotations:
|
||||
higress.io/request-header-control-remove: stage,canary
|
||||
name: httproute-request-header-control-remove-more
|
||||
namespace: higress-conformance-infra
|
||||
spec:
|
||||
ingressClassName: higress
|
||||
rules:
|
||||
- host: "foo.com"
|
||||
http:
|
||||
paths:
|
||||
- pathType: Exact
|
||||
path: "/foo6"
|
||||
backend:
|
||||
service:
|
||||
name: infra-backend-v1
|
||||
port:
|
||||
number: 8080
|
||||
|
||||
Reference in New Issue
Block a user