projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' into '2435-list-multiple-users'
[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..665c1962eb2acf2865acf2d94f3c57fca3bbf370 100644
(file)
--- a/
test/pleroma/web/plugs/admin_secret_authentication_plug_test.exs
+++ b/
test/pleroma/web/plugs/admin_secret_authentication_plug_test.exs
@@
-1,5
+1,5
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-202
0
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-202
1
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.Plugs.AdminSecretAuthenticationPlugTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.Plugs.AdminSecretAuthenticationPlugTest do
@@
-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