Commit Graph

32 Commits

Author SHA1 Message Date
Chandan Kumar 75511e3a85 Refactored cinder tempest tests to cinder_tempest_plugin
* As per the current codebase of cinder tempest plugin, it is getting
  dumped in the cinder/tests and the package name is setup.cfg is
  cinder_tempest_plugin which does not exists. So i refactored to
  give a proper tempest plugin shape.

Change-Id: Ia78ea53a99923844f40fb4e9fe22ec0da4b0c335
2018-01-22 12:53:28 +05:30
ghanshyam dae4b6df5f Cinder Tempest plugin tests: Switch to stable interface
All the cinder tempest plugin tests are inherited from tempest/api/volume/base.py
which is not stable class and can be changed anytime by tempest.

One recent case where some changes in base class on tempest side could
have break the cinder tests-
 http://logs.openstack.org/07/522707/3/check/legacy-tempest-dsvm-full-devstack-plugin-ceph/a92cd60/logs/testr_results.html.gz

This commit switch cinder tests to use test.py which is stable interface
for plugin and create a base class with commonly used function & variable.

Change-Id: I0edda1fa23aed0b3d25691d5f4440a7234decc9a
Closes-Bug: #1734821
2018-01-12 07:50:54 +00:00
Zuul d93e72ab07 Merge "Clean up some initial repo creation boilerplate" 2018-01-04 17:17:08 +00:00
Sean McGinnis 44fed344d1 Clean up some initial repo creation boilerplate
Minor cleanup of things not needed for our tempest plugin.

Change-Id: Ib309cb1f87211e82eae0d27fa2464ec13a9deca6
Needed-by: I5ff95ca13f02ed6e0afb35f0d6bb5c36d4111f5a
Implements: blueprint goal-split-tempest-plugin
2017-12-20 17:10:45 +00:00
Zuul f1e560a881 Merge "Switch to use new base_client.BaseClient" 2017-12-19 19:06:18 +00:00
jeremy.zhang c760d7090c Switch to use new base_client.BaseClient
Class 'tempest.lib.services.volume.v3.base_client.BaseClient' has moved
to 'tempest.lib.services.volume.base_client.BaseClient' in version Pike
[1] and will be removed in a future version.

[1] I645ae35daebd924c4c4523163e5419cc050bb0ed

Change-Id: I4bcc9e2c7b6fd0096dc9c8f679ef680ea0d7bbbf
2017-12-17 15:17:28 +08:00
jeremy.zhang a9c66f83c8 Add skip check for volume revert feature
Volume revert is a new feature added in microversion 3.40, and now not all
storage backend drivers have supported this feature. So it is necessary to
add a skip check for it in Tempest tests.

Change-Id: Icbd108f62f5b308e419843b03af20c8fe1278b24
2017-12-17 15:16:06 +08:00
Vu Cong Tuan 3d3f57f5c8 Replace the usage of some aliases in tempest
In tempest, following aliases have been moved in version Pike
and will be removed in version Queens:ad
* manager > os_primary [1]
* admin_manager > os_admin [2]
* os_adm > os_admin [3]
* os > os_primary [4]
* alt_manager > os_alt [5]

[1] https://review.openstack.org/#/c/468036/
[2] https://review.openstack.org/#/c/467852/
[3] https://review.openstack.org/#/c/467605/
[4] https://review.openstack.org/#/c/466991/
[5] https://review.openstack.org/#/c/457555/

Change-Id: Ie3b93dd2cf457a5cb42a53eadc9f9fd5cec1f118
2017-12-01 16:40:26 -06:00
jolie 389349c35d Remove SCREEN_LOGDIR from devstack install setting
Screen support has been completely removed from devstack.
So we should remove this setting.

Change-Id: I65da9c0ead5b437338af55c6b95bf88a8295b08f
2017-12-01 16:38:54 -06:00
yanghuichan 7006aa8125 Fix wrong links in Cinder
Some docs links have changed.
We should update the wrong links in our codes.

Change-Id: I5046be23703192ed6fad805355c8c50b9b4a71c8
2017-12-01 16:34:28 -06:00
Eric Harney b4e0dab36a Fix tempest test revet_client typo
TrivialFix

Change-Id: Ib4a0c50f699edb1cc2ea669ac711eb2f537be417
2017-12-01 16:28:22 -06:00
TommyLike 589ca69a20 Tempest for revert-to-snapshot
Added tempest testcases for revert-to-snapshot feature.

Depends-On: 16518c3b293561a2e9f4fa42a5247345ebd1e2b3
Change-Id: I97a9241ce53b144c30bc16d65dc8cf6e3f679743
2017-06-27 22:38:31 +00:00
Jenkins f5b4f473cb Merge "cleanup: remove DEVSTACK_CINDER_SECURE_DELETE" 2017-06-05 14:04:48 +00:00
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
2017-06-05 14:44:09 +03:00
Nicholas Jones fe3a19e2ef Remove obsolete Liberty code
Addressing #TODO tag, Liberty has been EOL for several months now.

Change-Id: I725449025915d98d81c8363d367562f932fe7fd2
2017-04-20 09:25:44 -05:00
Jenkins 28f3904030 Merge "Don't use tempest special_fields" 2017-03-27 20:04:36 +00:00
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
2017-03-24 15:24:39 -04:00
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
2017-03-22 12:01:18 +05:30
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
2017-03-07 12:24:30 -08:00
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
2017-03-06 18:54:24 -08:00
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
2017-02-27 14:57:30 +00:00
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
2017-01-27 06:27:41 +00:00
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
2017-01-24 16:37:12 +00:00
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
2016-12-01 07:59:01 +00:00
Cady_Chen 0d2835b350 Remove logging import unused
removes logging import unused

Change-Id: I5c1f23dcb32e89fcbd25f74dcde8e99ad337737b
2016-10-20 16:35:50 +08:00
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
2016-09-26 14:02:43 -04:00
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
2016-09-06 08:33:47 -05:00
Jenkins d5eab1010c Merge "Add tempest tests for Consistency Groups" 2016-08-30 22:18:24 +00:00
zhufl ae1be426de Remove unused config.CONF
This is to remove unused config.CONF to keep code clean.

Change-Id: I6e8d19ec06e7df84b2bbd86dd3b99b4489402ddd
2016-08-30 10:01:46 +08:00
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>
2016-08-29 11:23:51 -07:00
Eric Harney f3033f198f tempest: Add Unicode volume name test
Create and view a volume with Unicode characters
in the name.

Change-Id: I0c49814a98921d9743f74a6fc0b0b0044473c398
2016-06-22 15:45:52 +00:00
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
2016-05-03 17:55:20 +00:00