diff options
author | lambda <pleromagit@rogerbraun.net> | 2018-11-17 18:33:09 +0000 |
---|---|---|
committer | lambda <pleromagit@rogerbraun.net> | 2018-11-17 18:33:09 +0000 |
commit | a960983815b8798632fc489b762f760738cf798b (patch) | |
tree | 2f1bfbc9e90fce24707eda378c566c6554603e58 /test/support | |
parent | 05967472f296fc782c15f0d8ebbeaeadb03b0f8c (diff) | |
parent | b483ae0a724a2b76e8c61f63a96d7867339dacb1 (diff) | |
download | pleroma-a960983815b8798632fc489b762f760738cf798b.tar.gz |
Merge branch 'security/actor-containment' into 'develop'
security hotfix: actor containment
See merge request pleroma/pleroma!460
Diffstat (limited to 'test/support')
-rw-r--r-- | test/support/httpoison_mock.ex | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/test/support/httpoison_mock.ex b/test/support/httpoison_mock.ex index ab964334d..ebd1e9c4d 100644 --- a/test/support/httpoison_mock.ex +++ b/test/support/httpoison_mock.ex @@ -40,6 +40,30 @@ defmodule HTTPoisonMock do }} end + def get("https://info.pleroma.site/activity2.json", _, _) do + {:ok, + %Response{ + status_code: 200, + body: File.read!("test/fixtures/httpoison_mock/https__info.pleroma.site_activity2.json") + }} + end + + def get("https://info.pleroma.site/activity3.json", _, _) do + {:ok, + %Response{ + status_code: 200, + body: File.read!("test/fixtures/httpoison_mock/https__info.pleroma.site_activity3.json") + }} + end + + def get("https://info.pleroma.site/actor.json", _, _) do + {:ok, + %Response{ + status_code: 200, + body: File.read!("test/fixtures/httpoison_mock/https___info.pleroma.site_actor.json") + }} + end + def get("https://puckipedia.com/", [Accept: "application/activity+json"], _) do {:ok, %Response{ |