open-vault/helper/testhelpers
Alexander Scheel daf29de742
Add pki zlint tests (#17305)
* Add tests for zlint-clean CA building

This test ensures that we can consistently pass ZLint's CA linting
tests on a root certificate generated by Vault. In particular, nominal
requirements are placed on the structure on the issuer's Subject, which
we supply, and the remaining requirements pass.

The one exception is we include both RFC and CA/BF BR lints in the
default zlint checks; this means ECDSA P-521 (which isn't accepted by
Mozilla's root store policies) is rejected, so we ignore to lints
related to that.

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Add options to copy to/from container, fix stopping

Stopping the container takes a bit of time for some unknown reason so
I've instead opted to shorten the sleep in the zlint tests to avoid
consuming resources too long after the test finish.

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* Make zlint tests execute in parallel

This improves the overall test time of the zlint tests, making the
container build up front once (provisioning zlint), and then copying the
cert into the new container image later.

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

* make fmt

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
2022-10-12 13:29:06 -04:00
..
azurite Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
cassandra Cassandra: Refactor PEM parsing logic (#11861) 2021-06-21 11:38:08 -06:00
certhelpers Allow mTLS for mysql secrets engine (#9181) 2020-06-17 11:46:01 -07:00
consul Update Consul bootstrap test case to conditionally add token to config (#16560) 2022-08-03 13:43:43 -05:00
docker Add pki zlint tests (#17305) 2022-10-12 13:29:06 -04:00
etcd reformat using 'make fmt' (#13794) 2022-01-27 10:06:34 -08:00
fakegcsserver OSS changes for enterprise automated snapshots (#10160) 2020-10-16 14:57:11 -04:00
ldap Added support for a LDAP user search filter. Documentation, tests and UI included (#11000) 2021-10-26 10:39:12 -07:00
logical Use %q for quoted strings where appropriate (#15216) 2022-08-03 12:32:45 -06:00
minio Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
mongodb Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
mssql Add ability to capture container logs, and have mssql test helper use it (#13272) 2021-11-24 12:01:38 -05:00
mysql Run a more strict formatter over the code (#11312) 2021-04-08 09:43:39 -07:00
postgresql Add test for multihost connection strings with Postgres (#16912) 2022-09-22 14:00:56 -05:00
seal OSS portion of wrapper-v2 (#16811) 2022-08-23 15:37:16 -04:00
teststorage Vault 6773/raft rejoin nonvoter (#16324) 2022-07-18 14:37:12 -04:00
testhelpers.go Wait for standby to have a working grpc connection before we try to use it (#16905) 2022-08-26 12:50:10 -04:00
testhelpers_oss.go Wait for standby to have a working grpc connection before we try to use it (#16905) 2022-08-26 12:50:10 -04:00