def test_clear_series_upgrade_notification(self, local_unit, relation_ids, relation_set): local_unit.return_value = 'nova-compute/2' relation_ids.return_value = ['rid1'] utils.clear_series_upgrade_notification() relation_set.assert_called_once_with( relation_id='rid1', relation_settings={'series_upgrade_of_nova_compute_2': None})
def series_upgrade_complete(): log("Running complete series upgrade hook", "INFO") clear_unit_paused() clear_unit_upgrading() config_changed() enable_ha_services() log("Resuming unit") resume_unit() clear_series_upgrade_notification() log("Setting waiting-unit-upgrade to False", INFO) clear_waiting_unit_series_upgrade()