From 4d36b1a187e97838a030625a9ddf62708ff6b244 Mon Sep 17 00:00:00 2001 From: Assaf Attias <49212512+attiasas@users.noreply.github.com> Date: Mon, 6 Nov 2023 09:57:25 +0200 Subject: [PATCH] Fix Xray curation tests (#2295) --- xray_test.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/xray_test.go b/xray_test.go index 00bfe268d..cf70543d8 100644 --- a/xray_test.go +++ b/xray_test.go @@ -914,6 +914,13 @@ func curationServer(t *testing.T, expectedRequest map[string]bool, requestToFail } } if r.Method == http.MethodGet { + if r.RequestURI == "/api/system/version" { + _, err := w.Write([]byte(`{"version": "7.0.0"}`)) + require.NoError(t, err) + w.WriteHeader(http.StatusOK) + return + } + if _, exist := requestToFail[r.RequestURI]; exist { w.WriteHeader(http.StatusForbidden) _, err := w.Write([]byte("{\n \"errors\": [\n {\n \"status\": 403,\n " +