transmogrifier: more robustly handle dereferencing pointer URIs

This commit is contained in:
William Pitcock 2018-09-27 07:14:15 +00:00 committed by Haelwenn (lanodan) Monnier
commit d830a243a3
No known key found for this signature in database
GPG key ID: D5B7A8E43C997DEE
5 changed files with 103 additions and 34 deletions

View file

@ -404,6 +404,17 @@ defmodule HTTPoisonMock do
}}
end
def get("http://mastodon.example.org/users/admin/statuses/100787282858396771", _, _) do
{:ok,
%Response{
status_code: 200,
body:
File.read!(
"test/fixtures/httpoison_mock/http___mastodon.example.org_users_admin_status_1234.json"
)
}}
end
def get(
"https://pawoo.net/.well-known/webfinger",
[Accept: "application/xrd+xml,application/jrd+json"],