Documentation ¶
Index ¶
- func DeriveActiveCore(t testing.T, cluster *vault.TestCluster) *vault.TestClusterCore
- func EnsureCoresUnsealed(t testing.T, c *vault.TestCluster)
- func GenerateRoot(t testing.T, cluster *vault.TestCluster, drToken bool) string
- func GenerateRootWithError(t testing.T, cluster *vault.TestCluster, drToken bool) (string, error)
- func GetClusterAndCore(t testing.T, logger log.Logger) (*vault.TestCluster, *vault.TestClusterCore)
- func RandomWithPrefix(name string) string
- func SetupFourClusterReplication(t testing.T, ...)
- func WaitForNCoresSealed(t testing.T, cluster *vault.TestCluster, n int)
- func WaitForReplicationState(t testing.T, c *vault.Core, state consts.ReplicationState)
- type ReplicatedTestClusters
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeriveActiveCore ¶ added in v0.11.2
func DeriveActiveCore(t testing.T, cluster *vault.TestCluster) *vault.TestClusterCore
func EnsureCoresUnsealed ¶ added in v0.11.2
func EnsureCoresUnsealed(t testing.T, c *vault.TestCluster)
func GenerateRoot ¶
Generates a root token on the target cluster.
func GenerateRootWithError ¶
func GetClusterAndCore ¶ added in v1.0.0
func GetClusterAndCore(t testing.T, logger log.Logger) (*vault.TestCluster, *vault.TestClusterCore)
func RandomWithPrefix ¶ added in v0.11.0
RandomWithPrefix is used to generate a unique name with a prefix, for randomizing names in acceptance tests
func SetupFourClusterReplication ¶ added in v0.11.2
func SetupFourClusterReplication(t testing.T, perfPrimary, perfSecondary, perfDRSecondary, perfSecondaryDRSecondary *vault.TestCluster)
func WaitForNCoresSealed ¶ added in v0.11.2
func WaitForNCoresSealed(t testing.T, cluster *vault.TestCluster, n int)
func WaitForReplicationState ¶ added in v0.11.2
Types ¶
type ReplicatedTestClusters ¶ added in v1.0.0
type ReplicatedTestClusters struct { PerfPrimaryCluster *vault.TestCluster PerfSecondaryCluster *vault.TestCluster PerfPrimaryDRCluster *vault.TestCluster PerfSecondaryDRCluster *vault.TestCluster }
func GetFourReplicatedClusters ¶ added in v1.0.0
func GetFourReplicatedClusters(t testing.T) *ReplicatedTestClusters
func (*ReplicatedTestClusters) Cleanup ¶ added in v1.0.0
func (r *ReplicatedTestClusters) Cleanup()
Click to show internal directories.
Click to hide internal directories.