Merge "Deprecate the old API microversion fixture"

This commit is contained in:
Zuul 2021-12-14 04:40:41 +00:00 committed by Gerrit Code Review
commit 24864bac27
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()