diff options
author | Alan Conway <aconway@apache.org> | 2009-02-12 19:01:51 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2009-02-12 19:01:51 +0000 |
commit | 55946250faf17c32ef8f49c724e622e9eedfbdfa (patch) | |
tree | ec6f972bbb5985eb1803f50584eecce606781631 /qpid/cpp/src/tests/BrokerFixture.h | |
parent | 64b26d7ac98b821e176f97d96a6580dafac353f6 (diff) | |
download | qpid-python-55946250faf17c32ef8f49c724e622e9eedfbdfa.tar.gz |
Cluster security support:
- Set correct user ID on update connections.
- Allow configuration of user, pass and mechanism used for update connections.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@743839 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/src/tests/BrokerFixture.h')
-rw-r--r-- | qpid/cpp/src/tests/BrokerFixture.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/qpid/cpp/src/tests/BrokerFixture.h b/qpid/cpp/src/tests/BrokerFixture.h index 205b4d90ef..f55560739d 100644 --- a/qpid/cpp/src/tests/BrokerFixture.h +++ b/qpid/cpp/src/tests/BrokerFixture.h @@ -88,6 +88,7 @@ struct BrokerFixture : private boost::noncopyable { /** Connection that opens in its constructor */ struct LocalConnection : public qpid::client::Connection { LocalConnection(uint16_t port) { open("localhost", port); } + LocalConnection(const qpid::client::ConnectionSettings& s) { open(s); } }; /** A local client connection via a socket proxy. */ @@ -96,6 +97,11 @@ struct ProxyConnection : public qpid::client::Connection { ProxyConnection(int brokerPort) : proxy(brokerPort) { open("localhost", proxy.getPort()); } + ProxyConnection(const qpid::client::ConnectionSettings& s) : proxy(s.port) { + qpid::client::ConnectionSettings proxySettings(s); + proxySettings.port = proxy.getPort(); + open(proxySettings); + } ~ProxyConnection() { close(); } }; @@ -110,6 +116,8 @@ struct ClientT { qpid::client::LocalQueue lq; ClientT(uint16_t port, const std::string& name=std::string()) : connection(port), session(connection.newSession(name)), subs(session) {} + ClientT(const qpid::client::ConnectionSettings& settings, const std::string& name=std::string()) + : connection(settings), session(connection.newSession(name)), subs(session) {} ~ClientT() { connection.close(); } }; |