test(e2e): Move postgres info to other variables (#6367)

This commit is contained in:
Michael Li authored and GitHub committed 2026-01-23 15:19:03 -05:00
1 parent 4582761059
commit 06af2baf31
5 files changed
+34 -4

No files matched your search

+12
View File
@@ -189,6 +189,16 @@ variable "postgres_database_name" {
type = string
default = ""
}
variable "postgres_address" {
description = "Address of the postgres database"
type = string
default = ""
}
variable "postgres_port" {
description = "Port of the postgres database"
type = string
default = ""
}
variable "ldap_address" {
description = "URL to LDAP server"
type = string
@@ -336,6 +346,8 @@ resource "enos_local_exec" "run_e2e_test" {
E2E_POSTGRES_USER = var.postgres_user
E2E_POSTGRES_PASSWORD = var.postgres_password
E2E_POSTGRES_DB_NAME = var.postgres_database_name
E2E_POSTGRES_ADDRESS = var.postgres_address
E2E_POSTGRES_PORT = var.postgres_port
E2E_WORKER_TAG_INGRESS = var.worker_tag_ingress
E2E_WORKER_TAG_EGRESS = var.worker_tag_egress
E2E_WORKER_TAG_COLLOCATED = var.worker_tag_collocated
@@ -37,6 +37,8 @@ docker run \
-e "E2E_POSTGRES_USER=$E2E_POSTGRES_USER" \
-e "E2E_POSTGRES_PASSWORD=$E2E_POSTGRES_PASSWORD" \
-e "E2E_POSTGRES_DB_NAME=$E2E_POSTGRES_DB_NAME" \
-e "E2E_POSTGRES_ADDRESS=$E2E_POSTGRES_ADDRESS" \
-e "E2E_POSTGRES_PORT=$E2E_POSTGRES_PORT" \
-e "E2E_WORKER_TAG_INGRESS=$E2E_WORKER_TAG_INGRESS" \
-e "E2E_WORKER_TAG_EGRESS=$E2E_WORKER_TAG_EGRESS" \
-e "E2E_WORKER_TAG_COLLOCATED=$E2E_WORKER_TAG_COLLOCATED" \