summaryrefslogtreecommitdiff
path: root/test/support/http_signatures_proxy.ex
diff options
context:
space:
mode:
authorLain Soykaf <lain@lain.com>2024-05-28 14:00:25 +0400
committerLain Soykaf <lain@lain.com>2024-05-28 14:00:25 +0400
commitf5978da67633110acbc6494ff6f07b3f07424779 (patch)
tree936871934b893ae546176df774ded4bbcf72ab23 /test/support/http_signatures_proxy.ex
parent3b4be5daa2c24d674665d6bc490e5d8f0878dd6e (diff)
downloadpleroma-f5978da67633110acbc6494ff6f07b3f07424779.tar.gz
pleroma-f5978da67633110acbc6494ff6f07b3f07424779.zip
HTTPSignaturePlugTest: Rewrite to use mox.
Diffstat (limited to 'test/support/http_signatures_proxy.ex')
-rw-r--r--test/support/http_signatures_proxy.ex9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/support/http_signatures_proxy.ex b/test/support/http_signatures_proxy.ex
new file mode 100644
index 000000000..4c6b39d19
--- /dev/null
+++ b/test/support/http_signatures_proxy.ex
@@ -0,0 +1,9 @@
+defmodule Pleroma.Test.HTTPSignaturesProxy do
+ @behaviour Pleroma.HTTPSignaturesAPI
+
+ @impl true
+ defdelegate validate_conn(conn), to: HTTPSignatures
+
+ @impl true
+ defdelegate signature_for_conn(conn), to: HTTPSignatures
+end