projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request 'remove comment about old openssl versions in nginx config' (...
[akkoma]
/
test
/
pleroma
/
web
/
o_auth
/
ldap_authorization_test.exs
diff --git
a/test/pleroma/web/o_auth/ldap_authorization_test.exs
b/test/pleroma/web/o_auth/ldap_authorization_test.exs
index 61b9ce6b76d7350155666ec04fa5052a6ae05750..502ee091876049622644be709594f0c48ec2d736 100644
(file)
--- a/
test/pleroma/web/o_auth/ldap_authorization_test.exs
+++ b/
test/pleroma/web/o_auth/ldap_authorization_test.exs
@@
-18,7
+18,7
@@
defmodule Pleroma.Web.OAuth.LDAPAuthorizationTest do
@tag @skip
test "authorizes the existing user using LDAP credentials" do
password = "testpassword"
@tag @skip
test "authorizes the existing user using LDAP credentials" do
password = "testpassword"
- user = insert(:user, password_hash: Pleroma.Password.
Pbkdf2.
hash_pwd_salt(password))
+ user = insert(:user, password_hash: Pleroma.Password.hash_pwd_salt(password))
app = insert(:oauth_app, scopes: ["read", "write"])
host = Pleroma.Config.get([:ldap, :host]) |> to_charlist
app = insert(:oauth_app, scopes: ["read", "write"])
host = Pleroma.Config.get([:ldap, :host]) |> to_charlist
@@
-71,7
+71,7
@@
defmodule Pleroma.Web.OAuth.LDAPAuthorizationTest do
equalityMatch: fn _type, _value -> :ok end,
wholeSubtree: fn -> :ok end,
search: fn _connection, _options ->
equalityMatch: fn _type, _value -> :ok end,
wholeSubtree: fn -> :ok end,
search: fn _connection, _options ->
- {:ok, {:eldap_search_result, [{:eldap_entry, '', []}], []}}
+ {:ok, {:eldap_search_result, [{:eldap_entry, '', []}], []
, []
}}
end,
close: fn _connection ->
send(self(), :close_connection)
end,
close: fn _connection ->
send(self(), :close_connection)
@@
-101,7
+101,7
@@
defmodule Pleroma.Web.OAuth.LDAPAuthorizationTest do
@tag @skip
test "disallow authorization for wrong LDAP credentials" do
password = "testpassword"
@tag @skip
test "disallow authorization for wrong LDAP credentials" do
password = "testpassword"
- user = insert(:user, password_hash: Pleroma.Password.
Pbkdf2.
hash_pwd_salt(password))
+ user = insert(:user, password_hash: Pleroma.Password.hash_pwd_salt(password))
app = insert(:oauth_app, scopes: ["read", "write"])
host = Pleroma.Config.get([:ldap, :host]) |> to_charlist
app = insert(:oauth_app, scopes: ["read", "write"])
host = Pleroma.Config.get([:ldap, :host]) |> to_charlist