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

Function TestSQLServerImpersonation

tests/sqlserver_test.go:65–79  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

63}
64
65func TestSQLServerImpersonation(t *testing.T) {
66 if testing.Short() {
67 t.Skip("skipping SQL Server integration tests")
68 }
69 requireSQLServerVars(t)
70 // Prepare the initial arguments
71 args := []string{
72 "--impersonate-service-account", *impersonatedUser,
73 *sqlserverConnName,
74 }
75 // Add the IP type flag using the helper
76 args = AddIPTypeFlag(args)
77 // Run the test
78 proxyConnTest(t, args, "sqlserver", sqlserverDSN())
79}
80
81func TestSQLServerAuthentication(t *testing.T) {
82 if testing.Short() {

Callers

nothing calls this directly

Calls 4

requireSQLServerVarsFunction · 0.85
AddIPTypeFlagFunction · 0.85
proxyConnTestFunction · 0.85
sqlserverDSNFunction · 0.85

Tested by

no test coverage detected