Skip to content

Commit

Permalink
feat(bpdm-system-test): updated correct path for default secrets.
Browse files Browse the repository at this point in the history
  • Loading branch information
SujitMBRDI committed Dec 12, 2024
1 parent 7b60582 commit eb751f0
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
4 changes: 4 additions & 0 deletions bpdm-system-tester/src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down
10 changes: 9 additions & 1 deletion charts/bpdm/templates/tests/secret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
{{- end }}

2 changes: 1 addition & 1 deletion charts/bpdm/templates/tests/test-connection.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit eb751f0

Please sign in to comment.