[Tempest] fix negative tests on old API versions

Currently, these tests rely on an arbitrary chosen version, without checking
if the installation supports it. This results in failures on older installations.

Change these tests to not request any version, thus using the minimum available one.

Change-Id: I624fbad36d25328b6eb6c38a9a5fb5837e6751d4
This commit is contained in:
Dmitry Tantsur 2017-08-01 14:29:10 +02:00
parent 9ea3c692e2
commit da89a414e0
2 changed files with 0 additions and 13 deletions

View File

@ -249,14 +249,8 @@ class TestNodesResourceClass(base.BaseBaremetalTest):
class TestNodesResourceClassOldApi(base.BaseBaremetalTest):
old_microversion = '1.20'
def setUp(self):
super(TestNodesResourceClassOldApi, self).setUp()
self.useFixture(
api_microversion_fixture.APIMicroversionFixture(
TestNodesResourceClassOldApi.old_microversion)
)
_, self.chassis = self.create_chassis()
_, self.node = self.create_node(self.chassis['uuid'])

View File

@ -343,15 +343,8 @@ class TestPortsNegative(base.BaseBaremetalTest):
class TestPortsWithPhysicalNetworkOldAPI(base.BaseBaremetalTest):
"""Negative tests for ports with physical network information."""
old_microversion = '1.33'
def setUp(self):
super(TestPortsWithPhysicalNetworkOldAPI, self).setUp()
self.useFixture(
api_microversion_fixture.APIMicroversionFixture(
TestPortsWithPhysicalNetworkOldAPI.old_microversion)
)
_, self.chassis = self.create_chassis()
_, self.node = self.create_node(self.chassis['uuid'])