From e100f18bb018ba9fdee5f430a01cbeb1bbc51248 Mon Sep 17 00:00:00 2001 From: dwertent Date: Thu, 13 Jan 2022 11:44:46 +0200 Subject: [PATCH] fixed tests --- resultshandling/reporter/v2/reporteventreceiverutils_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resultshandling/reporter/v2/reporteventreceiverutils_test.go b/resultshandling/reporter/v2/reporteventreceiverutils_test.go index f788a0f1..efd1f512 100644 --- a/resultshandling/reporter/v2/reporteventreceiverutils_test.go +++ b/resultshandling/reporter/v2/reporteventreceiverutils_test.go @@ -9,10 +9,10 @@ func TestHostToString(t *testing.T) { host := url.URL{ Scheme: "https", Host: "report.eudev3.cyberarmorsoft.com", - Path: "k8srestapi/v1/postureReport", + Path: "k8srestapi/v2/postureReport", RawQuery: "cluster=openrasty_seal-7fvz&customerGUID=5d817063-096f-4d91-b39b-8665240080af", } - expectedHost := "https://report.eudev3.cyberarmorsoft.com/k8srestapi/v1/postureReport?cluster=openrasty_seal-7fvz&customerGUID=5d817063-096f-4d91-b39b-8665240080af&reportID=ffdd2a00-4dc8-4bf3-b97a-a6d4fd198a41" + expectedHost := "https://report.eudev3.cyberarmorsoft.com/k8srestapi/v2/postureReport?cluster=openrasty_seal-7fvz&customerGUID=5d817063-096f-4d91-b39b-8665240080af&reportGUID=ffdd2a00-4dc8-4bf3-b97a-a6d4fd198a41" receivedHost := hostToString(&host, "ffdd2a00-4dc8-4bf3-b97a-a6d4fd198a41") if receivedHost != expectedHost { t.Errorf("%s != %s", receivedHost, expectedHost)