Set max_microversion 2.35 for nova network tests

The compute os-networks API is deprecated from the Microversion 2.36,
so we should set max_microversion = '2.35' for compute network tests.

ref: https://developer.openstack.org/api-ref/compute/#list-networks

Implements blueprint: clear-deprecated-api

Change-Id: I51d82e9856d6dc8984a4348d9e8ca86c5fe809ab
This commit is contained in:
zhufl 2018-03-29 14:36:15 +08:00
parent 4bcf7e1002
commit daba94fcad
2 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,7 @@ class NetworksTest(base.BaseV2ComputeAdminTest):
API docs:
https://developer.openstack.org/api-ref/compute/#networks-os-networks-deprecated
"""
max_microversion = '2.35'
@classmethod
def setup_clients(cls):

View File

@ -20,6 +20,8 @@ CONF = config.CONF
class ComputeNetworksTest(base.BaseV2ComputeTest):
max_microversion = '2.35'
@classmethod
def skip_checks(cls):
super(ComputeNetworksTest, cls).skip_checks()