]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Re-enable a lot of cinder scheduler tests
authorMichael Kerrin <michael.kerrin@hp.com>
Wed, 14 Aug 2013 10:16:42 +0000 (10:16 +0000)
committerMichael Kerrin <michael.kerrin@hp.com>
Wed, 21 Aug 2013 12:14:59 +0000 (12:14 +0000)
commit998bee4a5da75a9eb39b6d3bdc6a96791fb6d8aa
tree5d8bb3b069a037c58a08093a090e20247925c6f8
parentd2b48cd96db32668876c0d3e9518653f09d7cacb
Re-enable a lot of cinder scheduler tests

This highlight and fixes a NoneType exception in the schedulers
_get_weighted_candidates method

This was originally added to get around the fact that the filter tests
required that cinder was correctly installed on the system. But the
is_cinder_installed condition always returning False and this hid
problems of old packages been installed in our system. Also
930f5891b0815e1b49b9b2cc840e0c24b2796e84 added the setup.py automatically
to run_tests.sh so we can remove this.

See https://review.openstack.org/#/c/20213/ for history.

Fixes bug: 1213226

Change-Id: I86fee802c0543355471ddbd712e52ccec750cea0
cinder/scheduler/filter_scheduler.py
cinder/tests/scheduler/fakes.py
cinder/tests/scheduler/test_capacity_weigher.py
cinder/tests/scheduler/test_filter_scheduler.py
cinder/tests/scheduler/test_host_filters.py
cinder/tests/scheduler/test_host_manager.py
cinder/tests/utils.py