MCPcopy Create free account
hub / github.com/GoogleCloudPlatform/cloud-sql-proxy / TestMySQLImpersonation

Function TestMySQLImpersonation

tests/mysql_test.go:148–163  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

146}
147
148func TestMySQLImpersonation(t *testing.T) {
149 if testing.Short() {
150 t.Skip("skipping MySQL integration tests")
151 }
152 requireMySQLVars(t)
153
154 // Prepare the initial arguments
155 args := []string{
156 "--impersonate-service-account", *impersonatedUser,
157 *mysqlConnName,
158 }
159 // Add the IP type flag using the helper
160 args = AddIPTypeFlag(args)
161 // Run the test
162 proxyConnTest(t, args, "mysql", mysqlDSN())
163}
164
165func TestMySQLAuthentication(t *testing.T) {
166 if testing.Short() {

Callers

nothing calls this directly

Calls 4

requireMySQLVarsFunction · 0.85
AddIPTypeFlagFunction · 0.85
proxyConnTestFunction · 0.85
mysqlDSNFunction · 0.85

Tested by

no test coverage detected