Skip to content

Commit 07077ca

Browse files
committed
fix test
Signed-off-by: Huabing (Robin) Zhao <zhaohuabing@gmail.com>
1 parent 1e80380 commit 07077ca

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

internal/xds/translator/testdata/in/xds-ir/jsonpatch-with-jsonpath.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ envoyPatchPolicies:
3434
cluster_name: rate-limit-cluster
3535
transport_api_version: V3
3636
- type: "type.googleapis.com/envoy.config.route.v3.RouteConfiguration"
37-
name: "::-10080"
37+
name: "first-listener"
3838
operation:
3939
op: "add"
4040
jsonPath: "virtual_hosts[0]"
@@ -43,7 +43,7 @@ envoyPatchPolicies:
4343
- actions:
4444
- remote_address: {}
4545
- type: "type.googleapis.com/envoy.config.route.v3.RouteConfiguration"
46-
name: "::-10080"
46+
name: "first-listener"
4747
operation:
4848
op: "replace"
4949
jsonPath: "..routes[?(@.name=='second-route')].route.upgrade_configs"

internal/xds/translator/testdata/out/xds-ir/jsonpatch-with-jsonpath.envoypatchpolicies.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
namespace: default
1010
conditions:
1111
- lastTransitionTime: null
12-
message: 'Unable to find xds resources: type.googleapis.com/envoy.config.route.v3.RouteConfiguration/::-10080,type.googleapis.com/envoy.config.route.v3.RouteConfiguration/::-10080'
13-
reason: ResourceNotFound
14-
status: "False"
12+
message: Patches have been successfully applied.
13+
reason: Programmed
14+
status: "True"
1515
type: Programmed
1616
controllerName: ""

internal/xds/translator/testdata/out/xds-ir/jsonpatch-with-jsonpath.routes.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
- domains:
55
- '*'
66
name: first-listener/*
7+
rateLimits:
8+
- actions:
9+
- remoteAddress: {}
710
routes:
811
- match:
912
headers:
@@ -29,4 +32,5 @@
2932
route:
3033
cluster: second-route-dest
3134
upgradeConfigs:
32-
- upgradeType: websocket
35+
- connectConfig: {}
36+
upgradeType: CONNECT

0 commit comments

Comments
 (0)