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)