diff options
author | Dwayne Boone <dwayne@zeroc.com> | 2015-10-28 16:07:56 -0230 |
---|---|---|
committer | Dwayne Boone <dwayne@zeroc.com> | 2015-10-28 16:07:56 -0230 |
commit | be5e69faebc1e7cb55938550440c8b8bc19c1d31 (patch) | |
tree | d5cb233ca00e0ca1aa07993fea95486e266754f5 /cpp/test/IceStorm/single/Subscriber.cpp | |
parent | Fixed merge issue from previous commit (diff) | |
download | ice-be5e69faebc1e7cb55938550440c8b8bc19c1d31.tar.bz2 ice-be5e69faebc1e7cb55938550440c8b8bc19c1d31.tar.xz ice-be5e69faebc1e7cb55938550440c8b8bc19c1d31.zip |
Convert IceGrid/IceStorm to use LMDB database rather than Freeze/BdB
Diffstat (limited to 'cpp/test/IceStorm/single/Subscriber.cpp')
-rw-r--r-- | cpp/test/IceStorm/single/Subscriber.cpp | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/cpp/test/IceStorm/single/Subscriber.cpp b/cpp/test/IceStorm/single/Subscriber.cpp index 9832cd890be..5df1b5be2cf 100644 --- a/cpp/test/IceStorm/single/Subscriber.cpp +++ b/cpp/test/IceStorm/single/Subscriber.cpp @@ -123,6 +123,21 @@ run(int, char* argv[], const CommunicatorPtr& communicator) ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("SingleAdapter", "default:udp"); + // + // Test topic name that is too long + // + if(string(argv[1]) != "transient") + { + try + { + manager->create(string(512, 'A')); + test(false); + } + catch(const IceStorm::InvalidTopic&) + { + } + } + TopicPrx topic; try { @@ -135,6 +150,22 @@ run(int, char* argv[], const CommunicatorPtr& communicator) } // + // Test subscriber identity that is too long + // + if(string(argv[1]) != "transient") + { + try + { + Ice::ObjectPrx object = communicator->stringToProxy(string(512, 'A') + ":default -p 10000"); + topic->subscribeAndGetPublisher(IceStorm::QoS(), object); + test(false); + } + catch(const IceStorm::InvalidSubscriber&) + { + } + } + + // // Create subscribers with different QoS. // vector<SingleIPtr> subscribers; |