diff options
| author | Gordon Sim <gsim@apache.org> | 2010-07-15 20:33:16 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2010-07-15 20:33:16 +0000 |
| commit | 0d8f56400ceec589ca53eeb6e956cef19112bc17 (patch) | |
| tree | 8d13dd193b84f1dc14594bb7fd4b0d024d786618 /qpid/cpp/src/tests/MessagingSessionTests.cpp | |
| parent | 1d986872fe4f00a0f502fa334f67def44977cb30 (diff) | |
| download | qpid-python-0d8f56400ceec589ca53eeb6e956cef19112bc17.tar.gz | |
QPID-2734: Tighter control over sasl related test; now passes when cyrus-sasl not in use.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@964571 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/MessagingSessionTests.cpp')
| -rw-r--r-- | qpid/cpp/src/tests/MessagingSessionTests.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/qpid/cpp/src/tests/MessagingSessionTests.cpp b/qpid/cpp/src/tests/MessagingSessionTests.cpp index a23e8c3a9e..268bf3fbd3 100644 --- a/qpid/cpp/src/tests/MessagingSessionTests.cpp +++ b/qpid/cpp/src/tests/MessagingSessionTests.cpp @@ -772,7 +772,12 @@ QPID_AUTO_TEST_CASE(testExclusiveSubscriber) QPID_AUTO_TEST_CASE(testAuthenticatedUsername) { MessagingFixture fix; - BOOST_CHECK_EQUAL(fix.connection.getAuthenticatedUsername(), std::string("anonymous")); + Connection connection = fix.newConnection(); + connection.setOption("sasl-mechanism", "PLAIN"); + connection.setOption("username", "test-user"); + connection.setOption("password", "ignored"); + connection.open(); + BOOST_CHECK_EQUAL(connection.getAuthenticatedUsername(), std::string("test-user")); } QPID_AUTO_TEST_CASE(testExceptionOnClosedConnection) |
