mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-27 01:50:31 -04:00
* feat(enos): migrate vault_verify_replication to blackbox tests Convert vault_verify_replication from bash scripts to blackbox SDK tests. Changes: - Created vault/external_tests/blackbox/verify/replication_test.go with TestReplicationAvailability - Updated enos-scenario-smoke.hcl to use vault_run_blackbox_test module - Removed enos/modules/vault_verify_replication module and bash script The new test verifies: - CE: replication mode is 'disabled' - ENT: DR and performance replication are available Fixes: Converts bash-based verification to Go-based blackbox tests for better maintainability * Add detailed error messages to replication test for debugging * Add debug logging to replication test * Exclude TestReplicationAvailability from race detection The TestReplicationAvailability test requires a live Vault instance with VAULT_ADDR and VAULT_TOKEN environment variables set. This test is not compatible with race detection runs in CI which don't have these prerequisites configured. Add //go:build !race tag to exclude this test from race detection runs. * Revert "Exclude TestReplicationAvailability from race detection" This reverts commit 5afc7c1bf243e7e833864288cdd5bd16c9ed3018. * Fix replication test to read from root namespace The test was failing because it tried to read sys/replication/status from within the test's isolated namespace. Replication status is only available at the root namespace level. Changes: - Use WithRootNamespace() to read replication status from root - Add proper error handling for the namespace operation - Add api import for WithRootNamespace return type * Add testonly build tag and update CI workflow pattern for verify tests * Add missing ip_version parameter to vault_run_blackbox_test calls Co-authored-by: hashigator <280075563+hashigator@users.noreply.github.com> |
||
|---|---|---|
| .. | ||
| actions | ||
| docs | ||
| instructions | ||
| ISSUE_TEMPLATE | ||
| scripts | ||
| workflows | ||
| .secret_scanning.yml | ||
| actionlint.yml | ||
| CODE_OF_CONDUCT.md | ||
| CODEOWNERS | ||
| copilot-instructions.md | ||
| dependabot.yml | ||
| ISSUE_TEMPLATE.md | ||
| pull_request_template.md | ||