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 feature/object-hashtags...
[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 665c1962eb2acf2865acf2d94f3c57fca3bbf370..79561afb7045a507a82441923216facae6bd2901 100644
(file)
--- a/
test/pleroma/web/plugs/admin_secret_authentication_plug_test.exs
+++ b/
test/pleroma/web/plugs/admin_secret_authentication_plug_test.exs
@@
-35,7
+35,7
@@
defmodule Pleroma.Web.Plugs.AdminSecretAuthenticationPlugTest do
end
test "with `admin_token` query parameter", %{conn: conn} do
end
test "with `admin_token` query parameter", %{conn: conn} do
-
Pleroma.Config.put
(:admin_token, "password123")
+
clear_config
(:admin_token, "password123")
conn =
%{conn | params: %{"admin_token" => "wrong_password"}}
conn =
%{conn | params: %{"admin_token" => "wrong_password"}}
@@
-54,7
+54,7
@@
defmodule Pleroma.Web.Plugs.AdminSecretAuthenticationPlugTest do
end
test "with `x-admin-token` HTTP header", %{conn: conn} do
end
test "with `x-admin-token` HTTP header", %{conn: conn} do
-
Pleroma.Config.put
(:admin_token, "☕️")
+
clear_config
(:admin_token, "☕️")
conn =
conn
conn =
conn