Currently ``id`` and ``volume_id`` filters are working
correctly for transfer-list command.
support for filtering by ``name`` is handled in patch
provided in Depends-On.
Since filtering by all parameters is supported by API,
we can happily add the filters option on the client for
volume transfers.
Also adds functional test for transfers.
Related-Bug: #1860100
Depends-On: https://review.opendev.org/#/c/703658/
Change-Id: I2fd3a6a7b9add65a9a21388df44efb6747065a74
Gives more time to wait resource's status to change
in functional testcases and adds default interval
to reduce query amount.
Change-Id: I2a29a2d04836fd1261d45e404341bb1aa657417b
There are some PEP8 errors that are not caught by our gate because of
the pep8 package version installed by hacking.
This patch fixes E402, W503, and F999 erors from our codebase.
Change-Id: I0b86730b1493f161645a87c3daa91ec3d774d3b1
Cinder support both v2 and v3 auth. Use v3 if possible.
In consideration of backwards compatibility, when we have
OS_PROJECT_NAME, the v2 auth should be ok because
tenant_name can be set by env[OS_PROJECT_NAME].
Change-Id: I9eed9c41a9deb5ecafa8d9e12f6d1b50d34f986d
Closes-Bug: #1588261
Since 10.0.0 release tempest-ib is deprecated now.
Cinderclient should use tempest.lib in test code
and add tempest>=11.0.0 in requirements following
global-requirements.
Closes-Bug: #1583583
Change-Id: I9d766f46eb6fff29ae9c0267a60ff2ef4bf2343e
This patch allows to use a standard approach to volumes, snapshots
and backups to avoid duplicating code.
Change-Id: I0059fcb3bb8823105a7f960a30e70036bcbded8b
Add tests for cinder volume creation and deletion
by ID and by Name.
Add test for cinder show volume output.
Add method to wait for given volume status.
Add method to check that volume deleted.
Add method to check that volume is not deleted (for negative cases).
Add method for volume deletion.
Add method to get Volume properties from CLI output.
Change-Id: I1e1f9bea2afc63e408a88e64fc1b6b6ee9f4e79b
Implements: partial blueprint cinderclient-functional-tests
Co-Authored-by: Kyrylo Romanenko <kromanenko@mirantis.com>
Parser.listing method return empty list if env doesn't have resources,
so assertTableStruct works wrong, doesn't check field names in the
output table.
This change add new assert(assertTableHeaders) to check resource
attributes.
Change-Id: Ieca67b5cc2202467527c5a2dfbd7b2f2b4d5ad8d
Closes-Bug: #1458932
With the recent update to tox 2.0.x, environment variables such as
OS_AUTH_URL are not passed by default, resulting in tests errors
mentionning Keystone authentication failures.
This patch reads credentials from the 'functional_creds.conf' config
file, like it is done in novaclient (and soon in glanceclient and
neutronclient).
Reading credentials the old way (the environment) is still possible.
Change-Id: I2ec1df481aba7a3866fc8dbc912311de02c22d11
Related-Bug: #1455102
First pass at functional tests in cinderclient. This patch
just takes some of the basic CLI tests from tempest and moves
them into the cinderclient functional tests.
These are read-only tests, and just do simple field checks
on the tables generated by the basic list commands.
Note: to run use "tox -efunctional", this requires that you
have a full cinderclient env and credentials are set. You may
be either running this locally (say in a devstack env) or
you may have a remote cloud handy that you can just source the
credentials for and run it that way.
Change-Id: I2f09a63be265d6a74cb103d80579068b9ab66bf4