projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge remote-tracking branch 'remotes/origin/develop' into auth-improvements
[akkoma]
/
test
/
pleroma
/
web
/
plugs
/
admin_secret_authentication_plug_test.exs
diff --git
a/test/pleroma/web/plugs/admin_secret_authentication_plug_test.exs
b/test/pleroma/web/plugs/admin_secret_authentication_plug_test.exs
index 33394722a5e39da6d63581834067391042ab2ab8..23498badfe59e9c73dd4ef276ab53e026afe20ed 100644
(file)
--- a/
test/pleroma/web/plugs/admin_secret_authentication_plug_test.exs
+++ b/
test/pleroma/web/plugs/admin_secret_authentication_plug_test.exs
@@
-49,6
+49,7
@@
defmodule Pleroma.Web.Plugs.AdminSecretAuthenticationPlugTest do
|> AdminSecretAuthenticationPlug.call(%{})
assert conn.assigns[:user].is_admin
|> AdminSecretAuthenticationPlug.call(%{})
assert conn.assigns[:user].is_admin
+ assert conn.assigns[:token] == nil
assert PlugHelper.plug_skipped?(conn, OAuthScopesPlug)
end
assert PlugHelper.plug_skipped?(conn, OAuthScopesPlug)
end
@@
-69,6
+70,7
@@
defmodule Pleroma.Web.Plugs.AdminSecretAuthenticationPlugTest do
|> AdminSecretAuthenticationPlug.call(%{})
assert conn.assigns[:user].is_admin
|> AdminSecretAuthenticationPlug.call(%{})
assert conn.assigns[:user].is_admin
+ assert conn.assigns[:token] == nil
assert PlugHelper.plug_skipped?(conn, OAuthScopesPlug)
end
end
assert PlugHelper.plug_skipped?(conn, OAuthScopesPlug)
end
end