From 8bfda7bc487bcefafc2d3b82882b378ad8dde18d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Mierzwa?= Date: Sun, 18 Jun 2023 18:19:42 +0100 Subject: [PATCH] fix(tests): fix tests --- cmd/karma/alert_history_test.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/cmd/karma/alert_history_test.go b/cmd/karma/alert_history_test.go index 87d1cd702..d147e973d 100644 --- a/cmd/karma/alert_history_test.go +++ b/cmd/karma/alert_history_test.go @@ -168,7 +168,7 @@ func TestAlertHistory(t *testing.T) { { mocks: []mock{ { - method: "GET", + method: "POST", uri: regexp.MustCompile("^http://localhost:9092/api/v1/labels"), responder: httpmock.NewJsonResponderOrPanic(200, prometheusAPIV1Labels{ Status: "success", @@ -213,7 +213,7 @@ func TestAlertHistory(t *testing.T) { { mocks: []mock{ { - method: "GET", + method: "POST", uri: regexp.MustCompile("^http://localhost:9093/api/v1/labels"), responder: httpmock.NewJsonResponderOrPanic(200, prometheusAPIV1Labels{ Status: "success", @@ -248,7 +248,7 @@ func TestAlertHistory(t *testing.T) { { mocks: []mock{ { - method: "GET", + method: "POST", uri: regexp.MustCompile("^http://localhost:909[4-6]/api/v1/labels"), responder: httpmock.NewJsonResponderOrPanic(200, prometheusAPIV1Labels{ Status: "error", @@ -279,7 +279,7 @@ func TestAlertHistory(t *testing.T) { { mocks: []mock{ { - method: "GET", + method: "POST", uri: regexp.MustCompile("^http://localhost:909[7-9]/api/v1/labels"), responder: httpmock.NewJsonResponderOrPanic(200, prometheusAPIV1Labels{ Status: "success", @@ -350,7 +350,7 @@ func TestAlertHistory(t *testing.T) { { mocks: []mock{ { - method: "GET", + method: "POST", uri: regexp.MustCompile("^http://localhost:9100/api/v1/labels"), responder: httpmock.NewJsonResponderOrPanic(200, prometheusAPIV1Labels{ Status: "success", @@ -409,7 +409,7 @@ func TestAlertHistory(t *testing.T) { { mocks: []mock{ { - method: "GET", + method: "POST", uri: regexp.MustCompile("^http://localhost:9100/api/v1/labels"), responder: httpmock.NewJsonResponderOrPanic(200, prometheusAPIV1Labels{ Status: "success", @@ -468,7 +468,7 @@ func TestAlertHistory(t *testing.T) { { mocks: []mock{ { - method: "GET", + method: "POST", uri: regexp.MustCompile("^http://localhost:9100/api/v1/labels"), responder: httpmock.NewJsonResponderOrPanic(200, prometheusAPIV1Labels{ Status: "success",