2023-02-02 17:15:17 -08:00
|
|
|
// Copyright (c) HashiCorp, Inc.
|
|
|
|
|
// SPDX-License-Identifier: BUSL-1.1
|
|
|
|
|
|
2021-06-22 22:26:26 -04:00
|
|
|
package vault
|
|
|
|
|
|
|
|
|
|
import "testing"
|
|
|
|
|
|
|
|
|
|
var (
|
2022-04-25 15:52:44 -04:00
|
|
|
newVaultServer func(t testing.TB, opt ...TestOption) *TestVaultServer = skipNewServer
|
|
|
|
|
mountDatabase func(t testing.TB, v *TestVaultServer, opt ...TestOption) *TestDatabase = skipMountDatabase
|
2021-06-22 22:26:26 -04:00
|
|
|
)
|
|
|
|
|
|
2022-04-25 15:52:44 -04:00
|
|
|
func skipNewServer(t testing.TB, opt ...TestOption) *TestVaultServer {
|
2021-06-22 22:26:26 -04:00
|
|
|
t.Skip("docker not available")
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
|
2022-04-25 15:52:44 -04:00
|
|
|
func skipMountDatabase(t testing.TB, v *TestVaultServer, opt ...TestOption) *TestDatabase {
|
2021-06-22 22:26:26 -04:00
|
|
|
t.Skip("docker not available")
|
|
|
|
|
return nil
|
|
|
|
|
}
|