summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPaweł Chmielowski <pchmielowski@process-one.net>2017-01-02 13:36:21 +0100
committerPaweł Chmielowski <pchmielowski@process-one.net>2017-01-02 13:36:21 +0100
commit1bda40dac7f1c35e7971a84d4e030eedacbde907 (patch)
tree4976bde8f18652a18c64d71a4917d87cc99b7321 /test
parentCorrectly process errors from new cyrsasl API (diff)
Fix cyrsasl test after recent changes
Diffstat (limited to 'test')
-rw-r--r--test/ejabberd_cyrsasl_test.exs10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/ejabberd_cyrsasl_test.exs b/test/ejabberd_cyrsasl_test.exs
index 2d497a62..e0cfce91 100644
--- a/test/ejabberd_cyrsasl_test.exs
+++ b/test/ejabberd_cyrsasl_test.exs
@@ -45,12 +45,12 @@ defmodule EjabberdCyrsaslTest do
test "Plain text (correct user wrong pass)", context do
step1 = :cyrsasl.server_start(context[:cyrstate], "PLAIN", <<0,"user1",0,"badpass">>)
- assert step1 == {:error, :"not-authorized", "user1"}
+ assert step1 == {:error, :not_authorized, "user1"}
end
test "Plain text (wrong user wrong pass)", context do
step1 = :cyrsasl.server_start(context[:cyrstate], "PLAIN", <<0,"nouser1",0,"badpass">>)
- assert step1 == {:error, :"not-authorized", "nouser1"}
+ assert step1 == {:error, :not_authorized, "nouser1"}
end
test "Anonymous", context do
@@ -63,15 +63,15 @@ defmodule EjabberdCyrsaslTest do
end
test "Digest-MD5 (correct user wrong pass)", context do
- assert {:error, :"not-authorized", "user1"} = process_digest_md5(context[:cyrstate], "user1", "domain1", "badpass")
+ assert {:error, :not_authorized, "user1"} = process_digest_md5(context[:cyrstate], "user1", "domain1", "badpass")
end
test "Digest-MD5 (wrong user correct pass)", context do
- assert {:error, :"not-authorized", "baduser"} = process_digest_md5(context[:cyrstate], "baduser", "domain1", "pass")
+ assert {:error, :not_authorized, "baduser"} = process_digest_md5(context[:cyrstate], "baduser", "domain1", "pass")
end
test "Digest-MD5 (wrong user and pass)", context do
- assert {:error, :"not-authorized", "baduser"} = process_digest_md5(context[:cyrstate], "baduser", "domain1", "badpass")
+ assert {:error, :not_authorized, "baduser"} = process_digest_md5(context[:cyrstate], "baduser", "domain1", "badpass")
end
defp process_digest_md5(cyrstate, user, domain, pass) do