cinder/cinder/tests
Doug Hellmann 521057dd97
drop use of pkg_resources
Importing pkg_resources scans all of the installed modules for data
that won't be used. Switch to using importlib.metdata, which more
efficiently loads the metadata for a package.

Since the name of the module where importlib.metadata is found depends
on the version of python, mocking a function in the library is more
complicated. Provide a wrapper in the module that uses
importlib.metadata.version() so its tests can examine behavior using
different versions via mocks.

The distutils package in the standard library is deprecated. Use the
packaging library for parsing version strings into something that can
be compared.

Change-Id: I45d0851cdb5f241ff8dc774dc22123b410502cd9
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2020-07-26 09:16:19 -04:00
..
compliance Fix compliance tests 2020-05-11 14:46:19 -05:00
functional Default volume_type set too early 2020-06-24 17:07:38 -04:00
hacking Add hacking check for 3rd party mock 2020-04-09 15:21:12 -05:00
unit drop use of pkg_resources 2020-07-26 09:16:19 -04:00
README.rst Update the documentation link 2017-08-26 06:52:48 -07:00
__init__.py
fake_driver.py Rename volume/utils.py to volume/volume_utils.py 2019-09-09 15:00:07 -04:00
fixtures.py Stop to use the __future__ module. 2020-06-11 15:30:09 +02:00

README.rst

IMPORTANT DEFINITION OF TESTS IN CINDER

Cinder has a number of different test types, PLEASE be sure to refer to the Cinder Testing Docs to familiarize yourself with the various options before creating any new tests.

Please check Cinder-Testing.