diff options
author | rinpatch <rinpatch@sdf.org> | 2020-04-08 15:51:56 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-04-08 15:51:56 +0000 |
commit | 3b15a0eecc62f79465620a697f12b576ed87b0fc (patch) | |
tree | cbfc275ab8b5093a1dafacbbd830c7e6f1a19886 /test/support/http_request_mock.ex | |
parent | bb49d8f5a0dbbad65a8f65a28cc2d0847b518067 (diff) | |
parent | d9f36965f6412e476f723b4cf0278d8fd76d325c (diff) | |
download | pleroma-2.0.2.tar.gz |
Merge branch 'release/2.0.2' into 'stable'v2.0.2
2.0.2 Release
See merge request pleroma/pleroma!2336
Diffstat (limited to 'test/support/http_request_mock.ex')
-rw-r--r-- | test/support/http_request_mock.ex | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/test/support/http_request_mock.ex b/test/support/http_request_mock.ex index e72638814..79ab129fd 100644 --- a/test/support/http_request_mock.ex +++ b/test/support/http_request_mock.ex @@ -1273,6 +1273,21 @@ defmodule HttpRequestMock do {:ok, %Tesla.Env{status: 200, body: File.read!("test/fixtures/tesla_mock/rin.json")}} end + def get( + "https://channels.tests.funkwhale.audio/federation/music/uploads/42342395-0208-4fee-a38d-259a6dae0871", + _, + _, + _ + ) do + {:ok, + %Tesla.Env{status: 200, body: File.read!("test/fixtures/tesla_mock/funkwhale_audio.json")}} + end + + def get("https://channels.tests.funkwhale.audio/federation/actors/compositions", _, _, _) do + {:ok, + %Tesla.Env{status: 200, body: File.read!("test/fixtures/tesla_mock/funkwhale_channel.json")}} + end + def get("http://example.com/rel_me/error", _, _, _) do {:ok, %Tesla.Env{status: 404, body: ""}} end |