projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'fix/eldap-required' into 'develop'
[akkoma]
/
test
/
plugs
/
mapped_identity_to_signature_plug_test.exs
diff --git
a/test/plugs/mapped_identity_to_signature_plug_test.exs
b/test/plugs/mapped_identity_to_signature_plug_test.exs
index 9aca534e194d8d0bfbf820c1360d0be4705976e2..0ad3c2929ac1c2ad354b16fa9d7ff5ce543361b5 100644
(file)
--- a/
test/plugs/mapped_identity_to_signature_plug_test.exs
+++ b/
test/plugs/mapped_identity_to_signature_plug_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-20
18
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-20
20
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.Plugs.MappedSignatureToIdentityPlugTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.Plugs.MappedSignatureToIdentityPlugTest do
@@
-26,7
+26,7
@@
defmodule Pleroma.Web.Plugs.MappedSignatureToIdentityPlugTest do
|> set_signature("http://mastodon.example.org/users/admin")
|> MappedSignatureToIdentityPlug.call(%{})
|> set_signature("http://mastodon.example.org/users/admin")
|> MappedSignatureToIdentityPlug.call(%{})
- refute is_nil(conn.assigns.
mapped_identity
)
+ refute is_nil(conn.assigns.
user
)
end
test "it successfully maps a valid identity with a valid signature with payload" do
end
test "it successfully maps a valid identity with a valid signature with payload" do
@@
-35,7
+35,7
@@
defmodule Pleroma.Web.Plugs.MappedSignatureToIdentityPlugTest do
|> set_signature("http://mastodon.example.org/users/admin")
|> MappedSignatureToIdentityPlug.call(%{})
|> set_signature("http://mastodon.example.org/users/admin")
|> MappedSignatureToIdentityPlug.call(%{})
- refute is_nil(conn.assigns.
mapped_identity
)
+ refute is_nil(conn.assigns.
user
)
end
test "it considers a mapped identity to be invalid when it mismatches a payload" do
end
test "it considers a mapped identity to be invalid when it mismatches a payload" do