diff options
author | Benoit Foucher <benoit@zeroc.com> | 2020-08-27 09:03:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-27 09:03:45 +0200 |
commit | 90f5d7e4106cefdb1e8909c01384a684983b48da (patch) | |
tree | fa888039e7ea618f854a35d11064f8535e2c2c53 /cpp | |
parent | Fixed package name typo in C++ build instructions (diff) | |
download | ice-90f5d7e4106cefdb1e8909c01384a684983b48da.tar.bz2 ice-90f5d7e4106cefdb1e8909c01384a684983b48da.tar.xz ice-90f5d7e4106cefdb1e8909c01384a684983b48da.zip |
Fixes to run service tests with SSL when --all is used (#1005)
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/test/IceGrid/session/AllTests.cpp | 6 | ||||
-rw-r--r-- | cpp/test/IceStorm/repgrid/test.py | 4 | ||||
-rw-r--r-- | cpp/test/IceStorm/repstress/Publisher.cpp | 2 |
3 files changed, 7 insertions, 5 deletions
diff --git a/cpp/test/IceGrid/session/AllTests.cpp b/cpp/test/IceGrid/session/AllTests.cpp index d265c5284a0..de1ba3c2267 100644 --- a/cpp/test/IceGrid/session/AllTests.cpp +++ b/cpp/test/IceGrid/session/AllTests.cpp @@ -1186,7 +1186,7 @@ allTests(Test::TestHelper* helper) Ice::Identity(), Ice::Identity()); - Ice::ObjectAdapterPtr adpt2 = communicator->createObjectAdapterWithEndpoints("Observer2", "default"); + Ice::ObjectAdapterPtr adpt2 = communicator->createObjectAdapterWithEndpoints("Observer2", "tcp"); ApplicationObserverIPtr appObs2 = new ApplicationObserverI("appObs2"); Ice::ObjectPrx app2 = adpt2->addWithUUID(appObs2); NodeObserverIPtr nodeObs2 = new NodeObserverI("nodeObs1"); @@ -1972,7 +1972,7 @@ allTests(Test::TestHelper* helper) session1->ice_getConnection()->setACM(registry->getACMTimeout(), IceUtil::None, Ice::HeartbeatOnIdle); - Ice::ObjectAdapterPtr adpt1 = communicator->createObjectAdapterWithEndpoints("", "default"); + Ice::ObjectAdapterPtr adpt1 = communicator->createObjectAdapterWithEndpoints("", "tcp"); NodeObserverIPtr nodeObs1 = new NodeObserverI("nodeObs1"); Ice::ObjectPrx no1 = adpt1->addWithUUID(nodeObs1); adpt1->activate(); @@ -1989,7 +1989,7 @@ allTests(Test::TestHelper* helper) { cout << "testing observer with indirect proxy... " << flush; AdminSessionPrx session1 = registry->createAdminSession("admin1", "test1"); - communicator->getProperties()->setProperty("IndirectAdpt1.Endpoints", "default"); + communicator->getProperties()->setProperty("IndirectAdpt1.Endpoints", "tcp"); communicator->getProperties()->setProperty("IndirectAdpt1.AdapterId", "adapter1"); Ice::ObjectAdapterPtr adpt1 = communicator->createObjectAdapter("IndirectAdpt1"); test(communicator->getDefaultLocator()); diff --git a/cpp/test/IceStorm/repgrid/test.py b/cpp/test/IceStorm/repgrid/test.py index 4843fa9c692..a894bad3fce 100644 --- a/cpp/test/IceStorm/repgrid/test.py +++ b/cpp/test/IceStorm/repgrid/test.py @@ -3,7 +3,9 @@ # Copyright (c) ZeroC, Inc. All rights reserved. # +# Use the IceGridServer for the client because the client is an IceStorm subscriber and needs to be able +# to accept connections (this is important for picking the correct server certificate for TLS). if isinstance(platform, Windows) or os.getuid() != 0: TestSuite(__file__, [ IceGridTestCase(icegridregistry=IceGridRegistryMaster(), - client=IceGridClient()) ], + client=IceGridServer()) ], runOnMainThread=True, multihost=False) diff --git a/cpp/test/IceStorm/repstress/Publisher.cpp b/cpp/test/IceStorm/repstress/Publisher.cpp index cd917758217..65fda890f83 100644 --- a/cpp/test/IceStorm/repstress/Publisher.cpp +++ b/cpp/test/IceStorm/repstress/Publisher.cpp @@ -115,7 +115,7 @@ Publisher::run(int argc, char** argv) // SinglePrx single = SinglePrx::uncheckedCast(topic->getPublisher()->ice_twoway()->ice_connectionCached(false)); - ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("ControllerAdapter", "default"); + ObjectAdapterPtr adapter = communicator->createObjectAdapterWithEndpoints("ControllerAdapter", "tcp"); Ice::ObjectPrx controller = adapter->addWithUUID(new ControllerI); adapter->activate(); cout << communicator->proxyToString(controller) << endl; |