MCPcopy Create free account
hub / github.com/bytebase/bytebase / TestAWSOpenOptions

Function TestAWSOpenOptions

backend/store/dbauth/aws_test.go:212–223  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

210}
211
212func TestAWSOpenOptions(t *testing.T) {
213 require.Empty(t, awsOpenOptions(nil, &fakeTokenProvider{}))
214
215 authConfig := &awsConfig{
216 enabled: true,
217 region: "us-east-1",
218 endpoint: "example.us-east-1.rds.amazonaws.com:5432",
219 user: "bb_meta",
220 }
221
222 require.Len(t, awsOpenOptions(authConfig, &fakeTokenProvider{}), 1)
223}
224
225func TestConfigure(t *testing.T) {
226 pgxConfig := mustParsePGXConfig(t, "postgres://bb@example.us-east-1.rds.amazonaws.com:5432/bytebase?sslmode=verify-full")

Callers

nothing calls this directly

Calls 2

awsOpenOptionsFunction · 0.85
LenMethod · 0.80

Tested by

no test coverage detected