diff options
author | Francis Dinh <normandy@firemail.cc> | 2018-05-20 19:17:15 -0400 |
---|---|---|
committer | Francis Dinh <normandy@firemail.cc> | 2018-05-20 19:17:15 -0400 |
commit | 1afd6d37bd2febb58ee09d273b9c7d690022d3c3 (patch) | |
tree | 8be53801457cae7e31f7efdb501b81974ca3b36f /test/support | |
parent | d46393f6efd6475bb20b6a12a7c6ebf800f6c5b5 (diff) | |
parent | 961f1312571843209487cc1caa9355fa6552d965 (diff) | |
download | pleroma-1afd6d37bd2febb58ee09d273b9c7d690022d3c3.tar.gz pleroma-1afd6d37bd2febb58ee09d273b9c7d690022d3c3.zip |
Merge remote-tracking branch 'upstream/develop' into feature/incoming-remote-unfollow
Fixed some conflicts in transmogrifier.ex
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/httpoison_mock.ex | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/support/httpoison_mock.ex b/test/support/httpoison_mock.ex index 4a5a9ea85..f28557975 100644 --- a/test/support/httpoison_mock.ex +++ b/test/support/httpoison_mock.ex @@ -4,6 +4,18 @@ defmodule HTTPoisonMock do def get(url, body \\ [], headers \\ []) def get( + "http://gerzilla.de/.well-known/webfinger?resource=acct:kaniini@gerzilla.de", + [Accept: "application/xrd+xml,application/jrd+json"], + follow_redirect: true + ) do + {:ok, + %Response{ + status_code: 200, + body: File.read!("test/fixtures/httpoison_mock/kaniini@gerzilla.de.json") + }} + end + + def get( "http://framatube.org/.well-known/webfinger?resource=acct:framasoft@framatube.org", [Accept: "application/xrd+xml,application/jrd+json"], follow_redirect: true @@ -628,6 +640,18 @@ defmodule HTTPoisonMock do }} end + def get( + "https://hubzilla.example.org/channel/kaniini", + [Accept: "application/activity+json"], + _ + ) do + {:ok, + %Response{ + status_code: 200, + body: File.read!("test/fixtures/httpoison_mock/kaniini@hubzilla.example.org.json") + }} + end + def get("https://masto.quad.moe/users/_HellPie", [Accept: "application/activity+json"], _) do {:ok, %Response{ |