Skip to content

Commit

Permalink
update env var
Browse files Browse the repository at this point in the history
  • Loading branch information
fairclothjm committed Jan 17, 2025
1 parent 411572d commit f9827fa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -208,10 +208,12 @@ jobs:
# POSTGRES_URL is the standard root conn URL for Vault
POSTGRES_URL: "postgres://postgres:secret@postgres:5432/database?sslmode=disable"
# POSTGRES_URL_TEST is used by the TFVP test to connect directly to
# the postgres container. Note: the host is "localhost" because the
# TFVP tests do not run in the same docker network.
# the postgres container so that it can create static users.
# Note: the host is "localhost" because the TFVP tests do not run in
# the same docker network.
POSTGRES_URL_TEST: "postgres://postgres:secret@localhost:5432/database?sslmode=disable"
# POSTGRES_URL_ROOTLESS is used by Vault to connect to the postgres container.
# POSTGRES_URL_ROOTLESS is used by Vault to connect to the postgres
# container for "rootless" static roles".
POSTGRES_URL_ROOTLESS: "postgres://{{username}}:{{password}}@postgres:5432/database?sslmode=disable"
COUCHBASE_HOST: couchbase
COUCHBASE_USERNAME: Administrator
Expand Down
4 changes: 2 additions & 2 deletions vault/resource_database_secret_backend_static_role_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,9 +200,9 @@ func TestAccDatabaseSecretBackendStaticRole_Rootless(t *testing.T) {
// TestAccDatabaseSecretBackendStaticRole_SkipImportRotation tests the skip
// auto import Rotation configuration.
// To run locally you will need to set the following env vars:
// - POSTGRES_URL
// - POSTGRES_URL_TEST
func TestAccDatabaseSecretBackendStaticRole_SkipImportRotation(t *testing.T) {
connURL := testutil.SkipTestEnvUnset(t, "POSTGRES_URL")[0]
connURL := testutil.SkipTestEnvUnset(t, "POSTGRES_URL_TEST")[0]

backend := acctest.RandomWithPrefix("tf-test-db")
username := acctest.RandomWithPrefix("user")
Expand Down

0 comments on commit f9827fa

Please sign in to comment.