From f00d90e4f2459e71435c1e41c34d13e628b2bcb5 Mon Sep 17 00:00:00 2001 From: attiasas Date: Sun, 5 Nov 2023 16:13:07 +0200 Subject: [PATCH] Fix Xray curation tests --- xray_test.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xray_test.go b/xray_test.go index 00bfe268d..1573843b6 100644 --- a/xray_test.go +++ b/xray_test.go @@ -914,6 +914,12 @@ func curationServer(t *testing.T, expectedRequest map[string]bool, requestToFail } } if r.Method == http.MethodGet { + if r.RequestURI == "/api/system/version" { + w.Write([]byte(`{"version": "7.0.0"}`)) + 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 " +