| 10 | ) |
| 11 | |
| 12 | func DeleteHydraRows(t *testing.T, c *pop.Connection) { |
| 13 | for _, tb := range []string{ |
| 14 | "hydra_oauth2_access", |
| 15 | "hydra_oauth2_refresh", |
| 16 | "hydra_oauth2_code", |
| 17 | "hydra_oauth2_oidc", |
| 18 | "hydra_oauth2_pkce", |
| 19 | "hydra_oauth2_device_auth_codes", |
| 20 | "hydra_oauth2_flow", |
| 21 | "hydra_oauth2_authentication_session", |
| 22 | "hydra_oauth2_obfuscated_authentication_session", |
| 23 | "hydra_oauth2_logout_request", |
| 24 | "hydra_oauth2_jti_blacklist", |
| 25 | "hydra_oauth2_trusted_jwt_bearer_issuer", |
| 26 | "hydra_jwk", |
| 27 | "hydra_client", |
| 28 | } { |
| 29 | if err := c.RawQuery("DELETE FROM " + tb).Exec(); err != nil { |
| 30 | t.Logf(`Unable to delete rows in table "%s": %s`, tb, err) |
| 31 | } |
| 32 | } |
| 33 | } |