projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
user deletion
[akkoma]
/
test
/
plugs
/
admin_secret_authentication_plug_test.exs
diff --git
a/test/plugs/admin_secret_authentication_plug_test.exs
b/test/plugs/admin_secret_authentication_plug_test.exs
index 506b1f609d2d50afcd08c395930cb281bd019c15..100016c62842461e987b0c04f82efa71fe6a45a2 100644
(file)
--- a/
test/plugs/admin_secret_authentication_plug_test.exs
+++ b/
test/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-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.Plugs.AdminSecretAuthenticationPlugTest do
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Plugs.AdminSecretAuthenticationPlugTest do
@@
-23,6
+23,8
@@
defmodule Pleroma.Plugs.AdminSecretAuthenticationPlugTest do
end
describe "when secret set it assigns an admin user" do
end
describe "when secret set it assigns an admin user" do
+ setup do: clear_config([:admin_token])
+
test "with `admin_token` query parameter", %{conn: conn} do
Pleroma.Config.put(:admin_token, "password123")
test "with `admin_token` query parameter", %{conn: conn} do
Pleroma.Config.put(:admin_token, "password123")