mirror of
https://github.com/hashicorp/vault.git
synced 2026-06-26 17:49:02 -04:00
* Reorganize vault blackbox tests into isolated/scenario/system structure (#14919) * Reorganize vault blackbox tests into isolated/scenario/system structure - Move 38 test files from flat structure to organized directories: * isolated/: namespace-scoped, concurrent-safe tests (auth, secrets, plugins, verify) * scenario/: state-changing tests (raft, ha) * system/: system-level config tests (billing, license) - Add build tags (isolated, scenario, system) to all test files - Update enos scenarios to use new test paths (./vault/external_tests/blackbox/isolated/verify) - Add isolated build tag to undo_logs_test.go for consistency - Remove empty directories and duplicate test files - All tests compile successfully with respective build tags Updated enos scenarios: autopilot, agent, dr-replication, plugin, pr-replication, proxy, seal-ha, smoke, upgrade * Fix test failures: skip postgres without env vars, handle userpass login failure * Add HSM-specific build tags for test compilation * Add metadata path permissions for KV v2 delete/undelete operations * Fix KV tests: use user session for all write operations * Fix KV tests: remove userpass, use root session * Incorporate new AWS and LDAP test functions from main branch - Add TestAWS_SecretsCreate() and TestAWS_SecretsRead() to isolated/plugins/aws/secrets_aws_test.go * Tests basic AWS secrets engine configuration and role creation * Tests reading AWS role and root configuration * Complements existing TestAWS_GenerateNewUser() with simpler test cases - Add TestLDAP_StaticRoleCreate(), TestLDAP_LibrarySetRead(), and TestLDAP_LibrarySetDelete() to isolated/plugins/ldap/secrets_ldap_test.go * Tests LDAP static role creation for password rotation * Tests LDAP library set operations for service account management * Tests library set deletion * Adds requireLDAPAvailable() helper for connectivity verification * Complements existing dynamic credential tests - All new test functions include: * Build tag: //go:build isolated * t.Parallel() for concurrent execution * Proper environment variable checks with skip logic * Consistent error handling and assertions - Cleanup: * Removed stray .git directories from test folders * Removed empty vault/external_tests/blackbox/plugins directory These changes ensure the PR includes all test coverage from main while maintaining the new isolated/scenario/system organization structure. * Fix pr-replication scenario to use correct test path and name - Update test_package from ./vault/external_tests/blackbox/verify to isolated/verify - Update test_names from TestVaultUIAvailability to TestUIAssets - Fixes test failures caused by incomplete migration in blackbox test reorganization * Fix all Enos scenarios: isolated/verify path and correct test names * Skip isolated tests on CE - require enterprise features --------- Co-authored-by: hashigator <280075563+hashigator@users.noreply.github.com> Co-authored-by: hashigator <lt.carbonell@ibm.com> |
||
|---|---|---|
| .. | ||
| artifact/metadata | ||
| autopilot_upgrade_storageconfig | ||
| backend_consul | ||
| backend_raft | ||
| benchmark | ||
| build_artifactory_artifact | ||
| build_artifactory_package | ||
| build_crt | ||
| build_local | ||
| choose_follower_host | ||
| cloud_docker_vault_cluster | ||
| create_vpc | ||
| create_vpc_fyre_shim | ||
| database_container | ||
| disable_selinux | ||
| docker_namespace_token | ||
| docker_network | ||
| ec2_info | ||
| fyre_os_info | ||
| generate_dr_operation_token | ||
| generate_failover_secondary_token | ||
| generate_secondary_public_key | ||
| generate_secondary_token | ||
| get_local_metadata | ||
| hcp | ||
| install_packages | ||
| k8s_deploy_vault | ||
| k8s_vault_verify_replication | ||
| k8s_vault_verify_ui | ||
| k8s_vault_verify_version | ||
| k8s_vault_verify_write_data | ||
| ldap_wait_for_search | ||
| load_docker_image | ||
| local_kind_cluster | ||
| read_license | ||
| replication_data | ||
| restart_consul | ||
| restart_vault | ||
| seal_awskms | ||
| seal_pkcs11 | ||
| seal_shamir | ||
| set_up_external_integration_target | ||
| shutdown_multiple_nodes | ||
| shutdown_node | ||
| softhsm_create_vault_keys | ||
| softhsm_distribute_vault_keys | ||
| softhsm_init | ||
| softhsm_install | ||
| start_vault | ||
| stop_vault | ||
| target_ec2_fleet | ||
| target_ec2_instances | ||
| target_ec2_shim | ||
| target_ec2_spot_fleet | ||
| target_fyre_vms | ||
| vault_agent | ||
| vault_cluster | ||
| vault_failover_demote_dr_primary | ||
| vault_failover_promote_dr_secondary | ||
| vault_failover_update_dr_primary | ||
| vault_get_cluster_ips | ||
| vault_proxy | ||
| vault_raft_remove_node_and_verify | ||
| vault_raft_remove_peer | ||
| vault_run_blackbox_test | ||
| vault_setup_dr_primary | ||
| vault_setup_perf_primary | ||
| vault_setup_replication_secondary | ||
| vault_step_down | ||
| vault_test_ui | ||
| vault_unseal_replication_followers | ||
| vault_update_license_ibm | ||
| vault_upgrade | ||
| vault_verify_agent_output | ||
| vault_verify_autopilot | ||
| vault_verify_billing_start_date | ||
| vault_verify_default_lcq | ||
| vault_verify_dr_replication | ||
| vault_verify_ibm_license_update | ||
| vault_verify_performance_replication | ||
| vault_verify_raft_auto_join_voter | ||
| vault_verify_removed_node | ||
| vault_verify_removed_node_shim | ||
| vault_wait_for_cluster_unsealed | ||
| vault_wait_for_leader | ||
| vault_wait_for_seal_rewrap | ||
| verify_aws_secrets_engine | ||
| verify_log_secrets | ||
| verify_seal_type | ||
| verify_secrets_engines | ||