Skip to content

Commit

Permalink
Simplify testing
Browse files Browse the repository at this point in the history
Signed-off-by: SorsOps <[email protected]>
  • Loading branch information
SorsOps committed Feb 13, 2025
1 parent beaa6f6 commit 81216df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 39 deletions.
12 changes: 8 additions & 4 deletions charts/ztka/tests/__snapshot__/deployment-paralus.yml.snap
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ should include external secrets env when configured:
data:
AUDIT_LOG_FILE: /audit-logs/audit.log
AUDIT_LOG_STORAGE: database
CORE_RELAY_CONNECTOR_HOST: '*.core-connector.example.com:443'
CORE_RELAY_USER_HOST: '*.user.example.com:443'
CORE_RELAY_CONNECTOR_HOST: '*.core-connector.paralus.local:443'
CORE_RELAY_USER_HOST: '*.user.paralus.local:443'
DEV: "false"
ES_END_POINT: ""
ES_INDEX_PREFIX: ralog-system
Expand All @@ -15,7 +15,7 @@ should include external secrets env when configured:
RELAY_COMMANDS_ES_INDEX_PREFIX: ralog-prompt
RELAY_IMAGE: paralusio/relay:v0.1.8
SCHEDULER_NAMESPACE: NAMESPACE
SENTRY_BOOTSTRAP_ADDR: console.example.com:80
SENTRY_BOOTSTRAP_ADDR: console.paralus.local:80
SENTRY_PEERING_HOST: paralus:10001
kind: ConfigMap
metadata:
Expand Down Expand Up @@ -50,7 +50,7 @@ should include external secrets env when configured:
template:
metadata:
annotations:
checksum/config: 25597cb7fd7758be68f59d3de9bd6d6fe60948fc4513e49c32ffbe92f6f8e665
checksum/config: 4297441245c73841ed2a81d95ec8cb57e9f7b769758fb20300507243724937b7
labels:
app.kubernetes.io/component: workload
app.kubernetes.io/instance: RELEASE-NAME
Expand Down Expand Up @@ -109,6 +109,10 @@ should include external secrets env when configured:
ports:
- containerPort: 11000
name: http
- containerPort: 10000
name: rpc
- containerPort: 10001
name: relay-peering
resources: {}
securityContext: {}
volumeMounts:
Expand Down
35 changes: 0 additions & 35 deletions charts/ztka/tests/deployment-paralus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,24 +4,6 @@ templates:
- configmap-paralus.yaml
tests:
- it: should render the basic deployment structure
set:
fqdn:
domain: "example.com"
hostname: "console"
coreConnectorSubdomain: "*.core-connector"
userSubdomain: "*.user"
images:
paralus:
repository: paralusio/paralus
tag: "v0.2.8"
pullPolicy: IfNotPresent
services:
paralus:
name: paralus
type: ClusterIP
ports:
- name: http
containerPort: 11000
asserts:
- isKind:
of: Deployment
Expand All @@ -32,23 +14,6 @@ tests:

- it: should include external secrets env when configured
set:
fqdn:
domain: "example.com"
hostname: "console"
coreConnectorSubdomain: "*.core-connector"
userSubdomain: "*.user"
images:
paralus:
repository: paralusio/paralus
tag: "v0.2.8"
pullPolicy: IfNotPresent
services:
paralus:
name: paralus
type: ClusterIP
ports:
- name: http
containerPort: 11000
deploy:
postgresql:
existingSecret:
Expand Down

0 comments on commit 81216df

Please sign in to comment.