[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:
parent
4ff2120f3b
commit
aaa429d887
@ -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'])
|
||||
|
||||
|
@ -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'])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user