summaryrefslogtreecommitdiff
path: root/qpid/cpp/src/tests/cluster_test.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2010-05-06 09:49:45 +0000
committerGordon Sim <gsim@apache.org>2010-05-06 09:49:45 +0000
commit041f826462375ae24c0c0feec603b8f6b33453fe (patch)
treea6892e1d8692ea93e61ed559a7a02611e4b74278 /qpid/cpp/src/tests/cluster_test.cpp
parent39d62d77b95da761f4cc07090eae508a7d8115c5 (diff)
downloadqpid-python-041f826462375ae24c0c0feec603b8f6b33453fe.tar.gz
Use UnauthorizedAccessException for ACL violations rather than NotAllowedException
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@941636 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/cluster_test.cpp')
-rw-r--r--qpid/cpp/src/tests/cluster_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qpid/cpp/src/tests/cluster_test.cpp b/qpid/cpp/src/tests/cluster_test.cpp
index 5e7409dd8e..d07c0ecdb5 100644
--- a/qpid/cpp/src/tests/cluster_test.cpp
+++ b/qpid/cpp/src/tests/cluster_test.cpp
@@ -248,7 +248,7 @@ QPID_AUTO_TEST_CASE(testAcl) {
{
ScopedSuppressLogging sl;
- BOOST_CHECK_THROW(foo.session.queueDeclare("bar", arg::durable=durableFlag), framing::NotAllowedException);
+ BOOST_CHECK_THROW(foo.session.queueDeclare("bar", arg::durable=durableFlag), framing::UnauthorizedAccessException);
}
BOOST_CHECK(c0.session.queueQuery("bar").getQueue().empty());
BOOST_CHECK(c1.session.queueQuery("bar").getQueue().empty());
@@ -257,7 +257,7 @@ QPID_AUTO_TEST_CASE(testAcl) {
Client c2(aclSettings(cluster[2], "c2"), "c2");
{
ScopedSuppressLogging sl;
- BOOST_CHECK_THROW(foo.session.queueDeclare("bar", arg::durable=durableFlag), framing::NotAllowedException);
+ BOOST_CHECK_THROW(foo.session.queueDeclare("bar", arg::durable=durableFlag), framing::UnauthorizedAccessException);
}
BOOST_CHECK(c2.session.queueQuery("bar").getQueue().empty());
}