diff options
author | rinpatch <rinpatch@sdf.org> | 2020-04-17 20:47:43 +0000 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2020-04-17 20:47:43 +0000 |
commit | f1843db41d27c695b4fdb92b13fe6642102a35bc (patch) | |
tree | 6a4cadbfda9f2eea8746ac76c7810766cea4a248 /test/plugs/legacy_authentication_plug_test.exs | |
parent | e303d80dcb35b0d63933a1cebc06caa07ec6eed1 (diff) | |
parent | 66f55106bda23e0cfb01cb63f7397f4383518963 (diff) | |
download | pleroma-f1843db41d27c695b4fdb92b13fe6642102a35bc.tar.gz pleroma-f1843db41d27c695b4fdb92b13fe6642102a35bc.zip |
Merge branch '1682-basic-auth-permissions-fix' into 'develop'
[#1682] Fixed Basic Auth permissions issue
Closes #1682
See merge request pleroma/pleroma!2401
Diffstat (limited to 'test/plugs/legacy_authentication_plug_test.exs')
-rw-r--r-- | test/plugs/legacy_authentication_plug_test.exs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/test/plugs/legacy_authentication_plug_test.exs b/test/plugs/legacy_authentication_plug_test.exs index 7559de7d3..3b8c07627 100644 --- a/test/plugs/legacy_authentication_plug_test.exs +++ b/test/plugs/legacy_authentication_plug_test.exs @@ -8,6 +8,8 @@ defmodule Pleroma.Plugs.LegacyAuthenticationPlugTest do import Pleroma.Factory alias Pleroma.Plugs.LegacyAuthenticationPlug + alias Pleroma.Plugs.OAuthScopesPlug + alias Pleroma.Plugs.PlugHelper alias Pleroma.User setup do @@ -36,7 +38,8 @@ defmodule Pleroma.Plugs.LegacyAuthenticationPlugTest do end @tag :skip_on_mac - test "it authenticates the auth_user if present and password is correct and resets the password", + test "if `auth_user` is present and password is correct, " <> + "it authenticates the user, resets the password, marks OAuthScopesPlug as skipped", %{ conn: conn, user: user @@ -49,6 +52,7 @@ defmodule Pleroma.Plugs.LegacyAuthenticationPlugTest do conn = LegacyAuthenticationPlug.call(conn, %{}) assert conn.assigns.user.id == user.id + assert PlugHelper.plug_skipped?(conn, OAuthScopesPlug) end @tag :skip_on_mac |