open-vault/vault/external_tests
Nick Cabatoff 12e1b609ac
Create global quotas of each type in every NewTestCluster. (#18038)
Create global quotas of each type in every NewTestCluster.  Also switch some key locks to use DeadlockMutex to make it easier to discover deadlocks in testing.

NewTestCluster also now starts the cluster, and the Start method becomes a no-op.  Unless SkipInit is provided, we also wait for a node to become active, eliminating the need for WaitForActiveNode.  This was needed because otherwise we can't safely make the quota api call.  We can't do it in Start because Start doesn't return an error, and I didn't want to begin storing the testing object T instead TestCluster just so we could call t.Fatal inside Start. 

The last change here was to address the problem of how to skip setting up quotas when creating a cluster with a nonstandard handler that might not even implement the quotas endpoint.  The challenge is that because we were taking a func pointer to generate the real handler func, we didn't have any way to compare that func pointer to the standard handler-generating func http.Handler without creating a circular dependency between packages vault and http.  The solution was to pass a method instead of an anonymous func pointer so that we can do reflection on it.
2022-11-29 14:38:33 -05:00
..
api We don't need to test LifetimeWatcher's behaviour with database leases specifically. (#17208) 2022-09-20 08:23:51 -04:00
approle Revert the WithContext changes to vault tests (#14947) 2022-04-07 15:12:58 -04:00
expiration Revert the WithContext changes to vault tests (#14947) 2022-04-07 15:12:58 -04:00
identity Tweak totp test to fix race failures (#17692) 2022-10-27 09:41:40 -04:00
kv improve kv CLI to remove data or custom metadata using kv patch (#18067) 2022-11-21 17:11:36 -05:00
metrics Revert the WithContext changes to vault tests (#14947) 2022-04-07 15:12:58 -04:00
mfa VAULT-6433: Add namespace path to MFA read/list endpoints (#16911) 2022-08-29 09:11:25 -04:00
misc Revert the WithContext changes to vault tests (#14947) 2022-04-07 15:12:58 -04:00
plugin Reduce time taken to run the vault test package (#17157) 2022-09-16 09:53:16 -04:00
policy Revert the WithContext changes to vault tests (#14947) 2022-04-07 15:12:58 -04:00
pprof Add support for unauthenticated pprof access on a per-listener basis,… (#11324) 2021-04-19 14:30:59 -04:00
quotas Create global quotas of each type in every NewTestCluster. (#18038) 2022-11-29 14:38:33 -05:00
raft only enable undo logs if all cluster members support it (#17378) 2022-10-06 11:24:16 -07:00
raftha Vault 7338/fix retry join (#16550) 2022-08-03 20:44:57 -05:00
response Revert the WithContext changes to vault tests (#14947) 2022-04-07 15:12:58 -04:00
router Revert the WithContext changes to vault tests (#14947) 2022-04-07 15:12:58 -04:00
sealmigration Update missing go-kms-wrapping v2 dep and address some ENT->OSS drift (#17178) 2022-09-19 10:23:40 -04:00
sealmigrationext Factor out the consul-using sealmigration tests to their own package, so that the remaining tests can run in the CI job that doesn't need docker. (#10342) 2020-11-20 07:53:31 -05:00
token Revert the WithContext changes to vault tests (#14947) 2022-04-07 15:12:58 -04:00