featurebase/server
Seebs cecaf99ee4 testhook: leak auditing infrastructure
The testhook/ package provides an easy way to set up multiple
hooks to run before/after tests are run.

The audit hooks track open and closes of storage backends,
files, indexes, and holders, for example. A tempdir wrapper
creates temporary directories which are automatically cleaned up
when the test ends. Any kind of resource creation that
should be closed at test conclusion can be tracked. We
will complain at the end of the TestMain if resources are
leaking.

Leaks under go1.13:

We use a wrapper function which is a no-op for go 1.13, but actually
calls testing.TB.Cleanup in go1.14, so we can still build with 1.13 even though
tests will leak files all over the place there. Because of this,
don't run the testhook tests when using 1.13, as they'll always fail.

- the test/pilosa.go http client now times out after 10 seconds
to help diagnose hung server situations.

- Makefile targets added to get better progress reports.
2020-08-24 11:26:39 -05:00
..
testdata/certs regenerate certs with 100 year expiration, add README 2019-10-22 12:56:57 -05:00
cluster_test.go testhook: leak auditing infrastructure 2020-08-24 11:26:39 -05:00
config.go add a postgres endpoint to pilosa 2020-08-20 11:29:16 -04:00
config_internal_test.go add --advertise-grpc configuration option 2020-07-09 11:17:12 -05:00
config_test.go v2.0.0 2019-10-08 14:56:17 -06:00
default.go Unexport server.DefaultDiagnosticsInterval 2018-07-05 23:11:56 -05:00
dup.go Reduce duplication of setupLogger arch-specific code 2020-04-16 17:08:50 -05:00
dup_arm64.go Reduce duplication of setupLogger arch-specific code 2020-04-16 17:08:50 -05:00
grpc.go testhook: leak auditing infrastructure 2020-08-24 11:26:39 -05:00
grpc_test.go Add support for drop table 2020-08-24 13:24:18 +02:00
handler_test.go testhook: leak auditing infrastructure 2020-08-24 11:26:39 -05:00
pg.go add SQL to postgres endpoint 2020-08-21 14:47:59 -04:00
release.go Unexport server.DefaultDiagnosticsInterval (in release tag) 2018-07-05 23:11:57 -05:00
server.go testhook: leak auditing infrastructure 2020-08-24 11:26:39 -05:00
server_test.go testhook: leak auditing infrastructure 2020-08-24 11:26:39 -05:00
sql.go Add support for drop table 2020-08-24 13:24:18 +02:00
tlsconfig.go test and fix authentication of client certs btwn cluster nodes 2019-10-18 15:17:35 -05:00