summaryrefslogtreecommitdiff
path: root/nova/tests/functional/test_aggregates.py
diff options
context:
space:
mode:
Diffstat (limited to 'nova/tests/functional/test_aggregates.py')
-rw-r--r--nova/tests/functional/test_aggregates.py16
1 files changed, 1 insertions, 15 deletions
diff --git a/nova/tests/functional/test_aggregates.py b/nova/tests/functional/test_aggregates.py
index 02115ffe90..8f8e9c8d2c 100644
--- a/nova/tests/functional/test_aggregates.py
+++ b/nova/tests/functional/test_aggregates.py
@@ -82,17 +82,6 @@ class AggregateRequestFiltersTest(
# Aggregate with neither host
self._create_aggregate('no-hosts')
- def _start_compute(self, host):
- """Start a nova compute service on the given host
-
- :param host: the name of the host that will be associated to the
- compute service.
- :return: the nova compute service object
- """
- compute = self.start_service('compute', host=host)
- self.computes[host] = compute
- return compute
-
def _create_aggregate(self, name):
agg = self.admin_api.post_aggregate({'aggregate': {'name': name}})
self.aggregates[name] = agg
@@ -766,9 +755,6 @@ class TestAggregateFiltersTogether(AggregateRequestFiltersTest):
class TestAggregateMultiTenancyIsolationFilter(
test.TestCase, integrated_helpers.InstanceHelperMixin):
- def _start_compute(self, host):
- self.start_service('compute', host=host)
-
def setUp(self):
super(TestAggregateMultiTenancyIsolationFilter, self).setUp()
# Stub out glance, placement and neutron.
@@ -787,7 +773,7 @@ class TestAggregateMultiTenancyIsolationFilter(
self.flags(enabled_filters=enabled_filters, group='filter_scheduler')
self.start_service('scheduler')
for host in ('host1', 'host2'):
- self._start_compute(host)
+ self.start_service('compute', host=host)
def test_aggregate_multitenancy_isolation_filter(self):
"""Tests common scenarios with the AggregateMultiTenancyIsolation