Skip to content

Commit 1925948

Browse files
committed
fix yaml
1 parent cae7ae7 commit 1925948

File tree

3 files changed

+48
-48
lines changed

3 files changed

+48
-48
lines changed

tests/suite/manifests/snippets-filter/invalid-context-sf.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,21 +17,21 @@ metadata:
1717
name: soda
1818
spec:
1919
parentRefs:
20-
- name: gateway
21-
sectionName: http
20+
- name: gateway
21+
sectionName: http
2222
hostnames:
23-
- "cafe.example.com"
23+
- "cafe.example.com"
2424
rules:
25-
- matches:
26-
- path:
27-
type: Exact
28-
value: /soda
29-
filters:
30-
- type: ExtensionRef
31-
extensionRef:
32-
group: gateway.nginx.org
33-
kind: SnippetsFilter
34-
name: invalid-context
35-
backendRefs:
36-
- name: soda
37-
port: 80
25+
- matches:
26+
- path:
27+
type: Exact
28+
value: /soda
29+
filters:
30+
- type: ExtensionRef
31+
extensionRef:
32+
group: gateway.nginx.org
33+
kind: SnippetsFilter
34+
name: invalid-context
35+
backendRefs:
36+
- name: soda
37+
port: 80

tests/suite/manifests/snippets-filter/valid-sf.yaml

Lines changed: 31 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -34,44 +34,44 @@ metadata:
3434
name: coffee
3535
spec:
3636
parentRefs:
37-
- name: gateway
38-
sectionName: http
37+
- name: gateway
38+
sectionName: http
3939
hostnames:
40-
- "cafe.example.com"
40+
- "cafe.example.com"
4141
rules:
42-
- matches:
43-
- path:
44-
type: PathPrefix
45-
value: /coffee
46-
filters:
47-
- type: ExtensionRef
48-
extensionRef:
49-
group: gateway.nginx.org
50-
kind: SnippetsFilter
51-
name: all-contexts
52-
backendRefs:
53-
- name: coffee
54-
port: 80
42+
- matches:
43+
- path:
44+
type: PathPrefix
45+
value: /coffee
46+
filters:
47+
- type: ExtensionRef
48+
extensionRef:
49+
group: gateway.nginx.org
50+
kind: SnippetsFilter
51+
name: all-contexts
52+
backendRefs:
53+
- name: coffee
54+
port: 80
5555
---
5656
apiVersion: gateway.networking.k8s.io/v1
5757
kind: GRPCRoute
5858
metadata:
5959
name: grpc-route
6060
spec:
6161
parentRefs:
62-
- name: gateway
63-
sectionName: http
62+
- name: gateway
63+
sectionName: http
6464
rules:
65-
- matches:
66-
- method:
67-
service: helloworld.Greeter
68-
method: SayHello
69-
filters:
70-
- type: ExtensionRef
71-
extensionRef:
72-
group: gateway.nginx.org
73-
kind: SnippetsFilter
74-
name: grpc-all-contexts
75-
backendRefs:
76-
- name: grpc-backend
77-
port: 8080
65+
- matches:
66+
- method:
67+
service: helloworld.Greeter
68+
method: SayHello
69+
filters:
70+
- type: ExtensionRef
71+
extensionRef:
72+
group: gateway.nginx.org
73+
kind: SnippetsFilter
74+
name: grpc-all-contexts
75+
backendRefs:
76+
- name: grpc-backend
77+
port: 8080

tests/suite/tracing_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ var _ = Describe("Tracing", FlakeAttempts(2), Label("functional", "tracing"), fu
214214
})
215215

216216
func verifyGatewayClassResolvedRefs() error {
217-
ctx, cancel := context.WithTimeout(context.Background(), timeoutConfig.GetTimeout*2)
217+
ctx, cancel := context.WithTimeout(context.Background(), timeoutConfig.GetTimeout)
218218
defer cancel()
219219

220220
var gc gatewayv1.GatewayClass

0 commit comments

Comments
 (0)