~1chb1n/charms/trusty/nova-compute/backport-lp1427660

« back to all changes in this revision

Viewing changes to unit_tests/test_nova_compute_hooks.py

  • Committer: Ryan Beisner
  • Date: 2015-04-09 17:18:29 UTC
  • Revision ID: ryan.beisner@canonical.com-20150409171829-me1ox5b9w88sy45b
backport fix for bug 1427660 - librbd1

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
    'apt_update',
28
28
    'filter_installed_packages',
29
29
    'restart_on_change',
 
30
    'service_restart',
30
31
    # charmhelpers.contrib.openstack.utils
31
32
    'configure_installation_source',
32
33
    'openstack_upgrade_available',
342
343
    def test_ceph_joined(self):
343
344
        hooks.ceph_joined()
344
345
        self.apt_install.assert_called_with(['ceph-common'], fatal=True)
 
346
        self.service_restart.assert_called_with('libvirt-bin')
345
347
 
346
348
    @patch.object(hooks, 'CONFIGS')
347
349
    def test_ceph_changed_missing_relation_data(self, configs):