cmd/prometheus: remove tests for old flags

This commit is contained in:
Fabian Reinartz 2016-12-29 16:55:22 +01:00
parent 8b4e4a9d2b
commit 68dc358496
1 changed files with 0 additions and 28 deletions

View File

@ -36,34 +36,6 @@ func TestParse(t *testing.T) {
input: []string{"-web.external-url", "'https://url/prometheus'"},
valid: false,
},
{
input: []string{"-storage.remote.influxdb-url", ""},
valid: true,
},
{
input: []string{"-storage.remote.influxdb-url", "http://localhost:8086/"},
valid: true,
},
{
input: []string{"-storage.remote.influxdb-url", "'https://some-url/'"},
valid: false,
},
{
input: []string{"-alertmanager.url", ""},
valid: true,
},
{
input: []string{"-alertmanager.url", "http://alertmanager.company.com"},
valid: true,
},
{
input: []string{"-alertmanager.url", "alertmanager.company.com"},
valid: false,
},
{
input: []string{"-alertmanager.url", "https://double--dash.de"},
valid: true,
},
}
for i, test := range tests {