2022-01-05 18:02:03 +00:00
|
|
|
//go:build !enterprise
|
2020-08-10 12:35:57 +00:00
|
|
|
|
|
|
|
package testhelpers
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hashicorp/vault/vault"
|
|
|
|
"github.com/mitchellh/go-testing-interface"
|
|
|
|
)
|
|
|
|
|
|
|
|
// WaitForActiveNodeAndStandbys does nothing more than wait for the active node
|
|
|
|
// on OSS. On enterprise it waits for perf standbys to be healthy too.
|
2021-02-18 20:40:18 +00:00
|
|
|
func WaitForActiveNodeAndStandbys(t testing.T, cluster *vault.TestCluster) {
|
2020-08-10 12:35:57 +00:00
|
|
|
WaitForActiveNode(t, cluster)
|
2022-08-26 16:50:10 +00:00
|
|
|
for _, core := range cluster.Cores {
|
|
|
|
if standby, _ := core.Core.Standby(); standby {
|
|
|
|
WaitForStandbyNode(t, core)
|
|
|
|
}
|
|
|
|
}
|
2020-08-10 12:35:57 +00:00
|
|
|
}
|