cmd/prometheus: remove tests for old flags

pull/2643/head
Fabian Reinartz 8 years ago
parent 8b4e4a9d2b
commit 68dc358496

@ -36,34 +36,6 @@ func TestParse(t *testing.T) {
input: []string{"-web.external-url", "'https://url/prometheus'"}, input: []string{"-web.external-url", "'https://url/prometheus'"},
valid: false, 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 { for i, test := range tests {

Loading…
Cancel
Save