storj/storagenode/storagenodedb
Egon Elbre 85c45cd56f private/dbutil/pgtest: support multiple databases for testing
Currently Cockroach isn't performant for concurrent database setup and
tear-down. Instead of a single instance allow setting multiple potential
connection strings and let the tests pick one connection string
randomly.

This improves test duration by ~10 minutes.

While we are at significantly changing how pgtest works, introduce
helper PickPostgres and PickCockroach for selecting the database to
reduce code duplications in multiple places.

Change-Id: I8ad171d5c4c8a4fc081ec2ae9bdd0cc948a80619
2020-04-28 21:55:49 +03:00
..
storagenodedbtest all: switch to storj.io/common/uuid 2020-03-31 19:16:41 +03:00
testdata storagenode/heldamount payments removed 2020-04-21 17:15:31 +00:00
bandwidthdb.go storagenode/bandwidth: fix tests to not fail for 10 hours near the end of the month 2020-01-31 16:25:52 -07:00
database.go storagenode/heldamount payments removed 2020-04-21 17:15:31 +00:00
db_container.go private/dbutil/txutil: create new transactions for retries 2020-02-01 18:34:28 +00:00
deprecatedinfo.go storagenodedb: reenable utccheck in tests 2019-12-10 23:17:14 +00:00
heldamount.go storagenode/heldamount payments removed 2020-04-21 17:15:31 +00:00
migrations_test.go cmd/storagenode;storagenode/storagenodedb: add preflight database check 2020-01-16 18:44:46 +00:00
notifications.go all: simplify uuid usage 2020-04-02 05:48:58 +00:00
orders.go all: don't depend on gogo/proto directly 2020-04-08 17:32:15 +00:00
pieceexpiration.go storagenode/storagenodedb: fixes to row handling 2020-01-16 15:08:37 +00:00
pieceinfo.go all: don't depend on gogo/proto directly 2020-04-08 17:32:15 +00:00
piecespaceused.go storagenode/pieces: Track total piece size 2020-01-23 11:00:24 -07:00
pricing.go storagenode/nodestats: add pricing model, storagenode/cache: add paystub history storing 2020-04-14 19:04:00 +03:00
reputation.go storagenode/storagenodedb/reputation: add joined_at 2020-04-17 12:12:09 +00:00
satellites.go storagenode/storagenodedb: use tagsql 2020-01-19 14:39:16 +02:00
schema.go private/dbutil/pgtest: support multiple databases for testing 2020-04-28 21:55:49 +03:00
schemagen.go storagenode: add suspended status to storagenode dashboard/api 2020-04-09 13:36:23 +00:00
storageusage.go storagenode/storagenodedb: use tagsql 2020-01-19 14:39:16 +02:00
usedserials.go storagenode/{piecestore,storagenodedb}: use context in queries 2020-01-14 20:27:26 +00:00