Skip to content

Commit

Permalink
test: update snapshots and enable external secrets and istio tests
Browse files Browse the repository at this point in the history
On-behalf-of: @SAP angel.kafazov@sap.com
Signed-off-by: Angel Kafazov <akafazov@cst-bg.net>
  • Loading branch information
akafazov committed Dec 4, 2024
1 parent d2152d5 commit 0a215c9
Show file tree
Hide file tree
Showing 4 changed files with 88 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1 +1,43 @@
{}
matches the snapshot:
1: |
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: RELEASE-NAME-keycloak-admin
namespace: openmfp-system
spec:
data:
- remoteRef:
conversionStrategy: Default
key: dxp-core-team/manual-secrets/keycloak-admin
property: password
secretKey: secret
refreshInterval: 10m
secretStoreRef:
kind: SecretStore
name: environment-store
target:
creationPolicy: Owner
deletionPolicy: Retain
name: keycloak-admin
2: |
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: RELEASE-NAME-keycloak-postgres
namespace: openmfp-system
spec:
data:
- remoteRef:
conversionStrategy: Default
key: null
property: password
secretKey: password
refreshInterval: 10m
secretStoreRef:
kind: SecretStore
name: environment-store
target:
creationPolicy: Owner
deletionPolicy: Retain
name: postgres-admin-password
38 changes: 37 additions & 1 deletion charts/keycloak/tests/__snapshot__/istio_test.yaml.snap
Original file line number Diff line number Diff line change
@@ -1 +1,37 @@
{}
matches the snapshot:
1: |
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: RELEASE-NAME-keycloak
spec:
gateways:
- openmfp-system/
hosts:
- keycloak.openmfp.org
http:
- route:
- destination:
host: keycloak.openmfp-system.svc.cluster.local
port:
number: null
matches the snapshot (with path prefix):
1: |
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: RELEASE-NAME-keycloak
spec:
gateways:
- openmfp-system/
hosts:
- keycloak.openmfp.org
http:
- match:
- uri:
prefix: /auth
route:
- destination:
host: keycloak.openmfp-system.svc.cluster.local
port:
number: null
3 changes: 3 additions & 0 deletions charts/keycloak/tests/external-secrets_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ templates:
tests:
- it: matches the snapshot
template: external-secrets.yaml
set:
externalSecrets:
enabled: true
asserts:
- matchSnapshot: {}
5 changes: 5 additions & 0 deletions charts/keycloak/tests/istio_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,15 @@ values:
- ../test-values.yaml
tests:
- it: matches the snapshot
set:
istio:
enabled: true
asserts:
- matchSnapshot: {}
- it: matches the snapshot (with path prefix)
set:
domain.pathPrefix: /auth
istio:
enabled: true
asserts:
- matchSnapshot: {}

0 comments on commit 0a215c9

Please sign in to comment.