diff options
author | Benoit Foucher <benoit@zeroc.com> | 2017-05-10 18:54:03 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2017-05-10 18:54:03 +0200 |
commit | f0fbb296946f95b2bd94e86d72df618aadf3268c (patch) | |
tree | db0a9894acd0ff3b0c4efd7ec7dc9bc2d00d56e0 /scripts/tests/IceGrid/simple.py | |
parent | Fix slice/errorDetection test (diff) | |
download | ice-f0fbb296946f95b2bd94e86d72df618aadf3268c.tar.bz2 ice-f0fbb296946f95b2bd94e86d72df618aadf3268c.tar.xz ice-f0fbb296946f95b2bd94e86d72df618aadf3268c.zip |
Fixed ICE-7849 - Removed IceDiscovery/IceLocatorDiscovery ice_getConnection call, added IceGrid/simple C++11 test
Diffstat (limited to 'scripts/tests/IceGrid/simple.py')
-rw-r--r-- | scripts/tests/IceGrid/simple.py | 14 |
1 files changed, 13 insertions, 1 deletions
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) |