From a091a5abd7a154644bb5d5ab80b40334e403e5c1 Mon Sep 17 00:00:00 2001 From: David Ames Date: Fri, 18 Aug 2017 16:31:24 -0700 Subject: [PATCH] Ensure SSL gets setup As a part of the dualstack work it was discovered SSL was not getting setup for aodh. Ensure that it does. Change-Id: Ia4051b11dbf9cc09c730cc0c3b9dcc4867df8a7a --- src/reactive/aodh_handlers.py | 1 + unit_tests/test_aodh_handlers.py | 1 + 2 files changed, 2 insertions(+) diff --git a/src/reactive/aodh_handlers.py b/src/reactive/aodh_handlers.py index 712ff81..9c41da2 100644 --- a/src/reactive/aodh_handlers.py +++ b/src/reactive/aodh_handlers.py @@ -57,6 +57,7 @@ def setup_database(database): @reactive.when('identity-service.connected') def setup_endpoint(keystone): aodh.setup_endpoint(keystone) + aodh.configure_ssl() aodh.assess_status() diff --git a/unit_tests/test_aodh_handlers.py b/unit_tests/test_aodh_handlers.py index df31771..d332495 100644 --- a/unit_tests/test_aodh_handlers.py +++ b/unit_tests/test_aodh_handlers.py @@ -160,6 +160,7 @@ class TestAodhHandlers(unittest.TestCase): def test_setup_endpoint(self): self.patch(handlers.aodh, 'setup_endpoint') self.patch(handlers.aodh, 'assess_status') + self.patch(handlers.aodh, 'configure_ssl') handlers.setup_endpoint('endpoint_object') self.setup_endpoint.assert_called_once_with('endpoint_object')