Commit Graph

32 Commits

Author SHA1 Message Date
Kiran Pawar edd82c7385 Add share backup tests.
Share backup tests i.e. create/delete/get share_backups.

Change-Id: I366221702b3aa2e78bff82e6b2a543b6f6784f77
2024-02-22 09:01:46 +00:00
agireesh 541c6cd91d Fixed Share server migration test related to CIFS.
Modify "wait_for_resource_status" method so that we can pass the timeout
parameter from test cases and modify the test cases as per lib changes.

Change-Id: Id67589bf2d2094355003a16e3379867ba81bfb6b
2023-11-06 21:54:07 +05:30
haixin 1227546e7c Add share transfer test.
Partially-Implements: blueprint transfer-share-between-project

Change-Id: I74f0a079edb59e376d045fe9e9fd781acd70249d
2023-09-21 09:06:06 +08:00
kpdev 2521fbf86a Add tests replica create with 'share-network' option.
This patch update positive and negative tests using the
share replica create API. For version >= 2.72.

Partial-Bug: #1925486
Depends-On: I9049dcd418fbb16d663ab8ed27b90c765fafc5d3
Change-Id: I76175e33f506e35112ab9e86724caa3aea8f546d
2023-01-27 08:34:45 +00:00
Zuul 5203643c24 Merge "Fix NoSuchOptError wrt CONF.validation.ssh_key_type" 2022-03-21 13:39:42 +00:00
Goutham Pacha Ravi 35b2bf1425 Fix NoSuchOptError wrt CONF.validation.ssh_key_type
This option isn't available in older versions of tempest,
since manila-tempest-plugin is branchless, we will need to
handle this situation gracefully.

Currently, all scenario tests with stable/train are failing.
Sample failure: https://paste.opendev.org/show/b9HiHJHTNbtL1z6Emnpe/

Change-Id: I36d5b5a32f27065c42e31ff231c55fc16bf18fda
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2022-03-17 00:53:45 +05:30
Zuul 822cba5b0c Merge "Add functional tests for add multiple subnets feature" 2022-03-16 19:22:11 +00:00
Andre c1a3c0e54e Add functional tests for add multiple subnets feature
This change adds negative and positive functional tests
for the new feature add multiple subnets per az. Older
functional tests impacted by the feature are fixed. Finally,
the new flags `run_share_server_multiple_subnets_tests` and
`run_network_allocation_update_tests` are added and configured
in the community jobs for Dummy DHSS=True and Container Driver.

Partially-Implements: blueprint multiple-share-network-subnets
Change-Id: I99547e1873646fb1494a454f67b14c7293342beb
2022-03-10 09:09:27 -03:00
Zuul 669e92c68e Merge "Add support to chose ssh key type" 2022-03-02 20:06:06 +00:00
silvacarloss a894bae49a Add support to chose ssh key type
Tempest will always use rsa keys. This change adds
the possibility to the admins to set their preferred
ssh key type via config file.

Change-Id: I19ed529a1b55c75e8f48a52edc9095be97a485a5
2022-02-23 12:04:26 -03:00
haixin 1c5e68da5e API2.69,Add tests for manila recycle bin.
update micversion to 2.69

Depends-On: Ic838eec5fea890be6513514053329b1d2d86b3ba
Partially-Implements: blueprint manila-share-support-recycle-bin
Change-Id: I1eaaa0eda12690b097a7e65170064c0935259f4c
2022-02-08 14:09:43 +08:00
haixin 4889581976 Remove all usage of six library
Replace six with Python 3 style code.

Change-Id: I724eba28d1a88317655f9cb7da94716772cd01ab
2021-12-09 16:50:57 +08:00
lkuchlan 86f2432476 Enable http response extraction
This patch is a preparation for adding RBAC tests.
Currently, we only return the body without the response
in manila REST client. The response is necessary for
the testing, because we need to check the returned code
status and to compare it with the expected status.
This way we will check if the user has the right
permissions for the action.

Change-Id: If0e39afb635c469a25919770a869087bf5def561
2021-07-21 12:45:09 +03:00
lkuchlan f7fc5b6494 Consolidate waiters methods
Currently, for each resource there is a waiter method.
The code is almost the same in all waiter methods.
This patch suggests proposes to consolidate these methods.

Change-Id: I92f4628051731a9f7e05404b48a96d2ed27a855b
2021-02-19 15:17:22 +02:00
lkuchlan 540e74ac3d Moving resource waiters to a new module
Currently, resource waiters methods are placed under
service clients modules. There are three duplicated
waiters in both v1 and v2 modules:
- wait_for_share_status
- wait_for_snapshot_status
- wait_for_access_rule_status

This patch suggests to separate the waiter functions
from client modules and collect them in one place.

Change-Id: I9f0d50a325139e6067e4339533d4b01a322df7a8
2021-01-21 10:14:19 +02:00
debeltrami 0d523bb8d4 Add tests for share server migration
This patch adds new positive and negative tests for
share server migration.

Partially-implements: bp share-server-migration
Co-Authored-By: Daniel Tapia <danielarthurt@gmail.com>

Change-Id: Ice973bd2ad15bfb432e51da595b53c0480adba14
Depends-On: Ic0751027d2c3f1ef7ab0f7836baff3070a230cfd
Depends-On: I46a0cee0a4625d950f02fa7a5bf612de926451b5
Depends-On: I813801fd64d4d605c0a4fe06c7a130ad00865b6d
2020-09-10 17:46:19 +00:00
Zuul 2e0e081414 Merge "Remove experimental flag from share replication feature" 2020-09-09 15:22:10 +00:00
silvacarloss d354d672f8 Remove experimental flag from share replication feature
This patch removes the experimental flag from the tests related
to the share replication feature.

Partially-implements: bp graduate-share-replication-feature
Change-Id: I998154886a1c242359a31d1406ffed8dd6f42d52
Depends-On: Idf8af1c96df373fbcbb4024db490cb4dab42faf7
2020-08-24 19:11:23 +00:00
lkuchlan 1d1461d232 Add flake8-import-order extension to tox.ini
This package adds 3 new flake8 warnings

* ``I100``: Your import statements are in the wrong order.
* ``I101``: The names in your from import are in the wrong order.
* ``I201``: Missing newline between sections or imports.

Change-Id: I4feabcd4db583d213e0e4d414eee267b0ddb8870
2020-08-18 10:01:00 +03:00
Zuul ce66f004c8 Merge "Update shrink scenario tests" 2020-04-27 22:35:39 +00:00
danielarthurt 247b0b6979 Update shrink scenario tests
This patch updates the shrink scenario tests to handle with the
"available" or "shrinking_possible_data_loss_error" state received
from the manila share manager after a failed shrink operation when
attempt to shrink a share with a size smaller than thecurrent used
space.

Change-Id: Idf34a149e5a975d5fbced0ec78d102c5d90b87c6
Related-Bug: #1858328
2020-04-27 19:12:11 +00:00
silvacarloss 6e57568e97 Remove experimental flag from share groups feature
The share groups functionality will no longer be considered
experimental. The existent functional tests were modified to accomplish
with this feature graduation.

Change-Id: Ideba68c0481345e808f185195eea68e879155cf1
Partially-Implements: bp graduate-share-groups-feature
2020-04-22 21:44:03 +00:00
Nir Gilboa c07415d725 Scenario test: Create/shrink share and write data
Implements #5 from:
http://specs.openstack.org/openstack/manila-specs/specs/release_independent/scenario-tests.html

Change-Id: If9740b0ce3b11e1ccab5a4f77a705b0fd3015644
2019-04-06 22:45:13 +03:00
Lucio Seki 370569423e Add functional tests for manage/unmanage of shares in DHSS=True
This patch adds functional tests for managing/unmanaging
share servers, shares, and snapshots in DHSS=True.

Change-Id: I452c2a99b186f53d737cb7fbd7eabfcfd9b249d6
Partially-implements: bp manage-unmanage-with-share-servers
2019-03-06 21:42:27 -03:00
zhongjun2 ac9fbb994c Add tempest test for share access metadata
Depends-On: https://review.openstack.org/#/c/570708/
Change-Id: Ia794e1b13fec092b139c4859af48159869d6869e
Partially-implements bp: metadata-for-access-rule
2018-07-20 15:56:24 +00:00
junboli b236c24a1a Enable some off-by-default checks
Some of the available checks are disabled by default, like:
[H106] Don't put vim configuration in source files
[H203] Use assertIs(Not)None to check for None
[H904] Use ',' instead of '%', String interpolation should be
       delayed to be handled by the logging code, rather than
       being done at the point of the logging call.

Change-Id: Ie985fcf78997a86d41e40eacbb4a5ace8592a348
2017-08-03 16:13:32 +08:00
yogesh f5bc653570 Improve test coverage for share migration
- Added tests to validate the migration functionality
for a replicated share.
- Added tests to validate the extend and shrink
functionality on migrated share.
- Added tests to cover the preserve snapshot
functionality on migrated share.
- Current waiter logic in migration_progress
method of dummy driver causes every migration
test to take over 4 minutes to complete.
Therefore, updated the method to cut the
overall time in half and avoid the possible timeout.

Partially-Implements: bp ocata-migration-improvements
Change-Id: Ia7c7eb7b48b464aa670073e8c0795369bd972678
2017-02-03 23:27:34 -05:00
Andrew Kerr b843692810 [Tempest] Add functional tests for share groups feature
Add functional tempest tests to new 'share group' feature [1].

[1] I79a80a62ae4e0015d6161edc2b93fd1f9ba69537

Co-Authored-By: Andrew Kerr <andrew.kerr@netapp.com>
Co-Authored-By: Valeriy Ponomaryov <vponomaryov@mirantis.com>
Partially-implements-blueprint: manila-share-groups
Depends-On: I8e29baed62355fc31caeec9c7a66eaebfcbdf184
Change-Id: I820eb959082995d961b1be992e4b2d1d1a985c1c
2017-01-23 19:30:33 +00:00
Clinton Knight 7f16b8c0a9 Implement share revert to snapshot
This commit adds the ability for Manila to revert a
share to the latest available snapshot.

The feature is implemented in the LVM driver, for
testing purposes.

APIImpact
DocImpact
Co-Authored-By: Ben Swartzlander <ben@swartzlander.org>
Co-Authored-By: Andrew Kerr <andrew.kerr@netapp.com>
Implements: blueprint manila-share-revert-to-snapshot
Change-Id: Id497e13070e0003db2db951526a52de6c2182cca
2017-01-17 15:06:01 -05:00
Daniel Mellado 21d4d5c42f [Tempest] Port remote_client into Manila
Manila tempest tests make use of remote_client [1], which won't be making it
to the tempest stable interfaces, as it imports tempest code which would
result in a circular dependency.

This commit ports a reduced version of remote_client into manila code in
order to have manila's tempest plugin to drop the dependency on it.

[1] https://github.com/openstack/tempest/blob/master/tempest/common/utils/linux/remote_client.py

Partially-Implements: bp/tempest-no-deps

Change-Id: I97a8c57adce9cd541766cc1a2f21ca9ceb92efe9
2016-11-17 09:30:10 -06:00
Rodrigo Barbieri c9abf28dcc Fix Share Migration improper behavior for drivers
Tempest tests were not appropriate for driver-assisted migration,
so this was fixed.

Also, improved docstrings and fixed workflow for drivers when
implementing 2-phase migration to be accurate with tempest and
handle AZs, which were previously locked to the source share's
AZ.

Driver-assisted migration now creates an additional
share instance to better handle and support driver methods.

Updated allow_access and deny_access APIs to allow users to mount
migrating shares before issuing 'migration-complete'.

APIImpact

Closes-bug: #1594922
Change-Id: If4bfaf7e9d963b83c13a6fea241c2eda14f7f409
2016-08-30 08:30:21 -03:00
Yogesh bdb8810c8e Add tempest tests for Share Replication
By default, these tests are disabled; 3rd party CI systems
should enable these tests through the
RUN_MANILA_REPLICATION_TESTS environment variable
if their driver supports share replication.

Partially implements: blueprint manila-share-replication
Co-Authored-By: Goutham Pacha Ravi <gouthamr@netapp.com>
Co-Authored-By: Andrew Kerr <andrew.kerr@netapp.com>

Change-Id: Idaf3c61600337cc30568b982dfb23948209c1d6e
2016-03-12 02:38:18 +00:00