openapi: Remove 'ad' from gen_openapi.sh

This commit is contained in:
Anton Averchenkov 2023-03-27 15:50:36 -04:00 committed by GitHub
parent 1ec25ee93f
commit fe53ebd19c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 4 deletions

View File

@ -292,9 +292,13 @@ func Test_RegistryMatchesGenOpenapi(t *testing.T) {
ensureInScript := func(t *testing.T, scriptBackends []string, name string) {
t.Helper()
// "openldap" is an alias for "ldap" secrets engine
if name == "openldap" {
return
for _, excluded := range []string{
"openldap", // alias for "ldap"
"ad", // consolidated into "ldap" and deprecated
} {
if name == excluded {
return
}
}
if !slices.Contains(scriptBackends, name) {

View File

@ -61,7 +61,6 @@ vault auth enable "radius"
vault auth enable "userpass"
# Enable secrets plugins
vault secrets enable "ad"
vault secrets enable "alicloud"
vault secrets enable "aws"
vault secrets enable "azure"