Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/dev' into add_buildinfo_timest…
Browse files Browse the repository at this point in the history
…amp_test
attiasas committed Nov 6, 2023
2 parents d0b60b8 + 4d36b1a commit 0b09ab4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions xray_test.go
Original file line number Diff line number Diff line change
@@ -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 " +

0 comments on commit 0b09ab4

Please sign in to comment.