Skip to content
Snippets Groups Projects
Unverified Commit cef536d5 authored by Thomas Citharel's avatar Thomas Citharel
Browse files

Fix LDAP authentificator tests


Signed-off-by: default avatarThomas Citharel <tcit@tcit.fr>
parent 48ebdbb0
No related branches found
Tags 3.0.3
No related merge requests found
......@@ -62,7 +62,8 @@ defmodule Mobilizon.Service.Auth.LDAPAuthenticatorTest do
wholeSubtree: fn -> :ok end,
search: fn _connection, _options ->
{:ok,
{:eldap_search_result, [{:eldap_entry, '', [{'cn', [to_charlist("MyUser")]}]}], []}}
{:eldap_search_result, [{:eldap_entry, '', [{'cn', [to_charlist("MyUser")]}]}], [],
[]}}
end,
close: fn _connection ->
send(self(), :close_connection)
......@@ -110,7 +111,8 @@ defmodule Mobilizon.Service.Auth.LDAPAuthenticatorTest do
wholeSubtree: fn -> :ok end,
search: fn _connection, _options ->
{:ok,
{:eldap_search_result, [{:eldap_entry, '', [{'cn', [to_charlist("MyUser")]}]}], []}}
{:eldap_search_result, [{:eldap_entry, '', [{'cn', [to_charlist("MyUser")]}]}], [],
[]}}
end,
close: fn _connection ->
send(self(), :close_connection)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment