Return 405 Method not Allowed for GET of volatile RPC instead of 500 (#1560)

This commit is contained in:
Wolfgang Walther
2020-07-16 16:05:57 -05:00
committed by GitHub
parent 189847927e
commit 8e4687fb53
3 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -616,8 +616,8 @@ spec actualPgVersion =
context "only for GET rpc" $ do
it "should fail on mutating procs" $ do
get "/rpc/callcounter" `shouldRespondWith` 500
get "/rpc/setprojects?id_l=1&id_h=5&name=FreeBSD" `shouldRespondWith` 500
get "/rpc/callcounter" `shouldRespondWith` 405
get "/rpc/setprojects?id_l=1&id_h=5&name=FreeBSD" `shouldRespondWith` 405
it "should filter a proc that has arg name = filter name" $
get "/rpc/get_projects_below?id=5&id=gt.2&select=id" `shouldRespondWith`