Skip to content

Commit 17f5a7c

Browse files
committed
update tests for uspolicy
1 parent bfa16c1 commit 17f5a7c

File tree

4 files changed

+189
-140
lines changed

4 files changed

+189
-140
lines changed

tests/suite/manifests/upstream-settings-policy/invalid-svc-usps.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
apiVersion: gateway.nginx.org/v1alpha1
22
kind: UpstreamSettingsPolicy
33
metadata:
4-
name: does-not-exist
4+
name: usps-target-not-found
55
spec:
66
zoneSize: 512k
77
targetRefs:
88
- group: core
99
kind: Service
10-
name: latte
10+
name: targeted-svc-dne
1111
keepAlive:
1212
connections: 10
1313
requests: 3

tests/suite/manifests/upstream-settings-policy/invalid-target-usps.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ spec:
4848
apiVersion: gateway.networking.k8s.io/v1
4949
kind: HTTPRoute
5050
metadata:
51-
name: sode
51+
name: soda
5252
spec:
5353
parentRefs:
5454
- name: gateway-not-valid

tests/suite/manifests/upstream-settings-policy/valid-merge-usps.yaml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,20 @@ spec:
2727
apiVersion: gateway.nginx.org/v1alpha1
2828
kind: UpstreamSettingsPolicy
2929
metadata:
30-
name: z-usp-wins
30+
name: z-merge-usp-3
31+
spec:
32+
targetRefs:
33+
- group: core
34+
kind: Service
35+
name: coffee
36+
keepAlive:
37+
connections: 11
38+
requests: 15
39+
---
40+
apiVersion: gateway.nginx.org/v1alpha1
41+
kind: UpstreamSettingsPolicy
42+
metadata:
43+
name: z-usp
3144
spec:
3245
zoneSize: 64k
3346
targetRefs:
@@ -38,7 +51,7 @@ spec:
3851
apiVersion: gateway.nginx.org/v1alpha1
3952
kind: UpstreamSettingsPolicy
4053
metadata:
41-
name: a-usp
54+
name: a-usp-wins
4255
spec:
4356
zoneSize: 128k
4457
targetRefs:

0 commit comments

Comments
 (0)