Skip to content

The fastest, litest AI Gateway. Rust core with Python SDK. Call 100+ LLM APIs in OpenAI (or native) format with cost tracking, guardrails, load balancing, and logging [Bedrock, Azure, OpenAI, Anthropic, OpenAI, VertexAI, vLLM, Nvidia NIM]

add unit test which confirms the removal of DATABASE_URL

Ed Kimc88a13c58bce
diff --git a/deploy/charts/litellm-helm/tests/migrations-job_tests.yaml b/deploy/charts/litellm-helm/tests/migrations-job_tests.yaml
index 686d20efa55..3a7bfa5eb0c 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