-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Source / local_app golden tests to include all protocols. (#19436)
* cover all protocols in local_app golden tests * fix xds tests * updating latest * fix broken test * add sorting of routers to TestBuildLocalApp to get rid of the flaking
- Loading branch information
Showing
42 changed files
with
3,811 additions
and
1,122 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 0 additions & 31 deletions
31
.../xdsv2/testdata/clusters/source/l4-multiple-workload-addresses-with-specific-ports.golden
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
agent/xdsv2/testdata/clusters/source/l4-multiple-workload-addresses-without-ports.golden
This file was deleted.
Oops, something went wrong.
31 changes: 0 additions & 31 deletions
31
agent/xdsv2/testdata/clusters/source/l4-single-workload-address-without-ports.golden
This file was deleted.
Oops, something went wrong.
119 changes: 119 additions & 0 deletions
119
agent/xdsv2/testdata/clusters/source/multiple-workload-addresses-with-specific-ports.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
{ | ||
"versionInfo": "00000001", | ||
"resources": [ | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"name": "local_app:grpc", | ||
"type": "STATIC", | ||
"loadAssignment": { | ||
"clusterName": "local_app:grpc", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "127.0.0.1", | ||
"portValue": 8083 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"typedExtensionProtocolOptions": { | ||
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": { | ||
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions", | ||
"explicitHttpConfig": { | ||
"http2ProtocolOptions": {} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"name": "local_app:http", | ||
"type": "STATIC", | ||
"loadAssignment": { | ||
"clusterName": "local_app:http", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "127.0.0.1", | ||
"portValue": 8081 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"name": "local_app:http2", | ||
"type": "STATIC", | ||
"loadAssignment": { | ||
"clusterName": "local_app:http2", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "127.0.0.1", | ||
"portValue": 8082 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"typedExtensionProtocolOptions": { | ||
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": { | ||
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions", | ||
"explicitHttpConfig": { | ||
"http2ProtocolOptions": {} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"name": "local_app:tcp", | ||
"type": "STATIC", | ||
"loadAssignment": { | ||
"clusterName": "local_app:tcp", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "127.0.0.1", | ||
"portValue": 8080 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"typeUrl": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"nonce": "00000001" | ||
} |
119 changes: 119 additions & 0 deletions
119
agent/xdsv2/testdata/clusters/source/multiple-workload-addresses-without-ports.golden
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,119 @@ | ||
{ | ||
"versionInfo": "00000001", | ||
"resources": [ | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"name": "local_app:grpc", | ||
"type": "STATIC", | ||
"loadAssignment": { | ||
"clusterName": "local_app:grpc", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "127.0.0.1", | ||
"portValue": 8083 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"typedExtensionProtocolOptions": { | ||
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": { | ||
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions", | ||
"explicitHttpConfig": { | ||
"http2ProtocolOptions": {} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"name": "local_app:http", | ||
"type": "STATIC", | ||
"loadAssignment": { | ||
"clusterName": "local_app:http", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "127.0.0.1", | ||
"portValue": 8081 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"name": "local_app:http2", | ||
"type": "STATIC", | ||
"loadAssignment": { | ||
"clusterName": "local_app:http2", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "127.0.0.1", | ||
"portValue": 8082 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"typedExtensionProtocolOptions": { | ||
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": { | ||
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions", | ||
"explicitHttpConfig": { | ||
"http2ProtocolOptions": {} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"@type": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"name": "local_app:tcp", | ||
"type": "STATIC", | ||
"loadAssignment": { | ||
"clusterName": "local_app:tcp", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "127.0.0.1", | ||
"portValue": 8080 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"typeUrl": "type.googleapis.com/envoy.config.cluster.v3.Cluster", | ||
"nonce": "00000001" | ||
} |
Oops, something went wrong.