diff options
author | Jose <jose@zeroc.com> | 2017-11-21 17:07:37 +0100 |
---|---|---|
committer | Jose <jose@zeroc.com> | 2017-11-21 17:10:41 +0100 |
commit | 58a76632b25a3c3abbfbb7edd8419a375efc340d (patch) | |
tree | edeef38ac3154c6d679a649ea8f19a8893c935d3 /cpp | |
parent | Increased invocation timeout from timeout test to prevent sporadic failures (diff) | |
download | ice-58a76632b25a3c3abbfbb7edd8419a375efc340d.tar.bz2 ice-58a76632b25a3c3abbfbb7edd8419a375efc340d.tar.xz ice-58a76632b25a3c3abbfbb7edd8419a375efc340d.zip |
Update Glacier2 base port to avoid conflicts with selenium driver
Diffstat (limited to 'cpp')
-rw-r--r-- | cpp/test/Glacier2/application/Client.cpp | 4 | ||||
-rw-r--r-- | cpp/test/Glacier2/attack/Client.cpp | 4 | ||||
-rw-r--r-- | cpp/test/Glacier2/dynamicFiltering/Client.cpp | 4 | ||||
-rw-r--r-- | cpp/test/Glacier2/override/Client.cpp | 4 | ||||
-rw-r--r-- | cpp/test/Glacier2/router/Client.cpp | 10 | ||||
-rw-r--r-- | cpp/test/Glacier2/sessionControl/Client.cpp | 4 | ||||
-rw-r--r-- | cpp/test/Glacier2/sessionHelper/Client.cpp | 8 | ||||
-rw-r--r-- | cpp/test/Glacier2/staticFiltering/Client.cpp | 4 |
8 files changed, 21 insertions, 21 deletions
diff --git a/cpp/test/Glacier2/application/Client.cpp b/cpp/test/Glacier2/application/Client.cpp index 155379a9969..eaf7574bb16 100644 --- a/cpp/test/Glacier2/application/Client.cpp +++ b/cpp/test/Glacier2/application/Client.cpp @@ -120,14 +120,14 @@ main(int argc, char* argv[]) Application app; Ice::InitializationData initData = getTestInitData(argc, argv); initData.properties->setProperty("Ice.Warn.Connections", "0"); - initData.properties->setProperty("Ice.Default.Router", "Glacier2/router:" + getTestEndpoint(initData.properties, 10)); + initData.properties->setProperty("Ice.Default.Router", "Glacier2/router:" + getTestEndpoint(initData.properties, 50)); int status = app.main(argc, argv, initData); initData.properties->setProperty("Ice.Default.Router", ""); Ice::CommunicatorPtr communicator = Ice::initialize(initData); cout << "testing stringToProxy for process object... " << flush; - Ice::ObjectPrxPtr processBase = communicator->stringToProxy("Glacier2/admin -f Process:" + getTestEndpoint(communicator, 11)); + Ice::ObjectPrxPtr processBase = communicator->stringToProxy("Glacier2/admin -f Process:" + getTestEndpoint(communicator, 51)); cout << "ok" << endl; cout << "testing checked cast for admin object... " << flush; diff --git a/cpp/test/Glacier2/attack/Client.cpp b/cpp/test/Glacier2/attack/Client.cpp index c931257ff8d..2420e580cd3 100644 --- a/cpp/test/Glacier2/attack/Client.cpp +++ b/cpp/test/Glacier2/attack/Client.cpp @@ -44,7 +44,7 @@ int AttackClient::run(int, char**) { cout << "getting router... " << flush; - ObjectPrx routerBase = communicator()->stringToProxy("Glacier2/router:" + getTestEndpoint(communicator(), 10)); + ObjectPrx routerBase = communicator()->stringToProxy("Glacier2/router:" + getTestEndpoint(communicator(), 50)); Glacier2::RouterPrx router = Glacier2::RouterPrx::checkedCast(routerBase); test(router); communicator()->setDefaultRouter(router); @@ -114,7 +114,7 @@ AttackClient::run(int, char**) backend->shutdown(); communicator()->setDefaultRouter(0); ObjectPrx adminBase = communicator()->stringToProxy("Glacier2/admin -f Process:" + - getTestEndpoint(communicator(), 11)); + getTestEndpoint(communicator(), 51)); Ice::ProcessPrx process = Ice::ProcessPrx::checkedCast(adminBase); test(process); process->shutdown(); diff --git a/cpp/test/Glacier2/dynamicFiltering/Client.cpp b/cpp/test/Glacier2/dynamicFiltering/Client.cpp index 1fdfbd241fe..45589aa82a3 100644 --- a/cpp/test/Glacier2/dynamicFiltering/Client.cpp +++ b/cpp/test/Glacier2/dynamicFiltering/Client.cpp @@ -65,7 +65,7 @@ SessionControlClient::run(int argc, char* argv[]) cout << "ok" << endl; cout << "getting router... " << flush; - ObjectPrx routerBase = communicator()->stringToProxy("Glacier2/router:" + getTestEndpoint(communicator(), 10)); + ObjectPrx routerBase = communicator()->stringToProxy("Glacier2/router:" + getTestEndpoint(communicator(), 50)); Glacier2::RouterPrx router = Glacier2::RouterPrx::checkedCast(routerBase); test(router); communicator()->setDefaultRouter(router); @@ -160,7 +160,7 @@ SessionControlClient::run(int argc, char* argv[]) // communicator()->setDefaultRouter(0); ObjectPrx processBase = communicator()->stringToProxy("Glacier2/admin -f Process:" + - getTestEndpoint(communicator(), 11)); + getTestEndpoint(communicator(), 51)); Ice::ProcessPrx process = Ice::ProcessPrx::checkedCast(processBase); test(process); process->shutdown(); diff --git a/cpp/test/Glacier2/override/Client.cpp b/cpp/test/Glacier2/override/Client.cpp index 5e1c35f35c4..67e337b51d5 100644 --- a/cpp/test/Glacier2/override/Client.cpp +++ b/cpp/test/Glacier2/override/Client.cpp @@ -43,7 +43,7 @@ main(int argc, char* argv[]) int CallbackClient::run(int, char**) { - ObjectPrx routerBase = communicator()->stringToProxy("Glacier2/router:" + getTestEndpoint(communicator(), 10)); + ObjectPrx routerBase = communicator()->stringToProxy("Glacier2/router:" + getTestEndpoint(communicator(), 50)); Glacier2::RouterPrx router = Glacier2::RouterPrx::checkedCast(routerBase); communicator()->setDefaultRouter(router); @@ -207,7 +207,7 @@ CallbackClient::run(int, char**) communicator()->setDefaultRouter(0); ObjectPrx processBase = communicator()->stringToProxy("Glacier2/admin -f Process:" + - getTestEndpoint(communicator(), 11)); + getTestEndpoint(communicator(), 51)); Ice::ProcessPrx process = Ice::ProcessPrx::checkedCast(processBase); process->shutdown(); try diff --git a/cpp/test/Glacier2/router/Client.cpp b/cpp/test/Glacier2/router/Client.cpp index 5a38b1ae193..778e02ea4ea 100644 --- a/cpp/test/Glacier2/router/Client.cpp +++ b/cpp/test/Glacier2/router/Client.cpp @@ -82,7 +82,7 @@ public: void run() { CommunicatorPtr communicator = initialize(initData); - ObjectPrx routerBase = communicator->stringToProxy("Glacier2/router:" + getTestEndpoint(communicator, 10)); + ObjectPrx routerBase = communicator->stringToProxy("Glacier2/router:" + getTestEndpoint(communicator, 50)); Glacier2::RouterPrx router = Glacier2::RouterPrx::checkedCast(routerBase); communicator->setDefaultRouter(router); @@ -188,7 +188,7 @@ public: void run() { CommunicatorPtr communicator = initialize(initData); - ObjectPrx routerBase = communicator->stringToProxy("Glacier2/router:" + getTestEndpoint(communicator, 10)); + ObjectPrx routerBase = communicator->stringToProxy("Glacier2/router:" + getTestEndpoint(communicator, 50)); _router = Glacier2::RouterPrx::checkedCast(routerBase); communicator->setDefaultRouter(_router); @@ -437,7 +437,7 @@ CallbackClient::run(int argc, char* argv[]) { cout << "testing stringToProxy for router... " << flush; - routerBase = communicator()->stringToProxy("Glacier2/router:" + getTestEndpoint(communicator(), 10)); + routerBase = communicator()->stringToProxy("Glacier2/router:" + getTestEndpoint(communicator(), 50)); cout << "ok" << endl; } @@ -454,7 +454,7 @@ CallbackClient::run(int argc, char* argv[]) cout << "testing router finder... " << flush; Ice::RouterFinderPrx finder = RouterFinderPrx::uncheckedCast(communicator()->stringToProxy("Ice/RouterFinder:" + - getTestEndpoint(communicator(), 10))); + getTestEndpoint(communicator(), 50))); test(finder->getRouter()->ice_getIdentity() == router->ice_getIdentity()); cout << "ok" << endl; } @@ -906,7 +906,7 @@ CallbackClient::run(int argc, char* argv[]) { cout << "testing stringToProxy for admin process facet... " << flush; processBase = communicator()->stringToProxy("Glacier2/admin -f Process:" + - getTestEndpoint(communicator(), 11)); + getTestEndpoint(communicator(), 51)); cout << "ok" << endl; } diff --git a/cpp/test/Glacier2/sessionControl/Client.cpp b/cpp/test/Glacier2/sessionControl/Client.cpp index c4a43b89574..c0dd7c01a72 100644 --- a/cpp/test/Glacier2/sessionControl/Client.cpp +++ b/cpp/test/Glacier2/sessionControl/Client.cpp @@ -44,7 +44,7 @@ int SessionControlClient::run(int, char**) { cout << "getting router... " << flush; - ObjectPrx routerBase = communicator()->stringToProxy("Glacier2/router:" + getTestEndpoint(communicator(), 10)); + ObjectPrx routerBase = communicator()->stringToProxy("Glacier2/router:" + getTestEndpoint(communicator(), 50)); Glacier2::RouterPrx router = Glacier2::RouterPrx::checkedCast(routerBase); test(router); communicator()->setDefaultRouter(router); @@ -99,7 +99,7 @@ SessionControlClient::run(int, char**) session->shutdown(); communicator()->setDefaultRouter(0); ObjectPrx processBase = communicator()->stringToProxy("Glacier2/admin -f Process:" + - getTestEndpoint(communicator(), 11)); + getTestEndpoint(communicator(), 51)); Ice::ProcessPrx process = Ice::ProcessPrx::checkedCast(processBase); test(process); process->shutdown(); diff --git a/cpp/test/Glacier2/sessionHelper/Client.cpp b/cpp/test/Glacier2/sessionHelper/Client.cpp index a6485f282ef..a1a296e87be 100644 --- a/cpp/test/Glacier2/sessionHelper/Client.cpp +++ b/cpp/test/Glacier2/sessionHelper/Client.cpp @@ -305,7 +305,7 @@ public: string host = getTestHost(communicator()->getProperties()); _initData.properties = Ice::createProperties(argc, argv, communicator()->getProperties()); _initData.properties->setProperty("Ice.Default.Router", "Glacier2/router:" + - getTestEndpoint(communicator(), 10)); + getTestEndpoint(communicator(), 50)); DispatcherPtr dispatcher = new Dispatcher(); dispatcher->start(); @@ -370,7 +370,7 @@ public: IceUtil::Monitor<IceUtil::Mutex>::Lock lock(_monitor); cout << "testing SessionHelper connect... " << flush; _factory->setRouterHost(host); - _factory->setPort(getTestPort(_initData.properties, 10)); + _factory->setPort(getTestPort(_initData.properties, 50)); _factory->setProtocol(protocol); _session = _factory->connect("userid", "abc123"); @@ -469,7 +469,7 @@ public: { cout << "testing stringToProxy for process object... " << flush; processBase = communicator()->stringToProxy("Glacier2/admin -f Process:" + - getTestEndpoint(communicator(), 11)); + getTestEndpoint(communicator(), 51)); cout << "ok" << endl; } @@ -507,7 +507,7 @@ public: IceUtil::Monitor<IceUtil::Mutex>::Lock lock(_monitor); cout << "testing SessionHelper connect after router shutdown... " << flush; _factory->setRouterHost(host); - _factory->setPort(getTestPort(_initData.properties, 10)); + _factory->setPort(getTestPort(_initData.properties, 50)); _factory->setProtocol(protocol); _session = _factory->connect("userid", "abc123"); diff --git a/cpp/test/Glacier2/staticFiltering/Client.cpp b/cpp/test/Glacier2/staticFiltering/Client.cpp index 5100006c5f4..969fd9b4f4f 100644 --- a/cpp/test/Glacier2/staticFiltering/Client.cpp +++ b/cpp/test/Glacier2/staticFiltering/Client.cpp @@ -41,7 +41,7 @@ main(int argc, char* argv[]) int AttackClient::run(int, char**) { - ObjectPrx routerBase = communicator()->stringToProxy("Glacier2/router:" + getTestEndpoint(communicator(), 10)); + ObjectPrx routerBase = communicator()->stringToProxy("Glacier2/router:" + getTestEndpoint(communicator(), 50)); Glacier2::RouterPrx router = Glacier2::RouterPrx::checkedCast(routerBase); test(router); communicator()->setDefaultRouter(router); @@ -148,7 +148,7 @@ AttackClient::run(int, char**) } ObjectPrx processBase = communicator()->stringToProxy("Glacier2/admin -f Process:" + - getTestEndpoint(communicator(), 11)); + getTestEndpoint(communicator(), 51)); Ice::ProcessPrx process = Ice::ProcessPrx::checkedCast(processBase); test(process); process->shutdown(); |