Modify path for APIMicroversionFixture
The path 'tempest.api.volume.api_microversion_fixture.APIMicroversionFixture'
is deprecated and produces a deprecation warning[1] when running tests.
The deprecated path will be removed in Zed and we should use the
path 'tempest.lib.common.api_microversion_fixture.APIMicroversionFixture'
instead.
[1] 2022-04-22 14:00:28,241 843455 WARNING
[tempest.api.volume.api_microversion_fixture]
APIMicroversionFixture class is deprecated and moved to
tempest.lib.common.api_microversion_fixture.APIMicroversionFixture.
It will be removed in Z cycle.
Change-Id: Ie7f16f9671e3c2392a9f2ae1071d84915b48a85e
whoami-rajat
4 years ago
| 12 | 12 | # License for the specific language governing permissions and limitations |
| 13 | 13 | # under the License. |
| 14 | 14 | |
| 15 | from tempest.api.volume import api_microversion_fixture | |
| 16 | 15 | from tempest.common import compute |
| 17 | 16 | from tempest.common import waiters |
| 18 | 17 | from tempest import config |
| 18 | from tempest.lib.common import api_microversion_fixture | |
| 19 | 19 | from tempest.lib.common import api_version_utils |
| 20 | 20 | from tempest.lib.common.utils import data_utils |
| 21 | 21 | from tempest.lib.common.utils import test_utils |
| 57 | 57 | def setUp(self): |
| 58 | 58 | super(BaseVolumeTest, self).setUp() |
| 59 | 59 | self.useFixture(api_microversion_fixture.APIMicroversionFixture( |
| 60 | self.request_microversion)) | |
| 60 | volume_microversion=self.request_microversion)) | |
| 61 | 61 | |
| 62 | 62 | @classmethod |
| 63 | 63 | def resource_setup(cls): |