diff options
| author | Mark Felder <feld@FreeBSD.org> | 2019-07-19 16:55:10 -0500 |
|---|---|---|
| committer | Mark Felder <feld@FreeBSD.org> | 2019-07-19 16:55:10 -0500 |
| commit | 9169f331b6d481a0aa2b0bfe91500d695fb1b6d6 (patch) | |
| tree | 734ce297aef5a2482c88cdc7d03914943ba4cf28 /test/plugs/http_signature_plug_test.exs | |
| parent | 46c7c53fbbfd9919d429ba15988af0da9e22d444 (diff) | |
| parent | c1c64d6d06fb7307245880d6605d9d9153a4784f (diff) | |
| download | pleroma-9169f331b6d481a0aa2b0bfe91500d695fb1b6d6.tar.gz pleroma-9169f331b6d481a0aa2b0bfe91500d695fb1b6d6.zip | |
Merge branch 'develop' into feature/matstodon-statuses-by-name
Diffstat (limited to 'test/plugs/http_signature_plug_test.exs')
| -rw-r--r-- | test/plugs/http_signature_plug_test.exs | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/test/plugs/http_signature_plug_test.exs b/test/plugs/http_signature_plug_test.exs index efd811df7..d6fd9ea81 100644 --- a/test/plugs/http_signature_plug_test.exs +++ b/test/plugs/http_signature_plug_test.exs @@ -26,22 +26,4 @@ defmodule Pleroma.Web.Plugs.HTTPSignaturePlugTest do assert called(HTTPSignatures.validate_conn(:_)) end end - - test "bails out early if the signature isn't by the activity actor" do - params = %{"actor" => "https://mst3k.interlinked.me/users/luciferMysticus"} - conn = build_conn(:get, "/doesntmattter", params) - - with_mock HTTPSignatures, validate_conn: fn _ -> false end do - conn = - conn - |> put_req_header( - "signature", - "keyId=\"http://mastodon.example.org/users/admin#main-key" - ) - |> HTTPSignaturePlug.call(%{}) - - assert conn.assigns.valid_signature == false - refute called(HTTPSignatures.validate_conn(:_)) - end - end end |
