From f0fbb296946f95b2bd94e86d72df618aadf3268c Mon Sep 17 00:00:00 2001 From: Benoit Foucher Date: Wed, 10 May 2017 18:54:03 +0200 Subject: Fixed ICE-7849 - Removed IceDiscovery/IceLocatorDiscovery ice_getConnection call, added IceGrid/simple C++11 test --- scripts/tests/IceGrid/simple.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'scripts/tests/IceGrid/simple.py') diff --git a/scripts/tests/IceGrid/simple.py b/scripts/tests/IceGrid/simple.py index 30110ee5197..dc87a4a7f62 100644 --- a/scripts/tests/IceGrid/simple.py +++ b/scripts/tests/IceGrid/simple.py @@ -17,11 +17,23 @@ registryProps = { "IceGrid.Registry.DynamicRegistration" : 1 } +clientProps = lambda process, current: { + "IceLocatorDiscovery.Timeout": 50, + "IceLocatorDiscovery.RetryCount": 5, + "IceLocatorDiscovery.Interface": "::1" if current.config.ipv6 else "127.0.0.1", + "IceLocatorDiscovery.Port": current.driver.getTestPort(99), +} + +# Filter-out the warning about invalid lookup proxy +outfilters = [ lambda x: re.sub("-! .* warning: .*failed to lookup locator.*\n", "", x), + lambda x: re.sub("^ .*\n", "", x) ] + TestSuite(__name__, [ IceGridTestCase("without deployment", application=None, icegridregistry=[IceGridRegistryMaster(props=registryProps), IceGridRegistrySlave(1, props=registryProps), IceGridRegistrySlave(2, props=registryProps)], - client=ClientServerTestCase(client=IceGridClient(), server=IceGridServer(props=serverProps))), + client=ClientServerTestCase(client=IceGridClient(props=clientProps, outfilters=outfilters), + server=IceGridServer(props=serverProps))), IceGridTestCase("with deployment", client=IceGridClient(args=["--with-deploy"])) ], multihost=False) -- cgit v1.2.3