-
Notifications
You must be signed in to change notification settings - Fork 834
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(envoy): add an envoy config snapshot test (#6121)
* updating the envoy settings test to check the generated envoy config * PR review comments * fix test * add slash
- Loading branch information
Showing
27 changed files
with
9,154 additions
and
442 deletions.
There are no files selected for viewing
1,072 changes: 630 additions & 442 deletions
1,072
scheduler/pkg/envoy/processor/incremental_test.go
Large diffs are not rendered by default.
Oops, something went wrong.
242 changes: 242 additions & 0 deletions
242
scheduler/pkg/envoy/processor/snapshots_testdata/delete-experiment-clusters.json
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,242 @@ | ||
[ | ||
{ | ||
"name": "pipelinegateway_http", | ||
"type": "STRICT_DNS", | ||
"connectTimeout": "5s", | ||
"lbPolicy": "LEAST_REQUEST", | ||
"loadAssignment": { | ||
"clusterName": "pipelinegateway_http", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "pipeline", | ||
"portValue": 2 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"dnsLookupFamily": "V4_ONLY" | ||
}, | ||
{ | ||
"name": "pipelinegateway_grpc", | ||
"type": "STRICT_DNS", | ||
"connectTimeout": "5s", | ||
"lbPolicy": "LEAST_REQUEST", | ||
"loadAssignment": { | ||
"clusterName": "pipelinegateway_grpc", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "pipeline", | ||
"portValue": 1 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"typedExtensionProtocolOptions": { | ||
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": { | ||
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions", | ||
"explicitHttpConfig": { | ||
"http2ProtocolOptions": {} | ||
} | ||
} | ||
}, | ||
"dnsLookupFamily": "V4_ONLY" | ||
}, | ||
{ | ||
"name": "mirror_http", | ||
"type": "STRICT_DNS", | ||
"connectTimeout": "5s", | ||
"lbPolicy": "LEAST_REQUEST", | ||
"loadAssignment": { | ||
"clusterName": "mirror_http", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "0.0.0.0", | ||
"portValue": 9001 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"dnsLookupFamily": "V4_ONLY" | ||
}, | ||
{ | ||
"name": "mirror_grpc", | ||
"type": "STRICT_DNS", | ||
"connectTimeout": "5s", | ||
"lbPolicy": "LEAST_REQUEST", | ||
"loadAssignment": { | ||
"clusterName": "mirror_grpc", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "0.0.0.0", | ||
"portValue": 9001 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"typedExtensionProtocolOptions": { | ||
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": { | ||
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions", | ||
"explicitHttpConfig": { | ||
"http2ProtocolOptions": {} | ||
} | ||
} | ||
}, | ||
"dnsLookupFamily": "V4_ONLY" | ||
}, | ||
{ | ||
"name": "model1_1_http", | ||
"type": "STRICT_DNS", | ||
"connectTimeout": "5s", | ||
"lbPolicy": "LEAST_REQUEST", | ||
"loadAssignment": { | ||
"clusterName": "model1_1_http", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "server.0", | ||
"portValue": 1234 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"dnsLookupFamily": "V4_ONLY" | ||
}, | ||
{ | ||
"name": "model1_1_grpc", | ||
"type": "STRICT_DNS", | ||
"connectTimeout": "5s", | ||
"lbPolicy": "LEAST_REQUEST", | ||
"loadAssignment": { | ||
"clusterName": "model1_1_grpc", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "server.0", | ||
"portValue": 0 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"typedExtensionProtocolOptions": { | ||
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": { | ||
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions", | ||
"explicitHttpConfig": { | ||
"http2ProtocolOptions": {} | ||
} | ||
} | ||
}, | ||
"dnsLookupFamily": "V4_ONLY" | ||
}, | ||
{ | ||
"name": "model2_1_http", | ||
"type": "STRICT_DNS", | ||
"connectTimeout": "5s", | ||
"lbPolicy": "LEAST_REQUEST", | ||
"loadAssignment": { | ||
"clusterName": "model2_1_http", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "server.1", | ||
"portValue": 1234 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"dnsLookupFamily": "V4_ONLY" | ||
}, | ||
{ | ||
"name": "model2_1_grpc", | ||
"type": "STRICT_DNS", | ||
"connectTimeout": "5s", | ||
"lbPolicy": "LEAST_REQUEST", | ||
"loadAssignment": { | ||
"clusterName": "model2_1_grpc", | ||
"endpoints": [ | ||
{ | ||
"lbEndpoints": [ | ||
{ | ||
"endpoint": { | ||
"address": { | ||
"socketAddress": { | ||
"address": "server.1", | ||
"portValue": 0 | ||
} | ||
} | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"typedExtensionProtocolOptions": { | ||
"envoy.extensions.upstreams.http.v3.HttpProtocolOptions": { | ||
"@type": "type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions", | ||
"explicitHttpConfig": { | ||
"http2ProtocolOptions": {} | ||
} | ||
} | ||
}, | ||
"dnsLookupFamily": "V4_ONLY" | ||
} | ||
] |
Oops, something went wrong.