2021-09-30 16:24:57 +01:00
|
|
|
// Copyright (C) 2021 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information
|
|
|
|
|
|
|
|
// Package testplanet implements full network wiring for testing.
|
|
|
|
//
|
|
|
|
// testplanet provides access to most of the internals of satellites,
|
|
|
|
// storagenodes and uplinks.
|
|
|
|
//
|
2022-08-10 16:35:58 +01:00
|
|
|
// # Database
|
2021-09-30 16:24:57 +01:00
|
|
|
//
|
|
|
|
// It does require setting two variables for the databases:
|
|
|
|
//
|
2022-08-10 16:35:58 +01:00
|
|
|
// STORJ_TEST_POSTGRES=postgres://storj:storj-pass@test-postgres/teststorj?sslmode=disable
|
|
|
|
// STORJ_TEST_COCKROACH=cockroach://root@localhost:26257/master?sslmode=disable
|
2021-09-30 16:24:57 +01:00
|
|
|
//
|
|
|
|
// When you wish to entirely omit either of them from the test output, it's possible to use:
|
|
|
|
//
|
2022-08-10 16:35:58 +01:00
|
|
|
// STORJ_TEST_POSTGRES=omit
|
|
|
|
// STORJ_TEST_COCKROACH=omit
|
2021-09-30 16:24:57 +01:00
|
|
|
//
|
2022-08-10 16:35:58 +01:00
|
|
|
// # Host
|
2022-03-28 19:05:53 +01:00
|
|
|
//
|
|
|
|
// It's possible to change the listing host with:
|
|
|
|
//
|
2022-08-10 16:35:58 +01:00
|
|
|
// STORJ_TEST_HOST=127.0.0.2;127.0.0.3
|
2022-03-28 19:05:53 +01:00
|
|
|
//
|
2022-08-10 16:35:58 +01:00
|
|
|
// # Debugging
|
2021-09-30 16:24:57 +01:00
|
|
|
//
|
|
|
|
// For debugging, it's possible to set STORJ_TEST_MONKIT to get a trace per test.
|
|
|
|
//
|
2022-08-10 16:35:58 +01:00
|
|
|
// STORJ_TEST_MONKIT=svg
|
|
|
|
// STORJ_TEST_MONKIT=json
|
2021-09-30 16:24:57 +01:00
|
|
|
//
|
|
|
|
// By default, it saves the output the same folder as the test. However, if you wish
|
|
|
|
// to specify a separate folder, you can specify an absolute directory:
|
|
|
|
//
|
2022-08-10 16:35:58 +01:00
|
|
|
// STORJ_TEST_MONKIT=svg,dir=/home/user/debug/trace
|
2021-09-30 16:24:57 +01:00
|
|
|
//
|
|
|
|
// Note, due to how go tests work, it's not possible to specify a relative directory.
|
|
|
|
package testplanet
|