From 28a63747a8be182cc7a97c8498f80204cfc4f5ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mert=20K=C4=B1rp=C4=B1c=C4=B1?= Date: Sun, 19 Jun 2022 22:33:14 +0000 Subject: [PATCH] mysql: add test for cluster restart on group replication cache size option MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mert Kırpıcı --- zaza/openstack/charm_tests/mysql/tests.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/zaza/openstack/charm_tests/mysql/tests.py b/zaza/openstack/charm_tests/mysql/tests.py index f040a87..eb379ff 100644 --- a/zaza/openstack/charm_tests/mysql/tests.py +++ b/zaza/openstack/charm_tests/mysql/tests.py @@ -548,6 +548,24 @@ class MySQLInnoDBClusterTests(MySQLCommonTests): .format(_key, _value, action.data)) logging.info("Passed set cluster option action test.") + def test_911_restart_after_group_replication_cache_set(self): + """Restart after group_replication_message_cache_size is set. + + Check the cluster is up and running after the + group_replication_message_cache_size config option is set. + """ + option = 'group-replication-message-cache-size' + default = '' + alternate = '512M' + self.restart_on_changed( + self.conf_file, + {option: default}, + {option: alternate}, + {}, + {}, + self.services + ) + class MySQLInnoDBClusterColdStartTest(MySQLBaseTest): """Percona Cluster cold start tests."""