tests WebFinger

This commit is contained in:
Maksim 2019-07-24 15:13:10 +00:00 committed by kaniini
commit 55341ac717
7 changed files with 141 additions and 24 deletions

View file

@ -614,6 +614,15 @@ defmodule HttpRequestMock do
}}
end
def get(
"https://social.heldscal.la/.well-known/webfinger?resource=invalid_content@social.heldscal.la",
_,
_,
Accept: "application/xrd+xml,application/jrd+json"
) do
{:ok, %Tesla.Env{status: 200, body: ""}}
end
def get("http://framatube.org/.well-known/host-meta", _, _, _) do
{:ok,
%Tesla.Env{