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
This commit is contained in:
parent
b3c1b3f413
commit
b10aa357c9
@ -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<id>\d+)'
|
||||
|
Loading…
Reference in New Issue
Block a user