Commit graph

6 commits

Author SHA1 Message Date
Vault Automation
3b43df47ae
VAULT-43741 (enos) Convert vault_verify_version to Use Blackbox SDK (#13950) (#14323)
* Update vault version verify to use Go BB SDK test

* Add missing env vars

* more

* formatting

* typo

* formatting

* fmt

* more-fmt

* requested changes

* formatting

* Apply suggestions from code review

Co-authored-by: brewgator <ltcarbonell@pm.me>

* formatting

* remove external test access

* remove exec mode

* formtting

* Delete sdk/helper/testcluster/blackbox/session_remote.go

Co-authored-by: brewgator <lt.carbonell@hashicorp.com>
2026-04-28 08:59:34 -04:00
Vault Automation
64f9758071
Backport Add PostgreSQL Blackbox Coverage for DB Connection Management With Infra setup into ce/main (#13631)
* Add PostgreSQL Blackbox Coverage for DB Connection Management (#13313)

* Add blackbox test for PostgreSQL database config create endpoint

* Moving to postgresql folder

* Adding test case for multi-host PostgreSQL connection

* Adding DSN test case

* Adding Connection verification test

* Get Connection verification test

* Adding test cases for list/delete/reset connections

* Refactoring and adding helper

* Refactoring and adding helper

---------

Co-authored-by: Kajal Kusum <kajal.kusum@ibm.com>

* Move postgres tests to database subdirectory to match modular structure

* go mod

* go mod

* pgx

---------

Co-authored-by: KajalKusum <kajal.kusum@hashicorp.com>
Co-authored-by: Kajal Kusum <kajal.kusum@ibm.com>
Co-authored-by: LT Carbonell <ltcarbonell@pm.me>
2026-04-08 14:16:26 -07:00
Vault Automation
88aa07c041
(enos) Improve Blackbox SDK Filtering and Test Organization (#13350) (#13490)
* reorganize the blackbox structure

* mend

* organize by directories

* respond to feedback:

* Formatting

* whitespace

* default testnames

* local

* nullcheck

Co-authored-by: Luis (LT) Carbonell <lt.carbonell@hashicorp.com>
2026-03-30 09:09:53 -07:00
Vault Automation
6d5e4c863b
Backport enos(ldap): always verify base DN connection before setup into ce/main
Refactor our connection checking into a new LDAP module that is capable
of running a search and waiting for success. We now call this module
while setting up the integration host and before enabling the LDAP
secrets engine.

We also fix two race conditions in the Agent and HA Seal scenarios where
we might attempt to verify and/or test LDAP before the integration host
has been set up.

Signed-off-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: Ryan Cragun <me@ryan.ec>
Co-authored-by: LT Carbonell <lt.carbonell@hashicorp.com>
2026-03-25 13:34:17 -04:00
Vault Automation
1a57de40bd
Backport Fill out Secret Engine Tests into ce/main (#12927)
* no-op commit

* Fill out Secret Engine Tests (#12287)

* reorg some tests

* split tests out

* fix test

* test cleanup

* make ldap work

* formatting

* whitespace

* Make KMIP work

* Activate smoke_sdk scenarios

* Add gotestsum

* tryagain

* fix go path install

* add debugging

* more debug

* shrug emoji

* Remove debug and increase timeout

* syntax

* help with polling

* disable stepdown test for now

* Update vault/external_tests/blackbox/secrets_ldap_test.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update sdk/helper/testcluster/blackbox/session_raft.go

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update enos/modules/verify_secrets_engines/modules/create/auth.tf

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update enos/modules/vault_run_blackbox_test/scripts/run-test.sh

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update enos/modules/vault_run_blackbox_test/main.tf

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* arm fix

* gotestsum

* timing

* try this

* try this

* handle when these already exist

* ---

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Cant run smoke_sdk in ce (#12931)

---------

Co-authored-by: Luis (LT) Carbonell <lt.carbonell@hashicorp.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-03-12 12:00:59 -04:00
Vault Automation
bb106f1bef
Add blackbox testing SDK (#11210) (#12245)
* rough draft

* add some stuff for dynamic secrets

* add some more helpers and sample tests

* new helpers, new tests, refactoring

* Add Basic Smoke SDK Scenario (#11678)

* Add simple test for stepdown election

* Add a smoke_sdk scenario

* add script to run tests locally

* fix up a few things

* VAULT-39746 - Add Tests to Smoke SDK and Cloud Scenarios (#11795)

* Add some go verification steps in enos sdk test run script

* formatting

* Add a smoke_sdk scenario userpass secret engine create test (#11808)

* Add a smoke_sdk scenario userpass secret engine create test

* Add the some additional tests

* Add Smoke tests to Cloud Scenario (#11876)

* Add a smoke_sdk scenario userpass secret engine create test

* Add the some additional tests

* Add smoke testing to cloud

* Add test results to output and test filtering

* comment

* fix test

* fix the smoke scenario

* Address some various feedback

* missed cleanup

* remove node count dependency in the tests

* Fix test perms

* Adjust the testing and clean them up a bit

* formatting

* fmt

* fmt2

* more fmt

* formatting

* tryagain

* remove the docker/hcp divide

* use the SHA as ID

* adjust perms

* Add transit test

* skip blackbox testing in test-go

* copywrite

* Apply suggestion from @brewgator

* Add godoc

* grep cleanup

---------

Co-authored-by: Josh Black <raskchanky@gmail.com>
Co-authored-by: Luis (LT) Carbonell <lt.carbonell@hashicorp.com>
2026-02-06 21:36:29 +00:00