From b1de81a58fe6351f0c768445f5c785ce74639ee3 Mon Sep 17 00:00:00 2001 From: Jussi Kukkonen Date: Thu, 2 Jul 2026 13:31:11 +0300 Subject: [PATCH] tests: Make vault tests more robust AI suggestions to improve test reliability: * Avoid potential IPv6 issues with URLs * Make sure init-vault.sh fails early and loudly Signed-off-by: Jussi Kukkonen --- tests/scripts/init-vault.sh | 1 + tox.ini | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/scripts/init-vault.sh b/tests/scripts/init-vault.sh index f6fc1cd6..d82b0746 100644 --- a/tests/scripts/init-vault.sh +++ b/tests/scripts/init-vault.sh @@ -1,4 +1,5 @@ #!/usr/bin/env bash +set -e vault server -dev -dev-root-token-id="${VAULT_TOKEN}" & diff --git a/tox.ini b/tox.ini index d42b5de4..24bcf84a 100644 --- a/tox.ini +++ b/tox.ini @@ -96,7 +96,7 @@ allowlist_externals = setenv = AWS_ACCESS_KEY_ID = test AWS_SECRET_ACCESS_KEY = test - AWS_ENDPOINT_URL = http://localhost:4566/ + AWS_ENDPOINT_URL = http://127.0.0.1:4566/ AWS_DEFAULT_REGION = us-east-1 commands_pre = @@ -127,7 +127,7 @@ allowlist_externals = bash setenv = - VAULT_ADDR = http://localhost:8200 + VAULT_ADDR = http://127.0.0.1:8200 VAULT_TOKEN = test-root-token commands_pre =