Code clean up, loglevel debug for integration tests

This commit is contained in:
Kristoffer Dalby 2021-08-21 09:15:16 +01:00
parent d93a7f2e02
commit c49fe26da7
No known key found for this signature in database
GPG Key ID: 09F62DC067465735
2 changed files with 10 additions and 10 deletions

View File

@ -23,6 +23,15 @@ import (
"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 {
suite.Suite
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) {
var stdout bytes.Buffer
var stderr bytes.Buffer

View File

@ -7,5 +7,5 @@
"db_type": "sqlite3",
"db_path": "/tmp/integration_test_db.sqlite3",
"acl_policy_path": "",
"log_level": "trace"
"log_level": "debug"
}