Code clean up, loglevel debug for integration tests
This commit is contained in:
parent
d93a7f2e02
commit
c49fe26da7
2 changed files with 10 additions and 10 deletions
|
@ -23,6 +23,15 @@ import (
|
||||||
"inet.af/netaddr"
|
"inet.af/netaddr"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
var integrationTmpDir string
|
||||||
|
var ih Headscale
|
||||||
|
|
||||||
|
var pool dockertest.Pool
|
||||||
|
var network dockertest.Network
|
||||||
|
var headscale dockertest.Resource
|
||||||
|
var tailscaleCount int = 50
|
||||||
|
var tailscales map[string]dockertest.Resource
|
||||||
|
|
||||||
type IntegrationTestSuite struct {
|
type IntegrationTestSuite struct {
|
||||||
suite.Suite
|
suite.Suite
|
||||||
stats *suite.SuiteInformation
|
stats *suite.SuiteInformation
|
||||||
|
@ -56,15 +65,6 @@ func TestIntegrationTestSuite(t *testing.T) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var integrationTmpDir string
|
|
||||||
var ih Headscale
|
|
||||||
|
|
||||||
var pool dockertest.Pool
|
|
||||||
var network dockertest.Network
|
|
||||||
var headscale dockertest.Resource
|
|
||||||
var tailscaleCount int = 25
|
|
||||||
var tailscales map[string]dockertest.Resource
|
|
||||||
|
|
||||||
func executeCommand(resource *dockertest.Resource, cmd []string) (string, error) {
|
func executeCommand(resource *dockertest.Resource, cmd []string) (string, error) {
|
||||||
var stdout bytes.Buffer
|
var stdout bytes.Buffer
|
||||||
var stderr bytes.Buffer
|
var stderr bytes.Buffer
|
||||||
|
|
|
@ -7,5 +7,5 @@
|
||||||
"db_type": "sqlite3",
|
"db_type": "sqlite3",
|
||||||
"db_path": "/tmp/integration_test_db.sqlite3",
|
"db_path": "/tmp/integration_test_db.sqlite3",
|
||||||
"acl_policy_path": "",
|
"acl_policy_path": "",
|
||||||
"log_level": "trace"
|
"log_level": "debug"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue