summaryrefslogtreecommitdiffstats
path: root/nova/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-08-21 23:54:43 +0000
committerGerrit Code Review <review@openstack.org>2012-08-21 23:54:43 +0000
commit962efab370f168bb077447eeb15d43063c8b2272 (patch)
treefc163c29382456a0c7f2a13a0956d163170844e1 /nova/tests
parent0b48446631a4739572d7d89fe3cf7e0a944589e9 (diff)
parentada550098ac874cdd3ca7c6637421edf6c7f7163 (diff)
Merge "Debugged extra_specs_ops.py"
Diffstat (limited to 'nova/tests')
-rw-r--r--nova/tests/scheduler/test_host_filters.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/nova/tests/scheduler/test_host_filters.py b/nova/tests/scheduler/test_host_filters.py
index a25e9afae..5e42fed6f 100644
--- a/nova/tests/scheduler/test_host_filters.py
+++ b/nova/tests/scheduler/test_host_filters.py
@@ -688,24 +688,48 @@ class HostFiltersTestCase(test.TestCase):
especs={'opt1': '<in> 12311321'},
passes=True)
+ def test_compute_filter_passes_extra_specs_with_op_in3(self):
+ self._do_test_compute_filter_extra_specs(
+ ecaps={'opt1': '12311321'},
+ especs={'opt1': '<in> 12311321 <in>'},
+ passes=True)
+
def test_compute_filter_fails_extra_specs_with_op_in(self):
self._do_test_compute_filter_extra_specs(
ecaps={'opt1': '12310321'},
especs={'opt1': '<in> 11'},
passes=False)
+ def test_compute_filter_fails_extra_specs_with_op_in2(self):
+ self._do_test_compute_filter_extra_specs(
+ ecaps={'opt1': '12310321'},
+ especs={'opt1': '<in> 11 <in>'},
+ passes=False)
+
def test_compute_filter_passes_extra_specs_with_op_or(self):
self._do_test_compute_filter_extra_specs(
ecaps={'opt1': '12'},
especs={'opt1': '<or> 11 <or> 12'},
passes=True)
+ def test_compute_filter_passes_extra_specs_with_op_or2(self):
+ self._do_test_compute_filter_extra_specs(
+ ecaps={'opt1': '12'},
+ especs={'opt1': '<or> 11 <or> 12 <or>'},
+ passes=True)
+
def test_compute_filter_fails_extra_specs_with_op_or(self):
self._do_test_compute_filter_extra_specs(
ecaps={'opt1': '13'},
especs={'opt1': '<or> 11 <or> 12'},
passes=False)
+ def test_compute_filter_fails_extra_specs_with_op_or2(self):
+ self._do_test_compute_filter_extra_specs(
+ ecaps={'opt1': '13'},
+ especs={'opt1': '<or> 11 <or> 12 <or>'},
+ passes=False)
+
def test_compute_filter_passes_extra_specs_with_op_le(self):
self._do_test_compute_filter_extra_specs(
ecaps={'opt1': 2, 'opt2': 2},