Skip to content

Commit

Permalink
e2e: add test for Timeout in ClientTrafficPolicy (envoyproxy#2705)
Browse files Browse the repository at this point in the history
* e2e: add test for Timeout in ClientTrafficPolicy

Signed-off-by: zirain <zirain2009@gmail.com>

* send large size header

Signed-off-by: zirain <zirain2009@gmail.com>

* update

Signed-off-by: zirain <zirain2009@gmail.com>

* fix invalid header value

Signed-off-by: zirain <zirain2009@gmail.com>

* raw http request

Signed-off-by: zirain <zirain2009@gmail.com>

* lint

Signed-off-by: zirain <zirain2009@gmail.com>

* AwaitConvergence

Signed-off-by: zirain <zirain2009@gmail.com>

* comment

Signed-off-by: zirain <zirain2009@gmail.com>

---------

Signed-off-by: zirain <zirain2009@gmail.com>
  • Loading branch information
zirain committed Feb 28, 2024
1 parent ee03d30 commit 5d70912
Show file tree
Hide file tree
Showing 2 changed files with 99 additions and 0 deletions.
31 changes: 31 additions & 0 deletions test/e2e/testdata/client-timeout.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
apiVersion: gateway.envoyproxy.io/v1alpha1
kind: ClientTrafficPolicy
metadata:
name: client-timeout
namespace: gateway-conformance-infra
spec:
targetRef:
group: gateway.networking.k8s.io
kind: Gateway
name: same-namespace
namespace: gateway-conformance-infra
timeout:
http:
requestReceivedTimeout: 1ms
---
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: http-client-timeout
namespace: gateway-conformance-infra
spec:
parentRefs:
- name: same-namespace
rules:
- matches:
- path:
type: PathPrefix
value: /request-timeout
backendRefs:
- name: infra-backend-v1
port: 8080
Loading

0 comments on commit 5d70912

Please sign in to comment.