Commit Graph

103 Commits

Author SHA1 Message Date
agireesh 077fd3d198 Bump test microversion and fix backup test
We added new field "backup_type" in share-backups API
in 2.85.

Change-Id: Iaaf3c3914089ad0d27b61a524f14353cae35c4d5
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2024-04-11 16:38:06 -07:00
Zuul 1687dd6ef6 Merge "Add access rules restriction tests" 2024-03-13 16:16:42 +00:00
silvacarloss d10819b89b Add access rules restriction tests
Adds new test cases and updates current test cases for access allow
and deny APIs. Such APIs now allow users to restrict the visibility
of some fields during the access creation, or even restricting the
deletion of access rules.

Depends-On: https://review.opendev.org/c/openstack/manila/+/887725
Change-Id: If0f7655dc6c11c6c12eeb76bd1cc853466235cca
2024-03-12 14:48:03 -03:00
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
lkuchlan 192d408d70 Optimize the dd command to improve performance
Use if=/dev/zero: Instead of reading from /dev/urandom,
which is slow for generating random data, use /dev/zero
to write zeros to the disk. Zeros are generated much faster.
Omit conv=fsync: The conv=fsync option forces dd to
synchronize the data after each write, which can be slow for
large writes.

Change-Id: Id845c60c39072a03171fa5906461eb254c2736a7
2023-10-18 14:20:08 +00:00
Goutham Pacha Ravi 646fcd2e23 Test resource locks
Add API tests for the resource locks APIs

Change-Id: Idf71e236b1b8a2558bb4ad3de1018fa33b41877f
Partially-implements: bp/allow-locking-shares-against-deletion
Depends-On: I146bc09e4e8a39797e22458ff6860346e11e592e
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2023-08-21 16:52:44 -07:00
Kiran Pawar e46e2a6e41 Ignore replicas in error state during allow/deny access.
Allow/deny access will be blocked only if share or its replica will be
in invalid state i.e. transitional states. Error state will be ignored.

Related-bug: #1965561
Change-Id: I180061a50fec8a9e76ef7ceb2787239ff82a2e12
Depends-on: Id23d04f8d18a0e30b511c4d501a1910f2f2b4ca6
2023-01-19 14:40:31 +00:00
Ashley Rodriguez c45cb4b3d2 Add tempest tests for share snapshot metadata
Adds positive and negative tests for share snapshot metadata api.
Works for microversion 2.73 and later.

Partially-implements: bp/metadata-for-share-resources
Depends-On: I91151792d033a4297557cd5f330053d78895eb78
Change-Id: I78cccc6bcd1b8d938b00467d07f3fd6edf7bfc6f
2022-11-02 12:36:14 +02:00
Kiran Pawar ee15891b5d Fix share instance show related tests..
Share instance show query need additional key 'updated_at'.

Related-Bug: #1965122
Depends-On: Ia69f3615d82e0044e3e9f81556dc8355637ef146
Change-Id: I1dbeee78c864067b8618b76a2929a112bef148e1
2022-04-06 12:39:09 +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
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
lkuchlan 2d0c8694a4 Add enforce_scope config option for Manila
Add config option to enbale the scoped token.
This option allows running Manila rbac tests.

Change-Id: Ief906f23ac5d898f993fc3c0909ff7d58c25a57a
2021-11-25 20:21:11 +02:00
kpdev 98b3e8782d Add tests for scheduler hints of share create.
Tests for both scheduler hints e.g. same_host and different_host are
added and guarded by multiple backends check. Default version updated to
2.65.

Depends-on: Ic42d8a0c1d22e77ae64e0ca014607b28fd336467
Partially implements: bp/affinity-antiaffinity-filter

Change-Id: If9c123363d71ac6bc89e743efe4dc2a00299cf5a
2021-09-14 20:33:45 +00:00
Felipe Rodrigues 6e56677099 Add run tests as thin provisioning
Some vendors might not have enough available space for testing features
that require creating huge volumes. So, this patch adds a new tempest
CONF `capability_thin_provisioned` that could be used to create volumes
as thin provisioned during the test execution.

Change-Id: I646f782c3e2be5ac799254f08a248a22cb9e0358
2021-09-03 10:29:22 -03:00
Goutham Pacha Ravi b60fddac7f Setup snapshot extra specs only if required
For legacy reasons we always included snapshot_support
and create_share_from_snapshot_support in all the
share types the tests created. These extra-specs are
no different from any other optional extra-specs in
manila, atleast since API version 2.24 (snapshot_support
was "implied"/"required" until API version 2.23). 2.24
is a really old version to support for tempest testing.

Since we always use the latest API version to create the
share types necessary, we only ever need 1 required
extra spec (driver_handles_share_servers) - lets supply
the rest only within tests that need to test snapshots
and shares from snapshots.

This patch also adds missing skip decorators for share
group tests that were testing snapshots.

Change-Id: Ifaceab574e3242e44a9cf1bea77a4be9e505d8b8
Related-Bug: #1922784
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2021-05-31 10:10:27 +03:00
haixin 9f552277ef Add tests for share size limited by share type.
Depends-on: I5ce0fabf59bfca5ebaf0be5ffe9986e2b0480295
Partially implements: blueprint share-size-limited-by-share-type

Change-Id: I14e71ccb5f8f4f1851bc023586d6c96841ad68f9
2021-03-09 11:10:41 +08:00
debeltrami b3089a7ee3 Fix share server migration tests
This patch provides small fixes to the share server migration tests.

Change-Id: I4dcd677d53d56aad544d9a7e88b8160b704c241d
2020-09-22 14:58:26 +00: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
Goutham Pacha Ravi 2b30874200 SSH over IPv4 when using a storage network
A storage network can be configured to connect
VMs in scenario tests to their shares. When
using a storage network, we don't need to force
the private network that we use to SSH to the
VM to be on a particular IP version.

We need the private network subnet to be of
a particular IP version only when there is
no storage network, and we're connecting to
shares over the same network as SSH.

Change-Id: If1d581730c42b060e74600ef2a05298921b1a3c6
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-08-31 09:51:10 -08: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
debeltrami 1753a59b43 Add security service to share networks
This patch adds dynamic security services configurations
when provided in the new manila-tempest-plugin MultiOpt.
With this patch the manila-tempest-plugin will be
able to perform tests using real security services
configurations provided by the administrator in a new
config option called 'security_service'.

Change-Id: I544d415f51cd9fa9daae0010dd9d9c5d0dde516b
Closes-Bug: #1699856
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-07-02 18:05:22 +00:00
Goutham Pacha Ravi 696a057ca2 TrivialFix: Remove unnecessary import
print_function was being imported, but
not used in the module.

Change-Id: Ie460cbe4779005e284af0652a14112c1939d4855
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-05-05 08:41:07 -07:00
andrebeltrami 3b4d4850a9 Functional tests for create share from snapshot different pools/azs
This patch adds functional tests for the feature create share
from snapshot in different pools or availability zones.

Partially-implements: bp create-share-from-snapshot-in-another-pool-or-backend

Change-Id: Iece5bc2c1aa6485f3533711baf514bb852357820
2020-04-27 16:41:32 +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
silvacarloss ca4dd9f101 Update share quota functional tests
- Updates the existent functional tests to accomplish with the two
  new quotas for share replicas.
- Add new functional tests for share replicas

Depends-On: I8ba7bc6f167c28d6c169b2187d0e1bda7cad3f69
Change-Id: I9c5df364bca666bbc32fb10b100a38f78888088a
2020-04-17 01:04:42 +00:00
haixin af6f44ad82 Add function to test user messages query by timestamp
-Updates the user messages tests to test query users messages
 by timestamp.
-Updates the negative user messages tests to test query users
 messages with invalid time format.

Depends-On: I3d94bac4304c236f275abe7ce31432b0e2384247
Change-Id: I7a048c754cb703eebee709e35d379a4c51a80b3a
2020-04-08 13:48:48 +08:00
Goutham Pacha Ravi 37ee6779e5 Add knowledge of storage network to scenario tests
In many deployments, shared file systems are exported
over a shared storage network. Typically, this shared
storage network is not reachable from within
private tenant networks. Our tests currently
have no cognizance of this topology, and expect that
shares are always exported on a network routable or
directly reachable through private tenant networks.

Add a configuration option to allow configuring the
name or UUID of a shared storage network. If specified
this network will be plugged into VMs created by the
scenario tests and access control will be on the
storage network IP, if NFS.

Change-Id: I8d8063d46284076499d868a5f9b3d13a2a78b5b0
Signed-off-by: Goutham Pacha Ravi <gouthampravi@gmail.com>
2020-03-20 16:45:43 -07:00
Douglas Viroel b7e27e7719 Adds new functional tests for share-network-subnets
This patch adds functional test for share-network-subnets and
validates the new API version 2.51

Change-Id: I60bdb493ad5766f28408a0c877f960922fe44ad0
Partially-implements: bp share-network-multiple-subnets
2019-09-20 13:33:12 -03:00
haixin 0d1d29f561 Add update share type functional tests
Depends-on: I4c7bdd601d48b40c01639b5089d4bff259a7b3af
Part-of blueprint update-share-type-name-or-description

Change-Id: Id1073a964b6d034375b74fa89e3ebb39e2c56220
2019-09-17 09:07:09 +08:00
Goutham Pacha Ravi 90c354b526 Clarify help text of network options
TrivialFix

Change-Id: I11887de48c31bc5ea4c097e36c0f0da238d613b2
2019-06-12 13:18:51 -07: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
Goutham Pacha Ravi 29eaeefbef Add tests for share type availability_zones extra-spec
These tests are skipped for API versions < 2.48.

Change-Id: I69ec5935c2635008af8fcf5de841ee498940e978
Partially-implements: bp share-type-supported-azs
Depends-On: https://review.openstack.org/#/c/633155/
2019-02-08 22:50:13 +00:00
Goutham Pacha Ravi fd6314dfbd Add tests for export location changes in APIv 2.47
- Share export locations API from version 2.47
  will not supply export locations of non-active
  secondary replicas.
- New APIs GET
  /share-replicas/{share_replica_id}/export-locations and
  /share-replicas/{share_replica_id}/export-locations/{export_id}
  provide replica export locations at tenant level by virtue
  of default policy and provide necessary information
  for tenant consumption.

Depends-On: https://review.openstack.org/#/c/628069/
Change-Id: I64dd04c9fa8a429e568e219aac175d43c8c57ec7
Implements: bp export-locations-az
2019-02-08 10:57:01 -08:00
junboli 5dd4b582f4 Test is_default for share type and share group type
The share type and share group type APIs in version 2.46
returns is_default key, this patch is to test this featue.

Depends-On: https://review.openstack.org/#/c/557206/
Change-Id: I68f7bea991fb39c4667031b0125470936a28dc9f
Partial-Bug: #1743941
2018-07-24 16:49:55 +00: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
Maurice Schreiber 5ac3717d74
Add ou to security service tests
This patch complements I70fd4e0ea7898e85dff59a927b3cb086d5e408ac
by adding tests for ou parameter at security services with new
microversion 2.44.

Depends-On: I70fd4e0ea7898e85dff59a927b3cb086d5e408ac
Change-Id: I77d87c8e6f98054f2f02bc4202c14314ff321964
Partial-Bug: #1696669
2018-06-25 08:04:52 +02:00
Rodrigo Barbieri 797257e3ac Add IPv6 support to scenario tests
This patch complements I4ca727f92618998242af18908bbbda6bb5f86303
by adding IPv6 functionality to scenario tests.

Also, as described in I4ca727f92618998242af18908bbbda6bb5f86303,
this change is also adding a new test config option to override
NFS access rules.

Change-Id: Id8b005cdd429d53a75624885fe7ca795746c3ede
2018-01-24 13:37:46 +00:00
Victoria Martinez de la Cruz 6dd03d9b45 Moves test_shares_actions.py test from manila repo
Moves "Add count info in /shares and /shares/detail
response" related tempest tests.

Related change: I12c41a46140b04f26565d8934e0326480477c612

TrivialFix

Change-Id: I5d310073383787094651f12f5792a8c748781ec7
2017-12-14 15:17:00 -03:00
Raissa Sarmento ad0dc1dedd Add new tests to keep repo up to date
While the in-tree tempest plugin is not removed
from manila repo, we need to keep new changes in sync.
This is related to https://review.openstack.org/#/c/512572/

Change-Id: I48d5fcd0d783fbb9334758eaab30e720e7757919
2017-11-28 11:49:37 -03:00
Valeriy Ponomaryov 2de67360fe Add share groups and share group snapshots quotas
"Quota" APIs now will return two new following keys:

- 'share_groups'
- 'share_group_snapshots'

For user and project, but not share type.
Default values can be configured using following config options:

- 'quota_share_groups'
- 'quota_share_group_snapshots'

APIImpact
DocImpact
Implements BluePrint add-share-groups-quota
Change-Id: I397a8e886226cb22fa50abdf2a4a938bb04c655d
2017-07-26 11:32:43 +03:00
Valeriy Ponomaryov 2df1a2fdcc Add quotas per share type
With this feature it will be possible to set quotas per share type
for all existing quota resources. It is useful for deployments with
multiple backends that are accessible via different share types.

Also, fix one of existing DB migrations that hangs on PostgreSQL.

APIImpact
DocImpact
Implements blueprint support-quotas-per-share-type
Change-Id: I8472418c2eb363cf5a76c672c7fdea72f21e4f63
2017-07-19 17:29:04 +03:00
zhongjun 72974ff6a5 Enable IPv6 in manila(allow access)
Please read spec for design detail [1].

Add support to validate IPv6 based addresses
in allow access API when access type is IP.

[1] f7202a6cfe32a057f752a4e393f848f8a0211c36

APIImpact
DocImpact

Change-Id: Ica242007e77a7e21b2151e5fc32401b501d961b2
Partial-Implements: blueprint support-ipv6-access
2017-07-17 09:44:41 +08:00
Alex Meade ba8a160c34 User Messages
For quite some time, OpenStack services have wanted to be able to send
messages to API end users (by user I do not mean the operator, but the
user that is interacting with the client).

This patch implements basic user messages with the following APIs.
GET /messages
GET /messages/<message_id>
DELETE /messages/<message_id>

Implements the basic /messages resource and tempest tests
The patch is aligned with related cinder patch where possible:
I8a635a07ed6ff93ccb71df8c404c927d1ecef005

DocImpact
APIImpact

Needed-By: I5ffb840a271c518f62ee1accfd8e20a97f45594d
Needed-By: I9ce096eebda3249687268e361b7141dea4032b57
Needed-By: Ic7d25a144905a39c56ababe8bd666b01bc0d0aef

Partially-implements: blueprint user-messages
Co-Authored-By: Jan Provaznik <jprovazn@redhat.com>
Change-Id: Ia0cc524e0bfb2ca5e495e575e17e9911c746690b
2017-07-13 13:05:57 +02:00
zhongjun 4a454455e5 Add like filter
Add like filter support in ``shares``, ``snapshots``,
``share-networks``, ``share-groups`` list APIs.

APIImpact

Implements BP like-filter
Change-Id: I5fdf6d89d0b6c7fa182ddfaac60979bc6c0fc2a5
2017-07-10 14:55:41 +08:00
zhongjun 84f3e34831 Add export-location filter in share and share instance list API
Share and share instance list API will accept new query string parameter
'export_location'. It can pass path and id of export_location to
retrieve shares filtered.

APIImpact

Partly-implement: BP support-filter-share-by-export-location
Change-Id: I5fdf6d89d0b6c7fa182ddfaac60979bc6c0fc2a6
2017-06-29 18:06:21 +00:00
Valeriy Ponomaryov a43f35ef1c [Share Groups] Add two new fields to SG API object
Previous change [1] added logic for handling of availability zones with
share groups and [2] for scheduling with share group capability
to create consistent snapshots. Those two added two new DB fields
for 'share_groups' DB model, but not to API response that requires
microversion bump. So, add these fields to API and bump microversion.

Following two new fields will be available with new microversion:
- 'availability_zone_id'
- 'consistent_snapshot_support'

Also, add tempest tests to these API changes.

[1] I000adeb53fe8435465cbedc3c539e6aaae6503c5
[2] I05553c308ae40c4ddc2c6469ff1c1a3da36a87da

Partially-Implements BP manila-share-groups
Change-Id: I343d0c6f3a5c7b58d88e95dba4af984fae738954
2017-06-06 10:13:36 +00:00
Valeriy Ponomaryov 3c188930e9 [Share groups] Add scheduler filter ConsistentSnapshotFilter
That will be used for scheduling share groups based on their possibility
to create consistent snapshots.

Also apply following tempest plugin changes:
- Add new 'capability_sg_consistent_snapshot_support' tempest config
option, that will be used for creation of new share group types and used
to prove that scheduling works as expected.
- Fix some share group test attributes from 'only API involved' to
  'API and Backend are involved', because it is so indeed.

Change-Id: I05553c308ae40c4ddc2c6469ff1c1a3da36a87da
Partially-Implements BP manila-share-groups
2017-06-02 17:48:05 +03:00
yangweiwei e7e655b328 Change to share access list API
When we do manila access-list, the 'created_at' and 'updated_at' time
should be shown to the user. And then the user could determine which
is the recent access rule. As the design, the recent access-allow
rule caused the error access-status of share instance.

APIImpact
Closes-Bug: #1682795
Change-Id: Iad6070d60ec77b7de9cc9679cfa7478876084da1
2017-05-05 17:19:25 +08:00
Jenkins 674d0f8e03 Merge "Remove redundant revert-to-snapshot test option" 2017-03-18 11:25:10 +00:00