aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/support/httpoison_mock.ex7
-rw-r--r--test/web/http_sigs/http_sig_test.exs1
2 files changed, 8 insertions, 0 deletions
diff --git a/test/support/httpoison_mock.ex b/test/support/httpoison_mock.ex
index ad9be9aef..a8b1a60c0 100644
--- a/test/support/httpoison_mock.ex
+++ b/test/support/httpoison_mock.ex
@@ -401,6 +401,13 @@ defmodule HTTPoisonMock do
}}
end
+ def get("https://mst3k.interlinked.me/users/luciferMysticus", ["Accept": "application/activity+json"], _) do
+ {:ok, %Response{
+ status_code: 200,
+ body: File.read!("test/fixtures/httpoison_mock/lucifermysticus.json")
+ }}
+ end
+
def get("https://mstdn.io/users/mayuutann", ["Accept": "application/activity+json"], _) do
{:ok, %Response{
status_code: 200,
diff --git a/test/web/http_sigs/http_sig_test.exs b/test/web/http_sigs/http_sig_test.exs
index b54afa3fb..b2bf8d61b 100644
--- a/test/web/http_sigs/http_sig_test.exs
+++ b/test/web/http_sigs/http_sig_test.exs
@@ -183,6 +183,7 @@ defmodule Pleroma.Web.HTTPSignaturesTest do
{"(request-target)", "post /inbox"}
]
}
+
assert HTTPSignatures.validate_conn(conn)
end
end