From c88a13c58bce2fd12cee0ec5cebcb45f4f71a32b Mon Sep 17 00:00:00 2001 From: Ed Kim Date: Thu, 21 Aug 2025 21:08:18 +1000 Subject: [PATCH] add unit test which confirms the removal of DATABASE_URL Signed-off-by: Ed Kim --- .../litellm-helm/tests/migrations-job_tests.yaml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/deploy/charts/litellm-helm/tests/migrations-job_tests.yaml b/deploy/charts/litellm-helm/tests/migrations-job_tests.yaml index 686d20efa5..3a7bfa5eb0 100644 --- a/deploy/charts/litellm-helm/tests/migrations-job_tests.yaml +++ b/deploy/charts/litellm-helm/tests/migrations-job_tests.yaml @@ -110,4 +110,18 @@ tests: path: spec.template.spec.containers[0].env content: name: CUSTOM_VAR - value: "custom_value" \ No newline at end of file + 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 \ No newline at end of file