Deprecate the old API microversion fixture

We have moved the API microversion fixture to
tempest.lib.common.api_microversion_fixture location.

This commit deprecates the old fixture so that we can
remove them in Z cycle.

Change-Id: If38aa21a4cd99d2a5fe4a5c3b41214cd54f97f8d
This commit is contained in:
Ghanshyam Mann 2021-12-07 19:57:41 -06:00
parent 93a902072f
commit 24554b0e10
3 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,7 @@
---
deprecations:
- |
Old APIMicroversionFixture classes ``tempest.api.compute.api_microversion_fixture.APIMicroversionFixture``
and ``tempest.api.volume.api_microversion_fixture.APIMicroversionFixture``
has been deprecated for removal in favor of new location
``tempest.lib.common.api_microversion_fixture.APIMicroversionFixture``

View File

@ -13,14 +13,23 @@
# under the License.
import fixtures
from oslo_log import log as logging
from tempest.lib.services.compute import base_compute_client
LOG = logging.getLogger(__name__)
class APIMicroversionFixture(fixtures.Fixture):
def __init__(self, compute_microversion):
self.compute_microversion = compute_microversion
new_fixture = (
'tempest.lib.common.api_microversion_fixture.'
'APIMicroversionFixture')
LOG.warning("%s class is deprecated and moved to %s. It"
" will be removed in Z cycle.",
self.__class__.__name__, new_fixture)
def _setUp(self):
super(APIMicroversionFixture, self)._setUp()

View File

@ -12,14 +12,23 @@
# under the License.
import fixtures
from oslo_log import log as logging
from tempest.lib.services.volume import base_client
LOG = logging.getLogger(__name__)
class APIMicroversionFixture(fixtures.Fixture):
def __init__(self, volume_microversion):
self.volume_microversion = volume_microversion
new_fixture = (
'tempest.lib.common.api_microversion_fixture.'
'APIMicroversionFixture')
LOG.warning("%s class is deprecated and moved to %s. It"
" will be removed in Z cycle.",
self.__class__.__name__, new_fixture)
def _setUp(self):
super(APIMicroversionFixture, self)._setUp()