Skip to content

Commit

Permalink
debug host
Browse files Browse the repository at this point in the history
  • Loading branch information
fairclothjm committed Nov 12, 2024
1 parent 2d50364 commit e22f7ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ jobs:
- 8200:8200
volumes:
- ${{ github.workspace }}:/vault/plugins
postgres:
image: docker.mirror.hashicorp.services/postgres:latest
env:
POSTGRES_PASSWORD: secret
POSTGRES_DB: database
ports:
- 5432:5432
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
Expand Down Expand Up @@ -115,6 +122,7 @@ jobs:
MONGODB_URL: "mongodb://root:mongodb@mongo:27017/admin?ssl=false"
MSSQL_URL: "sqlserver://sa:${{ secrets.MSSQL_SA_PASSWORD }}@mssql:1433"
POSTGRES_URL: "postgres://postgres:secret@postgres:5432/database?sslmode=disable"
POSTGRES_URL_STATIC: "postgres://{{username}}:{{password}}@postgres:5432/database?sslmode=disable"
COUCHBASE_HOST: couchbase
COUCHBASE_USERNAME: Administrator
COUCHBASE_PASSWORD: password
Expand Down
4 changes: 1 addition & 3 deletions vault/resource_database_secret_backend_static_role_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -158,9 +158,6 @@ func TestAccDatabaseSecretBackendStaticRole_rotationSchedule(t *testing.T) {
// Currently only runs locally; Vault CI is unable to talk
// to the PGX Docker container due to network issues.
func TestAccDatabaseSecretBackendStaticRole_Rootless(t *testing.T) {
// TODO enable test to run in CI
testutil.SkipTestEnvUnset(t, "PGX_ROOTLESS_ROTATION")

backend := acctest.RandomWithPrefix("tf-test-db")
username := acctest.RandomWithPrefix("user")
dbName := acctest.RandomWithPrefix("db")
Expand All @@ -176,6 +173,7 @@ CREATE ROLE "{{name}}" WITH
cleanup, pgxURL := testutil.PrepareTestContainerSelfManaged(t)
defer cleanup()

fmt.Printf("\npgxURL.Host: %s\n", pgxURL.Host)
connURL := fmt.Sprintf("postgresql://{{username}}:{{password}}@%s/postgres?sslmode=disable", pgxURL.Host)

// create static database user
Expand Down

0 comments on commit e22f7ad

Please sign in to comment.