Fetch the same data from json webfinger as from xml webfinger.
This commit is contained in:
parent
d1ee3edd3c
commit
e3a81fe58f
4 changed files with 31 additions and 3 deletions
|
|
@ -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{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue