// Check that the given Vault node has the given status
Check that the given Vault node has the given status
// Check that the given Vault node has the given status
func assertNodeStatus(t *testing.T, host ssh.Host, bastionHost *ssh.Host, expectedStatus VaultStatus) {
	maxRetries := 30
	sleepBetweenRetries := 10 * time.Second
	description := fmt.Sprintf("Check that the Vault node %s has status %d", host.Hostname, int(expectedStatus))
	out := retry.DoWithRetry(t, description, maxRetries, sleepBetweenRetries, func() (string, error) {
		return checkStatus(t, host, bastionHost, expectedStatus)
	})
	logger.Logf(t, out)
}
func assertNodeStatus ( t * testing . T , host ssh . Host , bastionHost * ssh . Host , expectedStatus VaultStatus ) { maxRetries := 30 sleepBetweenRetries := 10 * time . Second description := fmt . Sprintf ( " " , host . Hostname , int ( expectedStatus ) ) out := retry . DoWithRetry ( t , description , maxRetries , sleepBetweenRetries , func ( ) ( string , error ) { return checkStatus ( t , host , bastionHost , expectedStatus ) } ) logger . Logf ( t , out ) }
Check that the given Vault node has the given status
Check that the given Vault node has the given status