Skip to content

Commit 314a5a9

Browse files
test cases adopted to use service name in volume mount path
1 parent 89525e4 commit 314a5a9

File tree

3 files changed

+19
-19
lines changed

3 files changed

+19
-19
lines changed

internal/controller/testdata/capapplicationversion/expected/cav-processing-use-vol-mount.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -284,10 +284,10 @@ spec:
284284
subPath: xsapp.json
285285
- name: cap-uaa
286286
readOnly: true
287-
mountPath: "/etc/secrets/xsuaa"
287+
mountPath: "/etc/secrets/cap-uaa"
288288
- name: cap-saas-registry
289289
readOnly: true
290-
mountPath: "/etc/secrets/saas-registry"
290+
mountPath: "/etc/secrets/cap-saas-registry"
291291
livenessProbe:
292292
failureThreshold: 3
293293
httpGet:
@@ -342,10 +342,10 @@ spec:
342342
volumeMounts:
343343
- name: cap-uaa
344344
readOnly: true
345-
mountPath: "/etc/secrets/xsuaa"
345+
mountPath: "/etc/secrets/cap-uaa"
346346
- name: cap-saas-registry
347347
readOnly: true
348-
mountPath: "/etc/secrets/saas-registry"
348+
mountPath: "/etc/secrets/cap-saas-registry"
349349
resources:
350350
limits:
351351
cpu: 100m
@@ -362,10 +362,10 @@ spec:
362362
mountPath: /log
363363
- name: cap-uaa
364364
readOnly: true
365-
mountPath: "/etc/secrets/xsuaa"
365+
mountPath: "/etc/secrets/cap-uaa"
366366
- name: cap-saas-registry
367367
readOnly: true
368-
mountPath: "/etc/secrets/saas-registry"
368+
mountPath: "/etc/secrets/cap-saas-registry"
369369
env:
370370
- name: LOG_CONTAINER_ENV
371371
value: "log-container-env"
@@ -422,7 +422,7 @@ spec:
422422
volumeMounts:
423423
- name: cap-uaa
424424
readOnly: true
425-
mountPath: "/etc/secrets/xsuaa"
425+
mountPath: "/etc/secrets/cap-uaa"
426426
imagePullSecrets:
427427
- name: regcred
428428
restartPolicy: "OnFailure"

internal/controller/testdata/captenantoperation/ctop-use-vol-mount-custom.expected.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ spec:
123123
name: cache-vol
124124
- name: cap-uaa
125125
readOnly: true
126-
mountPath: "/etc/secrets/xsuaa"
126+
mountPath: "/etc/secrets/cap-uaa"
127127
command: ["cowsay", "$(CAPOP_TENANT_OPERATION)", "$(CAPOP_TENANT_ID)"]
128128
name: custom-say
129129
imagePullSecrets:
@@ -187,7 +187,7 @@ spec:
187187
volumeMounts:
188188
- name: cap-uaa
189189
readOnly: true
190-
mountPath: "/etc/secrets/xsuaa"
190+
mountPath: "/etc/secrets/cap-uaa"
191191
env:
192192
- name: INIT_CONTAINER_ENV
193193
value: "init-container-env"
@@ -227,7 +227,7 @@ spec:
227227
mountPath: /log
228228
- name: cap-uaa
229229
readOnly: true
230-
mountPath: "/etc/secrets/xsuaa"
230+
mountPath: "/etc/secrets/cap-uaa"
231231
env:
232232
- name: LOG_CONTAINER_ENV
233233
value: "log-container-env"

internal/controller/testdata/captenantoperation/ctop-use-vol-mount.expected.yaml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -119,13 +119,13 @@ spec:
119119
name: cache-vol
120120
- name: cap-uaa
121121
readOnly: true
122-
mountPath: "/etc/secrets/xsuaa"
122+
mountPath: "/etc/secrets/cap-uaa"
123123
- name: cap-saas-registry
124124
readOnly: true
125-
mountPath: "/etc/secrets/saas-registry"
125+
mountPath: "/etc/secrets/cap-saas-registry"
126126
- name: cap-service-manager
127127
readOnly: true
128-
mountPath: "/etc/secrets/service-manager"
128+
mountPath: "/etc/secrets/cap-service-manager"
129129
command: ["node", "./node_modules/@sap/cds-mtxs/bin/cds-mtx"]
130130
args: ["$(CAPOP_TENANT_MTXS_OPERATION)", "tenant-id-for-provider", "--body", "$(CAPOP_SUBSCRIPTION_PAYLOAD)"]
131131
resources:
@@ -202,13 +202,13 @@ spec:
202202
volumeMounts:
203203
- name: cap-uaa
204204
readOnly: true
205-
mountPath: "/etc/secrets/xsuaa"
205+
mountPath: "/etc/secrets/cap-uaa"
206206
- name: cap-saas-registry
207207
readOnly: true
208-
mountPath: "/etc/secrets/saas-registry"
208+
mountPath: "/etc/secrets/cap-saas-registry"
209209
- name: cap-service-manager
210210
readOnly: true
211-
mountPath: "/etc/secrets/service-manager"
211+
mountPath: "/etc/secrets/cap-service-manager"
212212
env:
213213
- name: INIT_CONTAINER_ENV
214214
value: "init-container-env"
@@ -255,13 +255,13 @@ spec:
255255
mountPath: /log
256256
- name: cap-uaa
257257
readOnly: true
258-
mountPath: "/etc/secrets/xsuaa"
258+
mountPath: "/etc/secrets/cap-uaa"
259259
- name: cap-saas-registry
260260
readOnly: true
261-
mountPath: "/etc/secrets/saas-registry"
261+
mountPath: "/etc/secrets/cap-saas-registry"
262262
- name: cap-service-manager
263263
readOnly: true
264-
mountPath: "/etc/secrets/service-manager"
264+
mountPath: "/etc/secrets/cap-service-manager"
265265
env:
266266
- name: LOG_CONTAINER_ENV
267267
value: "log-container-env"

0 commit comments

Comments
 (0)