open-vault/helper/testhelpers
Mike Jarmy 4303790aae
Test pre-1.4 seal migration (#9085)
* enable seal wrap in all seal migration tests

* move adjustForSealMigration to vault package

* fix adjustForSealMigration

* begin working on new seal migration test

* create shamir seal migration test

* refactor testhelpers

* add VerifyRaftConfiguration to testhelpers

* stub out TestTransit

* Revert "refactor testhelpers"

This reverts commit 39593defd0d4c6fd79aedfd37df6298391abb9db.

* get shamir test working again

* stub out transit join

* work on transit join

* Revert "move resuable storage test to avoid creating import cycle"

This reverts commit b3ff2317381a5af12a53117f87d1c6fbb093af6b.

* remove debug code

* initTransit now works with raft join

* runTransit works with inmem

* work on runTransit with raft

* runTransit works with raft

* get rid of dis-used test

* cleanup tests

* TestSealMigration_TransitToShamir_Pre14

* TestSealMigration_ShamirToTransit_Pre14

* split for pre-1.4 testing

* add simple tests for transit and shamir

* fix typo in test suite

* debug wrapper type

* test debug

* test-debug

* refactor core migration

* Revert "refactor core migration"

This reverts commit a776452d32a9dca7a51e3df4a76b9234d8c0c7ce.

* begin refactor of adjustForSealMigration

* fix bug in adjustForSealMigration

* clean up tests

* clean up core refactoring

* fix bug in shamir->transit migration

* remove unnecessary lock from setSealsForMigration()

* rename sealmigration test package

* use ephemeral ports below 30000

* simplify use of numTestCores
2020-06-11 15:07:59 -04:00
..
consul Define Consul version to test against in one place, and let it be overriden by environment. Exception: some tests that verify interoperability with older Consul versions still specify a version explicitly. (#8901) 2020-04-30 13:06:24 -04:00
docker Merge multiple functions for creating consul containers into one. (#6612) 2019-04-22 12:26:10 -04:00
ldap Make sure if a user gets removed from all groups in the external system, Vault updates itself accordingly. This is CVE-2020-10660. (#8606) 2020-03-23 18:00:26 -04:00
logical Add connection to test request 2019-07-02 21:04:54 -04:00
mongodb Add x509 Client Auth to MongoDB Database Plugin (#8329) 2020-02-13 15:54:00 -07:00
mssql Use parameters when executing prepared statements rather than fmt.Sprintf (#9013) 2020-05-21 16:07:18 -07:00
mysql Factor out mysqlhelper so we can create mysql docker containers in other tests. (#8167) 2020-01-16 17:51:10 -05:00
postgresql Add mongodbatlas static roles support (#8987) 2020-05-29 14:21:23 -04:00
seal Create configutil and move some common config and setup functions there (#8362) 2020-05-14 09:19:27 -04:00
teststorage Test pre-1.4 seal migration (#9085) 2020-06-11 15:07:59 -04:00
testhelpers.go Test pre-1.4 seal migration (#9085) 2020-06-11 15:07:59 -04:00