Repository: qpid-interop-test Updated Branches: refs/heads/master 1ab3a142f -> d7ea0b7e6
NO_JIRA: small addition to check if connection properties are successfully returned in JMS messaging test. This brings this test to the same as the AMQP types test in this regard. A trivial change which terminates the test with a message instead of crashing when broker fails to return connection properties. Project: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/commit/d7ea0b7e Tree: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/tree/d7ea0b7e Diff: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/diff/d7ea0b7e Branch: refs/heads/master Commit: d7ea0b7e66446ced737ff73d2273ce0db6735174 Parents: 1ab3a14 Author: Kim van der Riet <[email protected]> Authored: Tue Feb 23 11:54:59 2016 -0500 Committer: Kim van der Riet <[email protected]> Committed: Tue Feb 23 11:54:59 2016 -0500 ---------------------------------------------------------------------- src/py/qpid-interop-test/jms/jms_message_tests.py | 3 +++ 1 file changed, 3 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-interop-test/blob/d7ea0b7e/src/py/qpid-interop-test/jms/jms_message_tests.py ---------------------------------------------------------------------- diff --git a/src/py/qpid-interop-test/jms/jms_message_tests.py b/src/py/qpid-interop-test/jms/jms_message_tests.py index 4829e62..34ceef8 100755 --- a/src/py/qpid-interop-test/jms/jms_message_tests.py +++ b/src/py/qpid-interop-test/jms/jms_message_tests.py @@ -441,6 +441,9 @@ if __name__ == '__main__': # Connect to broker to find broker type CONNECTION_PROPS = broker_properties.getBrokerProperties(ARGS.broker) + if CONNECTION_PROPS is None: + print 'ERROR: Unable to get connection properties - terminating' + exit(-1) print 'Test Broker: %s v.%s on %s' % (CONNECTION_PROPS[symbol(u'product')], CONNECTION_PROPS[symbol(u'version')], CONNECTION_PROPS[symbol(u'platform')]) --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
