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')