578
578
@patch('charmhelpers.core.host.service_start')
579
579
@patch('helpers.status_set')
580
580
@patch('helpers.actual_seed_ips')
581
582
@patch('relations.StorageRelation.needs_remount')
582
583
@patch('helpers.is_bootstrapped')
583
584
@patch('helpers.is_cassandra_running')
584
585
@patch('helpers.is_decommissioned')
585
586
def test_needs_restart(self, is_decom, is_running, is_bootstrapped,
586
needs_remount, seed_ips, status_set, service_start):
587
needs_remount, seed_ips, actual_seeds,
587
589
is_decom.return_value = False
588
590
is_running.return_value = True
589
591
needs_remount.return_value = False
590
592
seed_ips.return_value = set(['1.2.3.4'])
592
595
config = hookenv.config()
593
596
config['configured_seeds'] = list(sorted(seed_ips()))