Cleanup. Fix failing test

This commit is contained in:
Jan Eitzinger
2022-09-20 13:07:46 +02:00
parent 0c4096eda3
commit 35114aeb2d
5 changed files with 6 additions and 8 deletions

View File

@@ -6,8 +6,6 @@ package config
import (
"testing"
_ "github.com/santhosh-tekuri/jsonschema/v5/httploader"
)
func TestInit(t *testing.T) {

View File

@@ -27,9 +27,12 @@ func setupUserTest(t *testing.T) *UserCfgRepo {
"clusters": [
{
"name": "testcluster",
"metricDataRepository": {"kind": "test"}
}
]
"metricDataRepository": {"kind": "test", "url": "bla:8081"},
"filterRanges": {
"numNodes": { "from": 1, "to": 64 },
"duration": { "from": 0, "to": 86400 },
"startTime": { "from": "2022-01-01T00:00:00Z", "to": null }
} } ]
}`
tmpdir := t.TempDir()
cfgFilePath := filepath.Join(tmpdir, "config.json")