Merge "Ensure upgrades are executed"

This commit is contained in:
Zuul 2022-09-16 13:55:52 +00:00 committed by Gerrit Code Review
commit 68f4872a0f
2 changed files with 4 additions and 0 deletions

View File

@ -59,6 +59,7 @@ def render_stuff(*args):
'hsm.available',
'secrets.available'))
barbican_charm.configure_ssl()
barbican_charm.upgrade_if_available(args)
barbican_charm.assess_status()
reactive.set_flag('first-render')

View File

@ -72,6 +72,9 @@ class TestBarbicanHandlers(test_utils.PatchHelper):
handlers.render_stuff('arg1', 'arg2')
barbican_charm.render_with_interfaces.assert_called_once_with(
('arg1', 'arg2', 'hsm'))
barbican_charm.configure_ssl.assert_called_once_with()
barbican_charm.upgrade_if_available.assert_called_once_with(
('arg1', 'arg2'))
barbican_charm.assess_status.assert_called_once_with()
def test_secrets_plugin_configure(self):