diff options
author | lambda <pleromagit@rogerbraun.net> | 2018-05-19 09:31:08 +0000 |
---|---|---|
committer | lambda <pleromagit@rogerbraun.net> | 2018-05-19 09:31:08 +0000 |
commit | 7831b38705654d77bddd14b0f4542b9ae7e9e82d (patch) | |
tree | 7abedd33e3135a4c192eae323764ada17286f19a /test/support | |
parent | ad563669c891120f8ff5e416c7ef3d60c831da26 (diff) | |
parent | 725b05d04aecaa00d5b79c81958267444bf3c91d (diff) | |
download | pleroma-7831b38705654d77bddd14b0f4542b9ae7e9e82d.tar.gz pleroma-7831b38705654d77bddd14b0f4542b9ae7e9e82d.zip |
Merge branch 'feature/webfinger-mime-ld-json' into 'develop'
webfinger: handle application/ld+json links
See merge request pleroma/pleroma!159
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/httpoison_mock.ex | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/support/httpoison_mock.ex b/test/support/httpoison_mock.ex index 6bbae70e1..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 |