MCPcopy Create free account
hub / github.com/CrunchyData/postgres-operator / TestPostgreSQLHBAs

Function TestPostgreSQLHBAs

internal/pgbouncer/postgres_test.go:186–191  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

184}
185
186func TestPostgreSQLHBAs(t *testing.T) {
187 rules := postgresqlHBAs()
188 assert.Equal(t, len(rules), 2)
189 assert.Equal(t, rules[0].String(), `hostssl all "_crunchypgbouncer" all "scram-sha-256"`)
190 assert.Equal(t, rules[1].String(), `host all "_crunchypgbouncer" all "reject"`)
191}

Callers

nothing calls this directly

Calls 3

postgresqlHBAsFunction · 0.85
EqualMethod · 0.45
StringMethod · 0.45

Tested by

no test coverage detected