Skip to content
This repository was archived by the owner on Sep 25, 2025. It is now read-only.

Commit 193a48d

Browse files
committed
update test snapshot
On-behalf-of: @SAP [email protected] Signed-off-by: Angel Kafazov <[email protected]>
1 parent 78aaa67 commit 193a48d

File tree

4 files changed

+142
-22
lines changed

4 files changed

+142
-22
lines changed

charts/example-content/tests/__snapshot__/snapshot_test.yaml.snap

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,26 @@ matches the snapshot:
100100
- emptyDir: {}
101101
name: run-volume
102102
4: |
103+
apiVersion: autoscaling/v2
104+
kind: HorizontalPodAutoscaler
105+
metadata:
106+
name: RELEASE-NAME-example-content
107+
namespace: NAMESPACE
108+
spec:
109+
maxReplicas: 5
110+
metrics:
111+
- resource:
112+
name: cpu
113+
target:
114+
averageUtilization: 50
115+
type: Utilization
116+
type: Resource
117+
minReplicas: 1
118+
scaleTargetRef:
119+
apiVersion: apps/v1
120+
kind: Deployment
121+
name: RELEASE-NAME-example-content
122+
5: |
103123
apiVersion: networking.istio.io/v1alpha3
104124
kind: VirtualService
105125
metadata:
@@ -119,15 +139,15 @@ matches the snapshot:
119139
host: RELEASE-NAME-example-content.NAMESPACE.svc.cluster.local
120140
port:
121141
number: 8080
122-
5: |
142+
6: |
123143
apiVersion: v1
124144
imagePullSecrets:
125145
- name: github
126146
kind: ServiceAccount
127147
metadata:
128148
name: RELEASE-NAME-example-content
129149
namespace: NAMESPACE
130-
6: |
150+
7: |
131151
apiVersion: v1
132152
kind: Service
133153
metadata:
@@ -243,6 +263,26 @@ matches the snapshot (internalUrl):
243263
- emptyDir: {}
244264
name: run-volume
245265
4: |
266+
apiVersion: autoscaling/v2
267+
kind: HorizontalPodAutoscaler
268+
metadata:
269+
name: RELEASE-NAME-example-content
270+
namespace: NAMESPACE
271+
spec:
272+
maxReplicas: 5
273+
metrics:
274+
- resource:
275+
name: cpu
276+
target:
277+
averageUtilization: 50
278+
type: Utilization
279+
type: Resource
280+
minReplicas: 1
281+
scaleTargetRef:
282+
apiVersion: apps/v1
283+
kind: Deployment
284+
name: RELEASE-NAME-example-content
285+
5: |
246286
apiVersion: networking.istio.io/v1alpha3
247287
kind: VirtualService
248288
metadata:
@@ -262,15 +302,15 @@ matches the snapshot (internalUrl):
262302
host: RELEASE-NAME-example-content.NAMESPACE.svc.cluster.local
263303
port:
264304
number: 8080
265-
5: |
305+
6: |
266306
apiVersion: v1
267307
imagePullSecrets:
268308
- name: github
269309
kind: ServiceAccount
270310
metadata:
271311
name: RELEASE-NAME-example-content
272312
namespace: NAMESPACE
273-
6: |
313+
7: |
274314
apiVersion: v1
275315
kind: Service
276316
metadata:

charts/kubernetes-graphql-gateway/tests/__snapshot__/snapshot_test.yaml.snap

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,26 @@ match the Snapshot:
124124
sizeLimit: 500Mi
125125
name: definitions-volume
126126
2: |
127+
apiVersion: autoscaling/v2
128+
kind: HorizontalPodAutoscaler
129+
metadata:
130+
name: openmfp-kubernetes-graphql-gateway
131+
namespace: openmfp-system
132+
spec:
133+
maxReplicas: 5
134+
metrics:
135+
- resource:
136+
name: cpu
137+
target:
138+
averageUtilization: 50
139+
type: Utilization
140+
type: Resource
141+
minReplicas: 1
142+
scaleTargetRef:
143+
apiVersion: apps/v1
144+
kind: Deployment
145+
name: openmfp-kubernetes-graphql-gateway
146+
3: |
127147
apiVersion: security.istio.io/v1
128148
kind: AuthorizationPolicy
129149
metadata:
@@ -151,7 +171,7 @@ match the Snapshot:
151171
selector:
152172
matchLabels:
153173
app: openmfp-kubernetes-graphql-gateway
154-
3: |
174+
4: |
155175
apiVersion: networking.istio.io/v1alpha3
156176
kind: DestinationRule
157177
metadata:
@@ -162,7 +182,7 @@ match the Snapshot:
162182
trafficPolicy:
163183
tls:
164184
mode: ISTIO_MUTUAL
165-
4: |
185+
5: |
166186
apiVersion: security.istio.io/v1beta1
167187
kind: PeerAuthentication
168188
metadata:
@@ -174,7 +194,7 @@ match the Snapshot:
174194
selector:
175195
matchLabels:
176196
app: openmfp-kubernetes-graphql-gateway
177-
5: |
197+
6: |
178198
apiVersion: security.istio.io/v1beta1
179199
kind: RequestAuthentication
180200
metadata:
@@ -185,7 +205,7 @@ match the Snapshot:
185205
selector:
186206
matchLabels:
187207
app: openmfp-kubernetes-graphql-gateway
188-
6: |
208+
7: |
189209
apiVersion: networking.istio.io/v1alpha3
190210
kind: VirtualService
191211
metadata:
@@ -217,15 +237,15 @@ match the Snapshot:
217237
host: openmfp-kubernetes-graphql-gateway.openmfp-system.svc.cluster.local
218238
port:
219239
number: 8080
220-
7: |
240+
8: |
221241
apiVersion: v1
222242
imagePullSecrets:
223243
- name: github
224244
kind: ServiceAccount
225245
metadata:
226246
name: openmfp-kubernetes-graphql-gateway
227247
namespace: openmfp-system
228-
8: |
248+
9: |
229249
apiVersion: v1
230250
kind: Service
231251
metadata:

charts/kubernetes-graphql-gateway/tests/__snapshot__/test_values_test.yaml.snap

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,26 @@ match the Snapshot:
132132
sizeLimit: 500Mi
133133
name: definitions-volume
134134
2: |
135+
apiVersion: autoscaling/v2
136+
kind: HorizontalPodAutoscaler
137+
metadata:
138+
name: openmfp-kubernetes-graphql-gateway
139+
namespace: openmfp-system
140+
spec:
141+
maxReplicas: 5
142+
metrics:
143+
- resource:
144+
name: cpu
145+
target:
146+
averageUtilization: 50
147+
type: Utilization
148+
type: Resource
149+
minReplicas: 1
150+
scaleTargetRef:
151+
apiVersion: apps/v1
152+
kind: Deployment
153+
name: openmfp-kubernetes-graphql-gateway
154+
3: |
135155
apiVersion: security.istio.io/v1
136156
kind: AuthorizationPolicy
137157
metadata:
@@ -159,7 +179,7 @@ match the Snapshot:
159179
selector:
160180
matchLabels:
161181
app: openmfp-kubernetes-graphql-gateway
162-
3: |
182+
4: |
163183
apiVersion: networking.istio.io/v1alpha3
164184
kind: DestinationRule
165185
metadata:
@@ -170,7 +190,7 @@ match the Snapshot:
170190
trafficPolicy:
171191
tls:
172192
mode: ISTIO_MUTUAL
173-
4: |
193+
5: |
174194
apiVersion: security.istio.io/v1beta1
175195
kind: PeerAuthentication
176196
metadata:
@@ -182,7 +202,7 @@ match the Snapshot:
182202
selector:
183203
matchLabels:
184204
app: openmfp-kubernetes-graphql-gateway
185-
5: |
205+
6: |
186206
apiVersion: security.istio.io/v1beta1
187207
kind: RequestAuthentication
188208
metadata:
@@ -193,7 +213,7 @@ match the Snapshot:
193213
selector:
194214
matchLabels:
195215
app: openmfp-kubernetes-graphql-gateway
196-
6: |
216+
7: |
197217
apiVersion: networking.istio.io/v1alpha3
198218
kind: VirtualService
199219
metadata:
@@ -225,15 +245,15 @@ match the Snapshot:
225245
host: openmfp-kubernetes-graphql-gateway.openmfp-system.svc.cluster.local
226246
port:
227247
number: 8080
228-
7: |
248+
8: |
229249
apiVersion: v1
230250
imagePullSecrets:
231251
- name: github
232252
kind: ServiceAccount
233253
metadata:
234254
name: openmfp-kubernetes-graphql-gateway
235255
namespace: openmfp-system
236-
8: |
256+
9: |
237257
apiVersion: v1
238258
kind: Service
239259
metadata:

charts/portal/tests/__snapshot__/istio_test.yaml.snap

Lines changed: 46 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,26 @@ matches the snapshot:
117117
terminationGracePeriodSeconds: 10
118118
volumes: null
119119
2: |
120+
apiVersion: autoscaling/v2
121+
kind: HorizontalPodAutoscaler
122+
metadata:
123+
name: portal
124+
namespace: NAMESPACE
125+
spec:
126+
maxReplicas: 5
127+
metrics:
128+
- resource:
129+
name: cpu
130+
target:
131+
averageUtilization: 50
132+
type: Utilization
133+
type: Resource
134+
minReplicas: 1
135+
scaleTargetRef:
136+
apiVersion: apps/v1
137+
kind: Deployment
138+
name: portal
139+
3: |
120140
apiVersion: rbac.authorization.k8s.io/v1
121141
kind: ClusterRole
122142
metadata:
@@ -130,7 +150,7 @@ matches the snapshot:
130150
- get
131151
- watch
132152
- list
133-
3: |
153+
4: |
134154
apiVersion: rbac.authorization.k8s.io/v1
135155
kind: ClusterRoleBinding
136156
metadata:
@@ -143,14 +163,14 @@ matches the snapshot:
143163
- kind: ServiceAccount
144164
name: portal
145165
namespace: NAMESPACE
146-
4: |
166+
5: |
147167
apiVersion: v1
148168
imagePullSecrets:
149169
- name: github
150170
kind: ServiceAccount
151171
metadata:
152172
name: portal
153-
5: |
173+
6: |
154174
apiVersion: v1
155175
kind: Service
156176
metadata:
@@ -282,6 +302,26 @@ matches the snapshot with istio disabled:
282302
terminationGracePeriodSeconds: 10
283303
volumes: null
284304
2: |
305+
apiVersion: autoscaling/v2
306+
kind: HorizontalPodAutoscaler
307+
metadata:
308+
name: portal
309+
namespace: NAMESPACE
310+
spec:
311+
maxReplicas: 5
312+
metrics:
313+
- resource:
314+
name: cpu
315+
target:
316+
averageUtilization: 50
317+
type: Utilization
318+
type: Resource
319+
minReplicas: 1
320+
scaleTargetRef:
321+
apiVersion: apps/v1
322+
kind: Deployment
323+
name: portal
324+
3: |
285325
apiVersion: rbac.authorization.k8s.io/v1
286326
kind: ClusterRole
287327
metadata:
@@ -295,7 +335,7 @@ matches the snapshot with istio disabled:
295335
- get
296336
- watch
297337
- list
298-
3: |
338+
4: |
299339
apiVersion: rbac.authorization.k8s.io/v1
300340
kind: ClusterRoleBinding
301341
metadata:
@@ -308,14 +348,14 @@ matches the snapshot with istio disabled:
308348
- kind: ServiceAccount
309349
name: portal
310350
namespace: NAMESPACE
311-
4: |
351+
5: |
312352
apiVersion: v1
313353
imagePullSecrets:
314354
- name: github
315355
kind: ServiceAccount
316356
metadata:
317357
name: portal
318-
5: |
358+
6: |
319359
apiVersion: v1
320360
kind: Service
321361
metadata:

0 commit comments

Comments
 (0)