From a2621fc79260bfc6c60fc76bf95940a7939b9df4 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Thu, 6 May 2010 09:49:45 +0000 Subject: Use UnauthorizedAccessException for ACL violations rather than NotAllowedException git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@941636 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/tests/cluster_test.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cpp/src/tests/cluster_test.cpp') diff --git a/cpp/src/tests/cluster_test.cpp b/cpp/src/tests/cluster_test.cpp index 5e7409dd8e..d07c0ecdb5 100644 --- a/cpp/src/tests/cluster_test.cpp +++ b/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()); } -- cgit v1.2.1