def test_filter_services_all(self, service_enabled): service_enabled.return_value = True self.test_config.set('enabled-services', 'scheduler,volume') self.assertEqual( cinder_utils.filter_services( ['cinder-api', 'cinder-volume', 'haproxy']), ['cinder-api', 'cinder-volume', 'haproxy'])
def test_filter_services_selective(self, service_enabled): service_enabled.side_effect = self.svc_enabled self.test_config.set('enabled-services', 'scheduler,volume') self.assertEqual( cinder_utils.filter_services( ['cinder-api', 'cinder-volume', 'haproxy']), ['cinder-volume', 'haproxy'])
def test_filter_services_all(self, service_enabled): service_enabled.return_value = True self.test_config.set('enabled-services', 'scheduler,volume') self.assertEqual( cinder_utils.filter_services(['cinder-api', 'cinder-volume', 'haproxy']), ['cinder-api', 'cinder-volume', 'haproxy'] )
def test_filter_services_selective(self, service_enabled): service_enabled.side_effect = self.svc_enabled self.test_config.set('enabled-services', 'scheduler,volume') self.assertEqual( cinder_utils.filter_services(['cinder-api', 'cinder-volume', 'haproxy']), ['cinder-volume', 'haproxy'] )