Browse Source

cmd/prometheus: remove tests for old flags

pull/2643/head
Fabian Reinartz 8 years ago
parent
commit
68dc358496
  1. 28
      cmd/prometheus/config_test.go

28
cmd/prometheus/config_test.go

@ -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 {

Loading…
Cancel
Save