Commit Graph

13 Commits (0d601649793ff1bd138a6c949cd3301d6b580a50)

Author SHA1 Message Date
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