mirror of
https://github.com/optim-enterprises-bv/vault.git
synced 2025-10-30 02:02:43 +00:00
test: increase wait timers in new modules (#23355)
Increase default retries for modules used in replication. Signed-off-by: Ryan Cragun <me@ryan.ec>
This commit is contained in:
@@ -382,8 +382,12 @@ scenario "replication" {
|
|||||||
}
|
}
|
||||||
|
|
||||||
step "get_primary_cluster_ips" {
|
step "get_primary_cluster_ips" {
|
||||||
module = module.vault_get_cluster_ips
|
module = module.vault_get_cluster_ips
|
||||||
depends_on = [step.verify_that_vault_primary_cluster_is_unsealed]
|
depends_on = [
|
||||||
|
step.verify_vault_version,
|
||||||
|
step.verify_ui,
|
||||||
|
step.verify_that_vault_primary_cluster_is_unsealed,
|
||||||
|
]
|
||||||
|
|
||||||
providers = {
|
providers = {
|
||||||
enos = local.enos_provider[matrix.distro]
|
enos = local.enos_provider[matrix.distro]
|
||||||
@@ -802,6 +806,11 @@ scenario "replication" {
|
|||||||
value = step.create_secondary_cluster_targets.hosts
|
value = step.create_secondary_cluster_targets.hosts
|
||||||
}
|
}
|
||||||
|
|
||||||
|
output "secondary_cluster_root_token" {
|
||||||
|
description = "The Vault secondary cluster root token"
|
||||||
|
value = step.create_secondary_cluster.root_token
|
||||||
|
}
|
||||||
|
|
||||||
output "remaining_hosts" {
|
output "remaining_hosts" {
|
||||||
description = "The Vault cluster primary hosts after removing the leader and follower"
|
description = "The Vault cluster primary hosts after removing the leader and follower"
|
||||||
value = step.get_remaining_hosts_replication_data.remaining_hosts
|
value = step.get_remaining_hosts_replication_data.remaining_hosts
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ binpath=${VAULT_INSTALL_DIR}/vault
|
|||||||
test -x "$binpath" || fail "Unable to locate vault binary at $binpath"
|
test -x "$binpath" || fail "Unable to locate vault binary at $binpath"
|
||||||
|
|
||||||
count=0
|
count=0
|
||||||
retries=5
|
retries=10
|
||||||
while :; do
|
while :; do
|
||||||
# Vault >= 1.10.x has the operator members. If we have that then we'll use it.
|
# Vault >= 1.10.x has the operator members. If we have that then we'll use it.
|
||||||
if $binpath operator -h 2>&1 | grep members &> /dev/null; then
|
if $binpath operator -h 2>&1 | grep members &> /dev/null; then
|
||||||
|
|||||||
Reference in New Issue
Block a user