diff options
author | Alex S <alex.strizhakov@gmail.com> | 2019-06-16 18:49:24 +0800 |
---|---|---|
committer | Alex S <alex.strizhakov@gmail.com> | 2019-06-16 20:10:12 +0800 |
commit | 0f59265a50c0985d6ab0ce47b12dd135cfd1e8ac (patch) | |
tree | 02eac2a90fd1240145eadcafbc92dc65ccf64692 /test/support | |
parent | efa445a75b242787a30ffbc2eb16bd165260f66c (diff) | |
download | pleroma-0f59265a50c0985d6ab0ce47b12dd135cfd1e8ac.tar.gz pleroma-0f59265a50c0985d6ab0ce47b12dd135cfd1e8ac.zip |
salmon fix
removed some ownership sandbox error
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/http_request_mock.ex | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index 67ef0928a..f7f55a11a 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -802,6 +802,30 @@ defmodule HttpRequestMock do }} end + def post("http://mastodon.example.org/inbox", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: "" + }} + end + + def post("https://hubzilla.example.org/inbox", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: "" + }} + end + + def post("http://gs.example.org/index.php/main/salmon/user/1", _, _, _) do + {:ok, + %Tesla.Env{ + status: 200, + body: "" + }} + end + def post("http://200.site" <> _, _, _, _) do {:ok, %Tesla.Env{ |