You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// assert that the correct delegateVaultPlugin was initialized
_, ok := cloudSQLPlugin.delegateVaultPlugin.(*postgresql.PostgreSQL)
if !ok {
t.Errorf("expected type of delegated database vault plugin to be of type '*postgresql.PostgreSQL' but got '%s'", reflect.TypeOf(cloudSQLPlugin.delegateVaultPlugin))
}
// assert that the driver was registered correctly
foundDriver := false
for _, v := range sql.Drivers() {
if v == Postgres.String() {
foundDriver = true
}
}
if !foundDriver {
t.Error("expected the driver 'cloudsql-postgres' to be registered but was not found")