summaryrefslogtreecommitdiffstats
path: root/nova/tests/scheduler
diff options
context:
space:
mode:
authorMark Washenberger <mark.washenberger@rackspace.com>2012-01-05 18:15:29 -0500
committerMark Washenberger <mark.washenberger@rackspace.com>2012-01-05 18:15:29 -0500
commit162ab4f48e573662824872da56aecbef05ba94f0 (patch)
treee636e60294b91b87d3f53f432c8582463211efe5 /nova/tests/scheduler
parentdcf5fe4d9307c0d477fb8c48df74a812244d8b97 (diff)
downloadnova-162ab4f48e573662824872da56aecbef05ba94f0.tar.gz
nova-162ab4f48e573662824872da56aecbef05ba94f0.tar.xz
nova-162ab4f48e573662824872da56aecbef05ba94f0.zip
Use instance_properties in resize.
This just makes resize behave a bit more like create, which is useful for custom filtering. Change-Id: I10ba726712d8f601f5ee97e0bb033bd7339a7a88
Diffstat (limited to 'nova/tests/scheduler')
-rw-r--r--nova/tests/scheduler/test_chance_scheduler.py4
-rw-r--r--nova/tests/scheduler/test_distributed_scheduler.py4
2 files changed, 4 insertions, 4 deletions
diff --git a/nova/tests/scheduler/test_chance_scheduler.py b/nova/tests/scheduler/test_chance_scheduler.py
index 8d4c73adb..0bb3927a2 100644
--- a/nova/tests/scheduler/test_chance_scheduler.py
+++ b/nova/tests/scheduler/test_chance_scheduler.py
@@ -30,7 +30,7 @@ class ChanceSchedulerTestCase(test.TestCase):
sched = chance.ChanceScheduler()
hosts = ['host1', 'host2', 'host3']
- request_spec = dict(original_host='host2',
+ request_spec = dict(instance_properties=dict(host='host2'),
avoid_original_host=True)
filtered = sched._filter_hosts(request_spec, hosts)
@@ -43,7 +43,7 @@ class ChanceSchedulerTestCase(test.TestCase):
sched = chance.ChanceScheduler()
hosts = ['host1', 'host2', 'host3']
- request_spec = dict(original_host='host2',
+ request_spec = dict(instance_properties=dict(host='host2'),
avoid_original_host=False)
filtered = sched._filter_hosts(request_spec, hosts)
diff --git a/nova/tests/scheduler/test_distributed_scheduler.py b/nova/tests/scheduler/test_distributed_scheduler.py
index 047c8c51a..36d2ddc5b 100644
--- a/nova/tests/scheduler/test_distributed_scheduler.py
+++ b/nova/tests/scheduler/test_distributed_scheduler.py
@@ -313,7 +313,7 @@ class DistributedSchedulerTestCase(test.TestCase):
_fake_choose_host_filters)
hosts = [('host1', '1info'), ('host2', '2info'), ('host3', '3info')]
- request_spec = dict(original_host='host2',
+ request_spec = dict(instance_properties=dict(host='host2'),
avoid_original_host=True)
filtered = sched._filter_hosts('compute', request_spec, hosts, {})
@@ -333,7 +333,7 @@ class DistributedSchedulerTestCase(test.TestCase):
_fake_choose_host_filters)
hosts = [('host1', '1info'), ('host2', '2info'), ('host3', '3info')]
- request_spec = dict(original_host='host2',
+ request_spec = dict(instance_properties=dict(host='host2'),
avoid_original_host=False)
filtered = sched._filter_hosts('compute', request_spec, hosts, {})