-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(unit): show that timeouts are applied even when there is no policy
Signed-off-by: Lukasz Dziedziak <[email protected]>
- Loading branch information
Showing
3 changed files
with
69 additions
and
0 deletions.
There are no files selected for viewing
9 changes: 9 additions & 0 deletions
9
...s/policies/meshtimeout/plugin/testdata/basic_without_defaults_inbound_cluster.golden.yaml
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,9 @@ | ||
connectTimeout: 5s | ||
name: localhost:8080 | ||
typedExtensionProtocolOptions: | ||
envoy.extensions.upstreams.http.v3.HttpProtocolOptions: | ||
'@type': type.googleapis.com/envoy.extensions.upstreams.http.v3.HttpProtocolOptions | ||
commonHttpProtocolOptions: | ||
idleTimeout: 3600s | ||
maxConnectionDuration: 5s | ||
maxStreamDuration: 0s |
36 changes: 36 additions & 0 deletions
36
.../policies/meshtimeout/plugin/testdata/basic_without_defaults_inbound_listener.golden.yaml
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,36 @@ | ||
address: | ||
socketAddress: | ||
address: 127.0.0.1 | ||
portValue: 80 | ||
enableReusePort: false | ||
filterChains: | ||
- filters: | ||
- name: envoy.filters.network.http_connection_manager | ||
typedConfig: | ||
'@type': type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager | ||
commonHttpProtocolOptions: | ||
idleTimeout: 0s | ||
httpFilters: | ||
- name: envoy.filters.http.router | ||
typedConfig: | ||
'@type': type.googleapis.com/envoy.extensions.filters.http.router.v3.Router | ||
requestHeadersTimeout: 0s | ||
routeConfig: | ||
name: inbound:backend | ||
requestHeadersToRemove: | ||
- x-kuma-tags | ||
validateClusters: false | ||
virtualHosts: | ||
- domains: | ||
- '*' | ||
name: backend | ||
routes: | ||
- match: | ||
prefix: / | ||
route: | ||
cluster: backend | ||
idleTimeout: 5s | ||
timeout: 15s | ||
statPrefix: inbound_127_0_0_1_80 | ||
name: inbound:127.0.0.1:80 | ||
trafficDirection: INBOUND |
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