Skip to content

Commit 44853ee

Browse files
committed
Add alertmanager config flags
Signed-off-by: Charlie Le <[email protected]>
1 parent 882ebb0 commit 44853ee

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

integration/runtime_config_test.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,21 @@ func TestLoadRuntimeConfigFromStorageBackend(t *testing.T) {
6262
name: "runtime-config.file is a relative path",
6363
flags: map[string]string{
6464
"-runtime-config.file": runtimeConfigFile,
65+
// alert manager
66+
"-alertmanager.web.external-url": "http://localhost/alertmanager",
67+
"-alertmanager-storage.backend": "local",
68+
"-alertmanager-storage.local.path": filepath.Join(e2e.ContainerSharedDir, "alertmanager_configs"),
6569
},
6670
workDir: e2e.ContainerSharedDir,
6771
},
6872
{
6973
name: "runtime-config.file is an absolute path but working directory is not /",
7074
flags: map[string]string{
7175
"-runtime-config.file": filePath,
76+
// alert manager
77+
"-alertmanager.web.external-url": "http://localhost/alertmanager",
78+
"-alertmanager-storage.backend": "local",
79+
"-alertmanager-storage.local.path": filepath.Join(e2e.ContainerSharedDir, "alertmanager_configs"),
7280
},
7381
workDir: "/var/lib/cortex",
7482
},

0 commit comments

Comments
 (0)