vault/.github
Vault Automation 7808c301e2
feat(enos): migrate vault_verify_replication to blackbox tests (#14963) (#15112)
* 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>
2026-06-05 17:31:03 +00:00
..
actions use ubuntu-22.04 everywhere to access more hot runner pools 2026-05-28 10:26:55 -06:00
docs add PR template (#27392) 2024-06-11 18:48:27 +00:00
instructions UI/v2 forms infrastructure (#14134) (#14694) 2026-05-13 08:46:34 -07:00
ISSUE_TEMPLATE license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
scripts VAULT-44364: Separate enos CI test results from Go test results (#14395) (#14498) 2026-05-06 08:48:57 -07:00
workflows feat(enos): migrate vault_verify_replication to blackbox tests (#14963) (#15112) 2026-06-05 17:31:03 +00:00
.secret_scanning.yml license: update headers to IBM Corp. (#10229) (#10233) 2025-10-21 15:20:20 -06:00
actionlint.yml use ubuntu-22.04 everywhere to access more hot runner pools 2026-05-28 10:26:55 -06:00
CODE_OF_CONDUCT.md add code of conduct (#6049) 2019-01-15 17:30:33 -08:00
CODEOWNERS Adjust CODEOWNERS for copilot-related files (#11949) (#11959) 2026-01-23 15:12:35 -08:00
copilot-instructions.md Set up Copilot instructions entrypoint (#11946) (#11951) 2026-01-26 12:01:59 -08:00
dependabot.yml Add dependabot Configuration (#19792) 2023-04-03 12:29:11 -04:00
ISSUE_TEMPLATE.md Encourage people to use code blocks (#4228) 2018-03-30 17:02:03 -04:00
pull_request_template.md Update PR template (#9511) (#9583) 2025-09-24 15:07:14 -05:00