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
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
flag-kv
flag-slice
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
parseip
pgpkeys fix: PGP subkeys support (#16224) 2022-09-22 09:12:41 -04:00
policies
proxyutil
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
versions Remove pinned builtin plugin versions from storage (#18051) 2022-11-23 18:36:25 +00:00