From 422e152645a0ed67b34426799fde34616afefdfd Mon Sep 17 00:00:00 2001 From: i325261 Date: Tue, 15 Oct 2024 16:05:05 +0200 Subject: [PATCH] adopt test case --- .../ctop-use-vol-mount.expected.yaml | 29 +++++++++++++------ 1 file changed, 20 insertions(+), 9 deletions(-) diff --git a/internal/controller/testdata/captenantoperation/ctop-use-vol-mount.expected.yaml b/internal/controller/testdata/captenantoperation/ctop-use-vol-mount.expected.yaml index ccb378b..46a3a8d 100644 --- a/internal/controller/testdata/captenantoperation/ctop-use-vol-mount.expected.yaml +++ b/internal/controller/testdata/captenantoperation/ctop-use-vol-mount.expected.yaml @@ -105,13 +105,15 @@ spec: value: tenant-id-for-provider - name: CAPOP_PROVIDER_SUBDOMAIN value: my-provider - - name: SERVICE_BINDING_ROOT - value: "/etc/secrets" - name: CAPOP_SUBSCRIPTION_PAYLOAD valueFrom: secretKeyRef: name: test-cap-01-gen key: subscriptionContext + - name: CAPOP_TENANT_MTXS_OPERATION + value: subscribe + - name: SERVICE_BINDING_ROOT + value: "/etc/secrets" volumeMounts: - mountPath: /cache name: cache-vol @@ -124,13 +126,8 @@ spec: - name: cap-service-manager readOnly: true mountPath: "/etc/secrets/service-manager" - command: - - node - - ./node_modules/@sap/cds-mtxs/bin/cds-mtx - - subscribe - - tenant-id-for-provider - - --body - - $(CAPOP_SUBSCRIPTION_PAYLOAD) + command: ["node", "./node_modules/@sap/cds-mtxs/bin/cds-mtx"] + args: ["$(CAPOP_TENANT_MTXS_OPERATION)", "tenant-id-for-provider", "--body", "$(CAPOP_SUBSCRIPTION_PAYLOAD)"] resources: limits: cpu: 200m @@ -233,6 +230,13 @@ spec: value: tenant-id-for-provider - name: CAPOP_PROVIDER_SUBDOMAIN value: my-provider + - name: CAPOP_SUBSCRIPTION_PAYLOAD + valueFrom: + secretKeyRef: + name: test-cap-01-gen + key: subscriptionContext + - name: CAPOP_TENANT_MTXS_OPERATION + value: subscribe - name: SERVICE_BINDING_ROOT value: "/etc/secrets" resources: @@ -279,6 +283,13 @@ spec: value: tenant-id-for-provider - name: CAPOP_PROVIDER_SUBDOMAIN value: my-provider + - name: CAPOP_SUBSCRIPTION_PAYLOAD + valueFrom: + secretKeyRef: + name: test-cap-01-gen + key: subscriptionContext + - name: CAPOP_TENANT_MTXS_OPERATION + value: subscribe - name: SERVICE_BINDING_ROOT value: "/etc/secrets" resources: