aboutsummaryrefslogtreecommitdiff
path: root/test/support
diff options
context:
space:
mode:
authorHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-10-06 17:17:56 +0200
committerHaelwenn (lanodan) Monnier <contact@hacktivis.me>2020-10-06 17:29:01 +0200
commite2bad1efc49e9abd0fb35a1d3fe64cd2e6aa4074 (patch)
tree21eb84da9be6e9671104bfa97435687e322b6436 /test/support
parent4d852f3e78d6fcfe7bb2ef8b8d3a2f29359dd20c (diff)
downloadpleroma-features/ap_c2s_proxyUrl.tar.gz
AP C2S: Implement proxyUrl endpointfeatures/ap_c2s_proxyUrl
Diffstat (limited to 'test/support')
-rw-r--r--test/support/http_request_mock.ex15
1 files changed, 9 insertions, 6 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex
index cb022333f..ba88aff90 100644
--- a/test/support/http_request_mock.ex
+++ b/test/support/http_request_mock.ex
@@ -534,12 +534,15 @@ defmodule HttpRequestMock do
}}
end
- def get(
- "http://mastodon.example.org/@admin/99541947525187367",
- _,
- _,
- _
- ) do
+ def get("http://mastodon.example.org/users/admin/statuses/99541947525187367", _, _, _) do
+ {:ok,
+ %Tesla.Env{
+ status: 200,
+ body: File.read!("test/fixtures/mastodon-note-object.json")
+ }}
+ end
+
+ def get("http://mastodon.example.org/@admin/99541947525187367", _, _, _) do
{:ok,
%Tesla.Env{
status: 200,