From b10aa357c9627815a205754b657751943e6f9922 Mon Sep 17 00:00:00 2001 From: ghanshyam Date: Wed, 8 Jun 2016 12:46:15 +0900 Subject: [PATCH] Remove v2 extension setting from functional tests Now v2 API legacy code has been removed, functional tests do not need to set the v2 extensions. This patch removes the extension setting on osapi_compute_extension flag. Partially implements blueprint remove-legacy-v2-api-code Change-Id: If5db4b141702fa94777fc5706dec6c3fb6c9c594 --- .../functional/api_sample_tests/test_aggregates.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/nova/tests/functional/api_sample_tests/test_aggregates.py b/nova/tests/functional/api_sample_tests/test_aggregates.py index da3d0de56..43df18c57 100644 --- a/nova/tests/functional/api_sample_tests/test_aggregates.py +++ b/nova/tests/functional/api_sample_tests/test_aggregates.py @@ -13,23 +13,13 @@ # License for the specific language governing permissions and limitations # under the License. -import nova.conf from nova.tests.functional.api_sample_tests import api_sample_base -CONF = nova.conf.CONF - class AggregatesSampleJsonTest(api_sample_base.ApiSampleTestBaseV21): ADMIN_API = True extension_name = "os-aggregates" - def _get_flags(self): - f = super(AggregatesSampleJsonTest, self)._get_flags() - f['osapi_compute_extension'] = CONF.osapi_compute_extension[:] - f['osapi_compute_extension'].append( - 'nova.api.openstack.compute.contrib.aggregates.Aggregates') - return f - def test_aggregate_create(self): subs = { "aggregate_id": '(?P\d+)'