manila/manila/tests/scheduler
Julia Varlamova 7d1c88a3cf Enable skipped tests from test_capacity_weigher.py
Some tests from  test_capacity_weigher.py were skipped:

- test_capacity_weight_multiplier1
- test_capacity_weight_multiplier2
- test_default_of_spreading_first

because of assertion error when comparing weight of the winner host
with expected value.

Fix this assertions taking into account that weihts of the hosts
are normalised during weighing, so the weight of the winner host
will be 1.0 * weight_multiplier in case of positive weight_multiplier
and 0 in other case.

Make CapacityWeigher able to redefine weight_multiplier from
BaseWeigher.

Closes-Bug: #1329718

Change-Id: I504ae7d980aa063ffddb7f2676e91da4f790e0e4
2014-06-24 17:43:24 +04:00
..
__init__.py Renamed cinder to manila. 2013-09-02 09:59:07 +03:00
fakes.py Rewrited mox tests to mock (part 2) 2014-06-17 17:55:21 +03:00
test_capacity_weigher.py Enable skipped tests from test_capacity_weigher.py 2014-06-24 17:43:24 +04:00
test_filter_scheduler.py Rewrited mox tests to mock (part 2) 2014-06-17 17:55:21 +03:00
test_host_filters.py Rewrited mox tests to mock (part 2) 2014-06-17 17:55:21 +03:00
test_host_manager.py Rewrited mox tests to mock (part 2) 2014-06-17 17:55:21 +03:00
test_rpcapi.py Removing deprecated using of flags module from project 2013-10-07 13:17:27 +03:00
test_scheduler.py Rewrited mox tests to mock (part 2) 2014-06-17 17:55:21 +03:00
test_scheduler_options.py change assertEquals to assertEqual 2014-05-15 13:19:42 +02:00