open-vault/helper
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
..
benchhelpers Update deps for consul-template 0.29.0 (#15293) 2022-05-05 10:30:40 -07:00
builtinplugins Adds ldap secrets to plugin registry and updates to v0.9.0 (#17152) 2022-09-15 22:19:24 -07:00
constants update gofumpt to 0.3.1 and reformat the repo (#17055) 2022-09-07 17:31:20 -07:00
dhutil Remove spurious fmt.Printf calls including one of a key (#15344) 2022-05-19 12:27:02 -07:00
fairshare VAULT-4240 time.After() in a select statement can lead to memory leak (#14814) 2022-04-01 10:17:11 -04:00
flag-kv Errwrap everywhere (#4252) 2018-04-05 11:49:21 -04:00
flag-slice command/server: add config loading 2015-03-12 15:21:11 -07:00
forwarding update protoc version to 3.21.7 oss (#17499) 2022-10-26 16:49:44 -07:00
hostutil Update gopsutil to v3 to fix MacOS deprecation warnings (#16321) 2022-07-20 16:37:10 -07:00
identity update protoc version to 3.21.7 oss (#17499) 2022-10-26 16:49:44 -07:00
locking Create global quotas of each type in every NewTestCluster. (#18038) 2022-11-29 14:38:33 -05:00
logging VAULT-9900: Log rotation for 'agent' and 'server' commands (#18031) 2022-11-29 14:07:04 +00:00
metricsutil Use %q for quoted strings where appropriate (#15216) 2022-08-03 12:32:45 -06:00
monitor api/monitor: Adding log format to monitor command and debug (#15536) 2022-05-24 13:10:53 -04:00
namespace VAULT-7256: Add custom_metadata to namespaces (#16640) 2022-08-09 11:38:03 -04:00
osutil Fix nightly tests and debug (#14970) 2022-04-12 06:08:28 +05:30
parseip Move to go 1.17 (#12868) 2021-10-21 09:32:03 -04:00
pgpkeys fix: PGP subkeys support (#16224) 2022-09-22 09:12:41 -04:00
policies Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
proxyutil remove mount accessor from MFA config (#14406) 2022-03-09 09:14:30 -08:00
random Only use additional entropy source when configured within transit and sys random (#15734) 2022-06-01 14:56:39 -04:00
storagepacker update protoc version to 3.21.7 oss (#17499) 2022-10-26 16:49:44 -07:00
testhelpers Add pki nginx/wget/curl/Go integration tests (#17320) 2022-11-23 15:00:18 -05:00
timeutil Fix Racy Activity Log Tests (#10484) 2020-12-02 13:48:13 -07:00
versions Remove pinned builtin plugin versions from storage (#18051) 2022-11-23 18:36:25 +00:00