add unit test which confirms the removal of DATABASE_URL

Signed-off-by: Ed Kim <edward.kim@lendi.com.au>
This commit is contained in:
Ed Kim
2025-08-21 21:08:18 +10:00
parent 418b70b38e
commit c88a13c58b
@@ -110,4 +110,18 @@ tests:
path: spec.template.spec.containers[0].env
content:
name: CUSTOM_VAR
value: "custom_value"
value: "custom_value"
- it: should not include DATABASE_URL when deployStandalone is false
template: migrations-job.yaml
set:
migrationJob:
enabled: true
db:
deployStandalone: false
useExisting: false
asserts:
- notContains:
path: spec.template.spec.containers[0].env
content:
name: DATABASE_URL