Test: messages can be sent/retrieved to/from Rmq cluster with SSL on
As per the code: is there a function to determine unit's release? Otherwise, I'll just implement a generic function that run_on_unit lsb_release -cs
This commit is contained in:
@@ -138,6 +138,26 @@ class RmqTests(test_utils.OpenStackBaseTest):
|
||||
self._test_rmq_amqp_messages_all_units(units, ssl=False)
|
||||
logging.info('OK\n')
|
||||
|
||||
def test_408_rmq_amqp_messages_all_units_ssl_on(self):
|
||||
"""Send amqp messages with ssl enabled, to every rmq unit and
|
||||
check every rmq unit for messages. Standard ssl tcp port."""
|
||||
# http://pad.lv/1625044
|
||||
# TODO: exsdev: find out if there's a function to determine unit's release
|
||||
# Otherwise run_on_unit: lsb_release -cs
|
||||
# if (CompareHostReleases(self.client_series) >= 'xenial' and
|
||||
# CompareHostReleases(self.series) <= 'trusty'):
|
||||
# logging.info('SKIP')
|
||||
# logging.info('Skipping SSL tests due to client'
|
||||
# ' compatibility issues')
|
||||
# return
|
||||
logging.debug('Checking amqp message publish/get on all units '
|
||||
'(ssl on)...')
|
||||
|
||||
units = zaza.model.get_units(self.application_name)
|
||||
self._test_rmq_amqp_messages_all_units(units,
|
||||
ssl=True, port=5671)
|
||||
logging.info('OK\n')
|
||||
|
||||
def test_412_rmq_management_plugin(self):
|
||||
"""Enable and check management plugin."""
|
||||
logging.debug('Checking tcp socket connect to management plugin '
|
||||
|
||||
Reference in New Issue
Block a user