From eb751f04f53eeeb117d74433e1c8b5288e182a38 Mon Sep 17 00:00:00 2001 From: SujitMBRDI Date: Thu, 12 Dec 2024 16:24:41 +0530 Subject: [PATCH] feat(bpdm-system-test): updated correct path for default secrets. --- bpdm-system-tester/src/main/resources/application.yml | 4 ++++ charts/bpdm/templates/tests/secret.yaml | 10 +++++++++- charts/bpdm/templates/tests/test-connection.yaml | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/bpdm-system-tester/src/main/resources/application.yml b/bpdm-system-tester/src/main/resources/application.yml index 2c44a436a..f2e46dab3 100644 --- a/bpdm-system-tester/src/main/resources/application.yml +++ b/bpdm-system-tester/src/main/resources/application.yml @@ -2,6 +2,8 @@ bpdm: client: pool: securityEnabled: true + # The base-url of the Pool-API + base-url: http://localhost:8080 provider: issuer-uri: http://localhost:8180/realms/CX-Central registration: @@ -12,6 +14,8 @@ bpdm: client-secret: "**********" gate: securityEnabled: true + # The base-url of the Pool-API + base-url: http://localhost:8081 provider: issuer-uri: http://localhost:8180/realms/CX-Central registration: diff --git a/charts/bpdm/templates/tests/secret.yaml b/charts/bpdm/templates/tests/secret.yaml index 8ffdc4ce2..66dab56fe 100644 --- a/charts/bpdm/templates/tests/secret.yaml +++ b/charts/bpdm/templates/tests/secret.yaml @@ -26,7 +26,15 @@ metadata: "helm.sh/hook": test type: Opaque stringData: + defaultSecrets.yml: + bpdm: + client: + pool: + base-url: http://{{ include "bpdm.toReleaseName" (list . "bpdm-pool") }} + gate: + base-url: http://{{ include "bpdm.toReleaseName" (list . "bpdm-gate") }} secrets.yml: |- {{- if .Values.tests.applicationConfig }} {{- .Values.tests.applicationConfig | toYaml | nindent 4 }} -{{- end }} \ No newline at end of file +{{- end }} + diff --git a/charts/bpdm/templates/tests/test-connection.yaml b/charts/bpdm/templates/tests/test-connection.yaml index 606c08d54..27dcfc36a 100644 --- a/charts/bpdm/templates/tests/test-connection.yaml +++ b/charts/bpdm/templates/tests/test-connection.yaml @@ -30,7 +30,7 @@ spec: image: "{{ .Values.tests.image.registry }}/{{ .Values.tests.image.repository }}:{{ .Values.tests.image.tag | default .Chart.AppVersion }}" env: - name: SPRING_CONFIG_IMPORT - value: "/etc/conf/secrets.yml" + value: "/etc/conf/defaultSecrets.yml,/etc/conf/secrets.yml" volumeMounts: - mountPath: /etc/conf name: config