From 93ae549b7100dac2543fd5abc9ff66406e326913 Mon Sep 17 00:00:00 2001 From: Ade Lee Date: Wed, 9 Aug 2023 15:21:44 -0400 Subject: [PATCH] allow skip horizon haproxy test The horizon haproxy test currently fails because the connection between haproxy and horizon is currently broken. It should be fixed by https://review.opendev.org/c/openstack/tripleo-heat-templates/+/883129 or similar. Until it is fixed, add an option to skip haproxy tests for specified services (in this case, horizon) Change-Id: I598dfaafdd8e3e2b8e29b9463c5f4e1287ea68b9 --- novajoin_tempest_plugin/config.py | 3 +++ novajoin_tempest_plugin/tests/scenario/test_tripleo_tls.py | 3 +++ 2 files changed, 6 insertions(+) diff --git a/novajoin_tempest_plugin/config.py b/novajoin_tempest_plugin/config.py index 5c6d82e..111a8ab 100644 --- a/novajoin_tempest_plugin/config.py +++ b/novajoin_tempest_plugin/config.py @@ -55,6 +55,9 @@ NovajoinGroup = [ cfg.ListOpt('tripleo_exclude_cert_tags', default=[], help='List of tags to exclude from certmonger checks'), + cfg.ListOpt('tripleo_exclude_haproxy_services', + default=[], + help='List of services to exclude from haproxy checks'), cfg.StrOpt('tripleo_undercloud', default='undercloud', help='Undercloud short host name'), diff --git a/novajoin_tempest_plugin/tests/scenario/test_tripleo_tls.py b/novajoin_tempest_plugin/tests/scenario/test_tripleo_tls.py index c6ee3f7..8622221 100644 --- a/novajoin_tempest_plugin/tests/scenario/test_tripleo_tls.py +++ b/novajoin_tempest_plugin/tests/scenario/test_tripleo_tls.py @@ -80,6 +80,9 @@ class TripleOTLSTest(novajoin_manager.NovajoinScenarioTest): services = self.parse_haproxy_cfg(haproxy) for tag, params in services.items(): + if tag in CONF.novajoin.tripleo_exclude_haproxy_services: + print("Skipping {service}".format(service=tag)) + continue print("*** Testing {service}".format(service=tag)) for param in params: print(param)