From ce45a47dab9200841244daabf914096b8a75db7a Mon Sep 17 00:00:00 2001 From: Edin Sarajlic Date: Thu, 19 Sep 2019 16:32:01 +1000 Subject: [PATCH] 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 --- .../charm_tests/rabbitmq_server/tests.py | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/zaza/openstack/charm_tests/rabbitmq_server/tests.py b/zaza/openstack/charm_tests/rabbitmq_server/tests.py index dae8009..b13f186 100644 --- a/zaza/openstack/charm_tests/rabbitmq_server/tests.py +++ b/zaza/openstack/charm_tests/rabbitmq_server/tests.py @@ -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 '