Ensure upgrades are executed

Prior to this change, big bang upgrades were not being run
when openstack-origin was updated to a new release.

Closes-Bug: #1979553
Change-Id: I3a9d0211bede8db43cd5ae8e0db51736155282f6
This commit is contained in:
Corey Bryant 2022-06-22 16:30:50 +00:00
parent 567e457800
commit 6d73c8263f
2 changed files with 4 additions and 0 deletions

View File

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

View File

@ -72,6 +72,9 @@ class TestBarbicanHandlers(test_utils.PatchHelper):
handlers.render_stuff('arg1', 'arg2') handlers.render_stuff('arg1', 'arg2')
barbican_charm.render_with_interfaces.assert_called_once_with( barbican_charm.render_with_interfaces.assert_called_once_with(
('arg1', 'arg2', 'hsm')) ('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() barbican_charm.assess_status.assert_called_once_with()
def test_secrets_plugin_configure(self): def test_secrets_plugin_configure(self):