aboutsummaryrefslogtreecommitdiff
path: root/test/support
diff options
context:
space:
mode:
authorWilliam Pitcock <nenolod@dereferenced.org>2018-11-17 17:42:47 +0000
committerWilliam Pitcock <nenolod@dereferenced.org>2018-11-17 18:11:17 +0000
commit010fcb73d7e308c15b3f2c10fa27bd49d25d56cf (patch)
tree5ae772c61fe6069903da04e07009ec5d2432bac5 /test/support
parent05967472f296fc782c15f0d8ebbeaeadb03b0f8c (diff)
downloadpleroma-010fcb73d7e308c15b3f2c10fa27bd49d25d56cf.tar.gz
test: httpoison mock: add second spoofing activity test
Diffstat (limited to 'test/support')
-rw-r--r--test/support/httpoison_mock.ex16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/support/httpoison_mock.ex b/test/support/httpoison_mock.ex
index ab964334d..2ea10910e 100644
--- a/test/support/httpoison_mock.ex
+++ b/test/support/httpoison_mock.ex
@@ -40,6 +40,22 @@ 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/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{