mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
Fix elixir tests
This commit is contained in:
parent
45e77ea483
commit
daab95e3b5
@ -44,12 +44,12 @@ defmodule EjabberdCyrsaslTest do
|
|||||||
|
|
||||||
test "Plain text (correct user wrong pass)", context do
|
test "Plain text (correct user wrong pass)", context do
|
||||||
step1 = :cyrsasl.server_start(context[:cyrstate], "PLAIN", <<0,"user1",0,"badpass">>)
|
step1 = :cyrsasl.server_start(context[:cyrstate], "PLAIN", <<0,"user1",0,"badpass">>)
|
||||||
assert step1 == {:error, "not-authorized", "user1"}, "got error response"
|
assert step1 == {:error, :"not-authorized", "user1"}
|
||||||
end
|
end
|
||||||
|
|
||||||
test "Plain text (wrong user wrong pass)", context do
|
test "Plain text (wrong user wrong pass)", context do
|
||||||
step1 = :cyrsasl.server_start(context[:cyrstate], "PLAIN", <<0,"nouser1",0,"badpass">>)
|
step1 = :cyrsasl.server_start(context[:cyrstate], "PLAIN", <<0,"nouser1",0,"badpass">>)
|
||||||
assert step1 == {:error, "not-authorized", "nouser1"}, "got error response"
|
assert step1 == {:error, :"not-authorized", "nouser1"}
|
||||||
end
|
end
|
||||||
|
|
||||||
test "Anonymous", context do
|
test "Anonymous", context do
|
||||||
|
Loading…
Reference in New Issue
Block a user