openapi: Remove pcf plugin (#20067)

This commit is contained in:
Anton Averchenkov 2023-04-11 13:54:12 -04:00 committed by GitHub
parent 7e09f991a8
commit 30c3e70718
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 10 deletions

View File

@ -295,7 +295,6 @@ func Test_RegistryMatchesGenOpenapi(t *testing.T) {
for _, excluded := range []string{ for _, excluded := range []string{
"oidc", // alias for "jwt" "oidc", // alias for "jwt"
"openldap", // alias for "ldap" "openldap", // alias for "ldap"
"ad", // consolidated into "ldap" and deprecated
} { } {
if name == excluded { if name == excluded {
return return
@ -313,19 +312,23 @@ func Test_RegistryMatchesGenOpenapi(t *testing.T) {
t.Fatal(err) t.Fatal(err)
} }
for _, b := range scriptCredentialBackends { for _, name := range scriptCredentialBackends {
ensureInRegistry(t, b, consts.PluginTypeCredential) ensureInRegistry(t, name, consts.PluginTypeCredential)
} }
for _, b := range scriptSecretsBackends { for _, name := range scriptSecretsBackends {
ensureInRegistry(t, b, consts.PluginTypeSecrets) ensureInRegistry(t, name, consts.PluginTypeSecrets)
} }
for _, b := range Registry.Keys(consts.PluginTypeCredential) { for name, backend := range Registry.credentialBackends {
ensureInScript(t, scriptCredentialBackends, b) if backend.DeprecationStatus == consts.Supported {
ensureInScript(t, scriptCredentialBackends, name)
}
} }
for _, b := range Registry.Keys(consts.PluginTypeSecrets) { for name, backend := range Registry.logicalBackends {
ensureInScript(t, scriptSecretsBackends, b) if backend.DeprecationStatus == consts.Supported {
ensureInScript(t, scriptSecretsBackends, name)
}
} }
} }

View File

@ -55,7 +55,6 @@ vault auth enable "kubernetes"
vault auth enable "ldap" vault auth enable "ldap"
vault auth enable "oci" vault auth enable "oci"
vault auth enable "okta" vault auth enable "okta"
vault auth enable "pcf"
vault auth enable "radius" vault auth enable "radius"
vault auth enable "userpass" vault auth enable "userpass"