Commit graph

1 commit

Author SHA1 Message Date
Vault Automation
6b268e369c
Backport [Mongo SDK Plugin] (enos): Add MongoDB plugin test framework for Enos into ce/main (#13700)
* no-op commit

* [Mongo SDK Plugin] (enos): Add MongoDB plugin test framework for Enos (#13576)

* Add modular database infrastructure for Enos testing

Infrastructure Changes:
- Created generic database_container module supporting PostgreSQL, MongoDB, MySQL
- Consolidated database configs in enos-globals.hcl with dynamic port generation
- Refactored set_up_external_integration_target to use generic module with for_each
- Updated enos-scenario-plugin.hcl to pass database_configs from globals

Test Organization:
- Reorganized test structure: moved postgres/ and mongodb/ into database/ directory
- Maintains existing production-ready test helpers
- Structure: plugins/database/{postgres,mongodb}/ for better organization

Benefits:
- Easy to add new databases (just add to database_configs in globals)
- No code duplication across database types
- Consistent patterns for all database testing
- Supports both Docker containers and external database URLs

---------

Co-authored-by: Luis (LT) Carbonell <lt.carbonell@hashicorp.com>
2026-04-08 12:25:01 -04:00