]> review.fuel-infra Code Review - openstack-build/cinder-build.git/commit
Add the service_state into test_schedule_happy_day.
authorVincent Hou <sbhou@cn.ibm.com>
Thu, 23 May 2013 11:54:36 +0000 (19:54 +0800)
committerVincent Hou <sbhou@cn.ibm.com>
Thu, 23 May 2013 12:38:14 +0000 (20:38 +0800)
commit561520447de9b89db7f052e31fc9d5f7d416b5dc
tree6594a1cb4eefb504c04d981b45faf7d47dba0e8a
parentb6b43b717040f40d3eb35fa46ff14f56142bf1f8
Add the service_state into test_schedule_happy_day.

Since the fake filter scheduler does not update the capabilities, the sevice
states remains empty. To avoid the None value for free_capacity_gb, we set the
host_manager to a fake host manager with a list of service states.

Fixed Bug 1171906.

Change-Id: I359ea6952392cc5e6b8eff513f3ca4d8161a30e3
cinder/tests/scheduler/test_filter_scheduler.py