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:
Alexander Scheel
2022-11-14 18:26:26 -05:00
committed by GitHub
parent 2f51cb4820
commit 047a9ff03a
15 changed files with 114 additions and 99 deletions

View File

@@ -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())
}
}