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 " +