aboutsummaryrefslogtreecommitdiff
path: root/tests/tests.cpp
diff options
context:
space:
mode:
authorJeremy Lainé <jeremy.laine@m4x.org>2010-08-13 17:03:24 +0000
committerJeremy Lainé <jeremy.laine@m4x.org>2010-08-13 17:03:24 +0000
commit06a528d2d2c6bc86e16cfe6e87b26c22bf6d1078 (patch)
tree6afa03c384525bd9acdf908286ac050fb7fa0ab8 /tests/tests.cpp
parent174735b46026f9aeb62ddede04f6c0be7fa2418f (diff)
downloadqxmpp-06a528d2d2c6bc86e16cfe6e87b26c22bf6d1078.tar.gz
test auth mechanisms
Diffstat (limited to 'tests/tests.cpp')
-rw-r--r--tests/tests.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tests.cpp b/tests/tests.cpp
index 1e391ad9..b3a7dd80 100644
--- a/tests/tests.cpp
+++ b/tests/tests.cpp
@@ -292,13 +292,14 @@ void TestPackets::testStreamFeatures()
const QByteArray xml2("<stream:features>"
"<bind xmlns=\"urn:ietf:params:xml:ns:xmpp-bind\"/>"
"<session xmlns=\"urn:ietf:params:xml:ns:xmpp-session\"/>"
+ "<mechanisms xmlns=\"urn:ietf:params:xml:ns:xmpp-sasl\"><mechanism>PLAIN</mechanism></mechanisms>"
"<starttls xmlns=\"urn:ietf:params:xml:ns:xmpp-tls\"/>"
"</stream:features>");
QXmppStreamFeatures features2;
parsePacket(features2, xml2);
QCOMPARE(features2.isBindAvailable(), true);
QCOMPARE(features2.isSessionAvailable(), true);
- QCOMPARE(features2.authMechanisms(), QList<QXmppConfiguration::SASLAuthMechanism>());
+ QCOMPARE(features2.authMechanisms(), QList<QXmppConfiguration::SASLAuthMechanism>() << QXmppConfiguration::SASLPlain);
QCOMPARE(features2.securityMode(), QXmppConfiguration::TLSEnabled);
serializePacket(features2, xml2);