From 1835d957a1c9a9f78c13b8cb30c2e481f0b8b476 Mon Sep 17 00:00:00 2001 From: Edin Sarajlic Date: Thu, 19 Sep 2019 16:32:16 +1000 Subject: [PATCH] Test: msgs can be sent/retrieved to/from Rmq cluster with SSL+alt port Same message as my previous commit: 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 b13f186..55f0049 100644 --- a/zaza/openstack/charm_tests/rabbitmq_server/tests.py +++ b/zaza/openstack/charm_tests/rabbitmq_server/tests.py @@ -158,6 +158,26 @@ class RmqTests(test_utils.OpenStackBaseTest): ssl=True, port=5671) logging.info('OK\n') + def test_410_rmq_amqp_messages_all_units_ssl_alt_port(self): + """Send amqp messages with ssl on, to every rmq unit and check + every rmq unit for messages. Custom 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=5999) + 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 '