diff options
author | rinpatch <rinpatch@sdf.org> | 2019-07-25 18:43:30 +0300 |
---|---|---|
committer | rinpatch <rinpatch@sdf.org> | 2019-07-25 18:43:30 +0300 |
commit | 41e0304757c5a0d9778f7e685c9ddf481f0e15cb (patch) | |
tree | dc60d86d41153d9764cb32a9adae5fa24894c1fa /test/plugs/authentication_plug_test.exs | |
parent | 196cad46f35a63c18d58cd5d982bc4e1f9b0d7c3 (diff) | |
parent | d1e891062e3c6c34ca7940a476917beea2822ca2 (diff) | |
download | pleroma-41e0304757c5a0d9778f7e685c9ddf481f0e15cb.tar.gz pleroma-41e0304757c5a0d9778f7e685c9ddf481f0e15cb.zip |
Merge branch 'develop' into feature/hide-follows-remote
Diffstat (limited to 'test/plugs/authentication_plug_test.exs')
-rw-r--r-- | test/plugs/authentication_plug_test.exs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/plugs/authentication_plug_test.exs b/test/plugs/authentication_plug_test.exs index 7ca045616..f7f8fd9f3 100644 --- a/test/plugs/authentication_plug_test.exs +++ b/test/plugs/authentication_plug_test.exs @@ -9,7 +9,6 @@ defmodule Pleroma.Plugs.AuthenticationPlugTest do alias Pleroma.User import ExUnit.CaptureLog - import Mock setup %{conn: conn} do user = %User{ @@ -67,13 +66,12 @@ defmodule Pleroma.Plugs.AuthenticationPlugTest do refute AuthenticationPlug.checkpw("test-password1", hash) end + @tag :skip_on_mac test "check sha512-crypt hash" do hash = "$6$9psBWV8gxkGOZWBz$PmfCycChoxeJ3GgGzwvhlgacb9mUoZ.KUXNCssekER4SJ7bOK53uXrHNb2e4i8yPFgSKyzaW9CcmrDXWIEMtD1" - with_mock :crypt, crypt: fn _password, password_hash -> password_hash end do - assert AuthenticationPlug.checkpw("password", hash) - end + assert AuthenticationPlug.checkpw("password", hash) end test "it returns false when hash invalid" do |