diff options
author | lain <lain@soykaf.club> | 2018-03-24 14:45:21 +0100 |
---|---|---|
committer | lain <lain@soykaf.club> | 2018-03-24 14:45:54 +0100 |
commit | e3a81fe58f42935c6116ccc59c73ae41e99ecaae (patch) | |
tree | c1900fdb22f423b319e306b56e8521687731ca22 /test/support | |
parent | d1ee3edd3cf8262520421fda551e931d6a8e5733 (diff) | |
download | pleroma-e3a81fe58f42935c6116ccc59c73ae41e99ecaae.tar.gz pleroma-e3a81fe58f42935c6116ccc59c73ae41e99ecaae.zip |
Fetch the same data from json webfinger as from xml webfinger.
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/httpoison_mock.ex | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/support/httpoison_mock.ex b/test/support/httpoison_mock.ex index 5d021a3b4..c70598691 100644 --- a/test/support/httpoison_mock.ex +++ b/test/support/httpoison_mock.ex @@ -9,6 +9,12 @@ defmodule HTTPoisonMock do body: File.read!("test/fixtures/httpoison_mock/framasoft@framatube.org.json") }} end + def get("http://gnusocial.de/.well-known/webfinger?resource=acct:winterdienst@gnusocial.de", [Accept: "application/xrd+xml,application/jrd+json"], [follow_redirect: true]) do + {:ok, %Response{ + status_code: 200, + body: File.read!("test/fixtures/httpoison_mock/winterdienst_webfinger.json") + }} + end def get("https://social.heldscal.la/.well-known/webfinger", [Accept: "application/xrd+xml,application/jrd+json"], [params: [resource: "nonexistant@social.heldscal.la"], follow_redirect: true]) do {:ok, %Response{ |