This commit is contained in:
Lain Soykaf 2024-05-28 14:20:48 +04:00
parent f5978da676
commit 8066645f71
1 changed files with 6 additions and 5 deletions

View File

@ -4,13 +4,14 @@
defmodule Pleroma.Web.Plugs.HTTPSignaturePlugTest do defmodule Pleroma.Web.Plugs.HTTPSignaturePlugTest do
use Pleroma.Web.ConnCase, async: true use Pleroma.Web.ConnCase, async: true
alias Pleroma.Web.Plugs.HTTPSignaturePlug
alias Pleroma.StubbedHTTPSignaturesMock, as: HTTPSignaturesMock
alias Pleroma.StaticStubbedConfigMock, as: ConfigMock
import Plug.Conn alias Pleroma.StaticStubbedConfigMock, as: ConfigMock
import Phoenix.Controller, only: [put_format: 2] alias Pleroma.StubbedHTTPSignaturesMock, as: HTTPSignaturesMock
alias Pleroma.Web.Plugs.HTTPSignaturePlug
import Mox import Mox
import Phoenix.Controller, only: [put_format: 2]
import Plug.Conn
test "it calls HTTPSignatures to check validity if the actor signed it" do test "it calls HTTPSignatures to check validity if the actor signed it" do
params = %{"actor" => "http://mastodon.example.org/users/admin"} params = %{"actor" => "http://mastodon.example.org/users/admin"}