Commit Graph

32 Commits (d18594a33ef0c8d3091b2d4f3ce329ff5c79ecb2)
 

Author SHA1 Message Date
Isaac Beckman d18594a33e cleanup: remove DEVSTACK_CINDER_SECURE_DELETE
CINDER_SECURE_DELETE is deprecated in devstack as of liberty.
See:
https://review.openstack.org/#/c/421253/
https://review.openstack.org/#/c/465513/

Change-Id: I4f4c7a63b99620d63cb7866bf67522081609c12e
6 years ago
Jenkins 28f3904030 Merge "Don't use tempest special_fields" 6 years ago
Jenkins bb06cba1ef Merge "Extracted HTTP response codes to constants" 6 years ago
Eric Harney 081902fd95 Don't use tempest special_fields
This has been removed, which now causes these
tests to fail.

Tempest change: https://review.openstack.org/#/c/448869/

Change-Id: I31310dc9b3834e0bf16618db3e473f17eab2b610
6 years ago
poojajadhav 496ea7917f Extracted HTTP response codes to constants
There are several places in the source code where HTTP response
codes are used as numeric values.

Status codes 200, 202, 204, 400, 403, 404, 405 and 413 under
tests/functional, tests/tempest and tests/unit/api are replaced with
symbolic constants from six.moves.http_client thus improves code
readability. More patches will be submitted to address other status
codes.

Partial-Bug: #1520159
Change-Id: Idc4d3ee8469e7a41dda2d33f4e0629442bbbce4c
6 years ago
Jenkins 90adb67748 Merge "Switch to use stable data_utils" 6 years ago
Ken'ichi Ohmichi c322e54c31 Switch to use stable data_utils
Tempest provides stable library interfaces under tempest.lib.
This patch switches to use it for data_utils.

Change-Id: I9ec9282268adc80c947e18c34f34dc0fdd82b187
6 years ago
Jenkins 0d60164979 Merge "Switch to decorators.idempotent_id" 6 years ago
Ken'ichi Ohmichi 41be8c1685 Switch to decorators.idempotent_id
test.idempotent_id is being kept temporary to migrate
to new lib interface. Now idempotent_id is available as Tempest stable
interface decorators and all plugins tests using the old decorator
should be switched to new interface.

In future, Once all plugins are switched to new decorator Tempest
will remove the test.idempotent_id

Change-Id: Ie7789c072b8954de5821777bf3f672cdfa4bceca
Related-Bug: 1616913
6 years ago
Jenkins a569568d57 Merge "Fix internal tempest tests" 6 years ago
yogesh 20da4f35ab Fix internal tempest tests
Existing methods - wait_for_volume_status,
wait_for_snapshot_status and wait_for_backup_status
were combined into
wait_for_volume_resource_status.

This patch is intended to fix the issue occured
due to above change.

Change-Id: Iaf1fd19a3fdf50aec8aaddffdcbaf6d0466fbd35
Closes-bug:1667448
6 years ago
Jenkins 067b0eb4b5 Merge "Switch to decorators.idempotent_id" 6 years ago
ghanshyam bb0cbbb1b9 Switch to decorators.idempotent_id
test.idempotent_id is being kept temporary to migrate
to new lib interface. Now idempotent_id is available as Tempest stable
interface decorators and all plugins tests using the old decorator
should be switched to new interface.

In future, Once all plugins are switched to new decorator Tempest
will remove the test.idempotent_id

Change-Id: I6e24344a809ef397a252fe1fb002b2cad10cd5ba
Related-Bug: 1616913
6 years ago
Jenkins 9d9a091ba3 Merge "Add volume backup tempest tests" 6 years ago
Michael Dovgal 1c10d9433d Add volume backup tempest tests
Tempest tests that are added:
1) test volume snapshot backup
2) test backup create and restore to an existing volume
This test can reproduce the bug that is related.
3) test incremental backup

Co-Authored-By: Oleksii Butenko <obutenko@mirantis.com>
Related-Bug: #1335889

Change-Id: Iff857ee11ed15665315077a0ba22cf31f92efe4b
6 years ago
Jenkins ae612d59c6 Merge "Reuse already existing groups in tempest plugin" 6 years ago
Nishant Kumar 287f9ec7ca Reuse already existing groups in tempest plugin
Instead of registering new groups we can reuse already registered
groups in tempest/config.py.

Changes should be made to the following groups:

a) service_available_group - We don't need this group in plugin code
because it is already being registered in tempest code and service
availability is being checked for in the /tempest/api/volume/base.py
and the test cases in plugin code inherits this base.py

b) cinder group - Instead of registering a new cinder group for plugin
tests we can add plugin specific configuration options in the existing
volume group as the same conf object from tempest is being passed on
to the plugin

Change-Id: Ie0ca52ec389c581ca47db3e9bbb0793a2bb47fdf
Closes-Bug: #1626575
7 years ago
Jenkins 0370ebea22 Merge "Remove logging import unused" 7 years ago
Cady_Chen 0d2835b350 Remove logging import unused
removes logging import unused

Change-Id: I5c1f23dcb32e89fcbd25f74dcde8e99ad337737b
7 years ago
Jenkins 8410c75d1b Merge "Remove placeholder tempest test" 7 years ago
Eric Harney 5e42c4ed93 Remove placeholder tempest test
We don't really need this placeholder here now,
test_volume_unicode.CinderUnicodeTest is probably a
sufficient test for this role.

Change-Id: I9dd58c05d08b6bcf2d8880e7856f679f57b0849c
7 years ago
Jenkins 7a044b007b Merge "Provide volume size for tempest volume creation" 7 years ago
Sean McGinnis 7efc6d8997 Provide volume size for tempest volume creation
The tempest volume client used to provide a default volume size. This
was changed in I2a0f5841fe82ab003562749a63bc4894225699c5. Tempest tests
now need to provide a size when creating a volume using this client.

Change-Id: Id1a646cfbd11803a796205af8baa0ac783e9ec3a
Closes-bug: #1620613
7 years ago
Jenkins d5eab1010c Merge "Add tempest tests for Consistency Groups" 7 years ago
Jenkins c658b39acf Merge "Remove unused config.CONF" 7 years ago
zhufl ae1be426de Remove unused config.CONF
This is to remove unused config.CONF to keep code clean.

Change-Id: I6e8d19ec06e7df84b2bbd86dd3b99b4489402ddd
7 years ago
Patrick East 9b434d1117 Add tempest tests for Consistency Groups
These tempest tests add coverage for all the API's related to
consistency groups in Cinder. They were originally proposed
for upstream tempest in https://review.openstack.org/#/c/252213/
but were not a good fit since they aren't supported by the
reference driver. They have been modified to work as part
of the in-tree tempest plugins for Cinder now.

The tests are behind a new config option for tempest, which
in turn is part of a new config group called 'cinder'. This
was added to avoid any collisions with the 'volume-features-enabled'
or 'volume' groups already in the upstream tempest tests.

To enable them set the following in tempest.conf

[cinder]
consistency_group = True

Then make sure to run tempest with the 'all-plugin' tox environment.

Don't forget to update policy.json to allow for CG API's to be called..

Change-Id: I772ea13ca156e71620d722eee476f222a8653831
Co-Authored-By: Xing Yang <xing.yang@emc.com>
7 years ago
Jenkins 91cdf7a4aa Merge "tempest: Add Unicode volume name test" 7 years ago
Eric Harney f3033f198f tempest: Add Unicode volume name test
Create and view a volume with Unicode characters
in the name.

Change-Id: I0c49814a98921d9743f74a6fc0b0b0044473c398
7 years ago
Jenkins b0b5bd15d0 Merge "Move and rename tempest_tests to cinder/tests/tempest" 7 years ago
Chandan Kumar 6f67e37873 Move and rename tempest_tests to cinder/tests/tempest
To avoid conflicts, it needs to be done and
the subdirs 'api' and 'scenario' directly under
the cinder/tests/tempest directory

Closes-Bug: #1577016

Change-Id: I5b8d1411e0917ecb7e70eb5a6b139d75437ba032
7 years ago
Jenkins dacc36c40d Initial fork out of Nova. 11 years ago