(t *testing.T)
| 127 | } |
| 128 | |
| 129 | func TestPostgresImpersonation(t *testing.T) { |
| 130 | if testing.Short() { |
| 131 | t.Skip("skipping Postgres integration tests") |
| 132 | } |
| 133 | requirePostgresVars(t) |
| 134 | // Prepare the initial arguments |
| 135 | args := []string{ |
| 136 | "--impersonate-service-account", *impersonatedUser, |
| 137 | *postgresConnName, |
| 138 | } |
| 139 | // Add the IP type flag using the helper |
| 140 | args = AddIPTypeFlag(args) |
| 141 | // Run the test |
| 142 | proxyConnTest(t, args, "pgx", postgresDSN()) |
| 143 | } |
| 144 | |
| 145 | func TestPostgresAuthentication(t *testing.T) { |
| 146 | if testing.Short() { |
nothing calls this directly
no test coverage detected