mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-11-01 19:17:58 +00:00
Move pki docker tests to pkiext (#17928)
* Export CreateBackendWithStorage for pkiext Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com> * Move zlint_test.go to pkiext Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com> * Fix mount all test to ignore pkiext Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com> Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package command
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"strings"
|
||||
@@ -217,6 +218,10 @@ func TestSecretsEnableCommand_Run(t *testing.T) {
|
||||
if f.Name() == "plugin" {
|
||||
continue
|
||||
}
|
||||
if _, err := os.Stat("../builtin/logical/" + f.Name() + "/backend.go"); errors.Is(err, os.ErrNotExist) {
|
||||
// Skip ext test packages (fake plugins without backends).
|
||||
continue
|
||||
}
|
||||
backends = append(backends, f.Name())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user