We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e99baa commit 00863f7Copy full SHA for 00863f7
modules/storages/spec/requests/api/v3/storages/storage_files_api_spec.rb
@@ -203,10 +203,10 @@
203
let(:error) { :forbidden }
204
205
it "fails with outbound request failure" do
206
- expect(last_response).to have_http_status(:forbidden)
+ expect(last_response).to have_http_status(:internal_server_error)
207
208
body = JSON.parse(last_response.body)
209
- expect(body["message"]).to eq(I18n.t("services.errors.messages.forbidden"))
+ expect(body["message"]).to eq(I18n.t("services.errors.messages.forbidden", status_code: 403))
210
expect(body["errorIdentifier"]).to eq("urn:openproject-org:api:v3:errors:OutboundRequest:Forbidden")
211
end
212
0 commit comments