open-vault/helper/testhelpers
Alexander Scheel 93a11a8678
Better docker support: image building + better command execution (#17231)
* Refactor Docker command execution

This refactor will allow others to interact with containers more easily,
providing two interfaces (RunCmdWithOutput and RunCmdInBackground) for
executing commands in running containers if they don't wish to do so
manually.

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

* Allow building containerfiles in tests

By adding image building capabilities to testhelpers (and coupled with
the better command execution support), we can begin to build better,
more reliable integration tests on top of public base images without
needing to maintain separate forks of these images out-of-tree for any
shortcomings they might have.

In particular, rather than doing the rather messy echo hack for writing
clients.conf, it is far better to provision this via a slim
Containerfile overlay on top of the stock jumanjiman/radiusd:latest
image.

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

* Correctly parse stdout/stderr in RunCmdWithOutput

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

* ctx -> bCtx for BuildContext

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

* Update errors to use %w instead of %v

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

Signed-off-by: Alexander Scheel <alex.scheel@hashicorp.com>
2022-10-12 10:29:39 -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 Better docker support: image building + better command execution (#17231) 2022-10-12 10:29:39 -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