summaryrefslogtreecommitdiffstats
path: root/tests/functional/heketi
Commit message (Collapse)AuthorAgeFilesLines
* Modify and move 'topology_volumes_with_bricks' func to 'heketi_ops.py'Sri Vignesh2019-11-211-39/+22
| | | | | | | | Move 'topology_volumes_with_bricks' func to the "heketi_ops" module to be able to use it in other test cases. Change-Id: I7cca884a4f3fb34ec15bb947d3c39d9226e294d0 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add test for inconsistencies in targetcli when BHV is downAditya Ramteke2019-11-191-1/+86
| | | | | | | Confirm no inconsistencies occur in targetcli when block devices are created with one block hosting volume down. Change-Id: I2a755ef2a88c6e6ca5326be3787ac07c0fb7db26
* Add test case to automate heketi add node to a invalid clustervamahaja2019-11-191-0/+17
| | | | | Change-Id: I482ac6ebed181546a18595c6a6b21d2115782b3a Signed-off-by: vamahaja <vamahaja@redhat.com>
* Fix test case "test_heketi_node_add_with_valid_cluster"vamahaja2019-11-191-39/+93
| | | | | | | | | | Fix consists of - - Remove steps for add device validation. - Add steps for gluser peer status validation. - Add steps for endpoints validation. Change-Id: I773a883b1ea8bb2bc93660db3459fd864fcd1317 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add test case to automate heketi add node into valid clustervamahaja2019-11-141-0/+110
| | | | | Change-Id: I4a2ac7b819929c2de6c8ea5520257800d2e134cc Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add vol expansion cases setting heketi zones checking flagValerii Ponomarov2019-11-141-22/+50
| | | | | | | | | | | | | | Following combinations are added: - 1 zone, replica3 volume, no zone checking flag - 1 zone, arbiter volume, no zone checking flag - 2 zones, replica3 volume, no zone checking flag - 2 zones, arbiter volume, no zone checking flag - 3 zones, replica3 volume, no zone checking flag - 3 zones, arbiter volume, no zone checking flag - 3 zones, replica3 volume, strict zone checking flag - 3 zones, arbiter volume, strict zone checking flag Change-Id: I130dcc7c6306b1cdfdee6a860fced19f48474006
* Add testcase to create volume with snapshot enabledSri Vignesh2019-11-141-0/+39
| | | | | | | | Validate creation of volume with snapshot enabled and create and delete snapshot created. Change-Id: I7173ed6fb6659963e29cc0f1b1ede0ce7c6fe2a4 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add testcase to validate node count with heketi db checkSri Vignesh2019-11-131-0/+15
| | | | | | | | Validate total nodes count in heketi db check is same as heketi node list. Change-Id: I6004537c251f8e512afabe88e0fb284624421b8d Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add testcase to validate block volumes with db checkSri Vignesh2019-11-111-13/+17
| | | | | | | Validate block volumes using heketi db check in heketi blockvolume list are same. Change-Id: Ibbaf038c05ef347d195140c2ba2c18f2d58c3b5e Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add possibility to check Heketi DB inconsistencies after each tcValerii Ponomarov2019-10-252-0/+2
| | | | | | | | | Define 'check_heketi_db_inconsistencies' config option setting there 'False' or 'True' values. Default value is 'True'. If heketi client doesn't support the 'heketi db check' feature, then 'heketi db check' just won't be performed. Change-Id: I7faff35b15e40d864c0377ae7fee154e217d8eae
* Add test cases to perform heketi cluster operations with nodesvamahaja2019-10-171-0/+68
| | | | | Change-Id: I22410ad8c81ca71ac9c2cbaddd66f086abcdf3c5 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [Lib+tc]Add testcase and library to validate total count of volumesSri Vignesh2019-09-251-0/+22
| | | | | | | | Add library to check db results Validate count of volumes of heketi and db are same Change-Id: I6e75f2d8d5f19a94c1dced5a07f9c948b4de9ef4 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add tc to create max number of BlockHostingVolumeskasturiNarra2019-09-241-1/+103
| | | | | | | | Validate whether creation of maximum supported blockvolumes doesn't have any impact to the functionality of gluster-block. Change-Id: I2a1503f527da2d1d916e87ce154e88bf9b5e1fa8
* Add TC delete a newly added deviceArun Kumar2019-09-241-0/+59
| | | | | | | Add a device, check there are no bricks on the device and verify the device deletion. Change-Id: I0e6adafb730e8d82926ce4e1d7b6b3c4799efc1b
* Fix two heketi zones test cases where we have 4 unique zonesValerii Ponomarov2019-09-201-2/+7
| | | | | | | | | By default, we create replica-3 file volumes. And when we have more than 3 Heketi nodes located in unique zones, we should check that our file volume is located in 3 unique zones, not bigger. So, fix this bug. Change-Id: Id82626425473f5e480ad73b0e17b7a0d675ba8ba
* Merge heketi node operation tests in one class and fix libraryvamahaja2019-09-193-221/+108
| | | | | | | | | | | | | | | | Fix consists of - - Use "**kwargs" approach in the "heketi_node_list" function as it is done in lots of other functions. - Parse the CLI output in the "heketi_node_list" function using regex instead of the splitting and stripping strings. - Combine test cases related to the same feature into one module - test_heketi_node_operations.py - Remove redundant checks which already exist in common libraries. - Remove unnecessary logging. Change-Id: I815ddfbbacb765140229e7630ec87a6bbaa6255b Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add TC stop glusterd on 2 nodes and create heketi volumeArun Kumar2019-09-171-0/+38
| | | | | | | Stop glusterd on 2 of the nodes/pods in the cluster containing alteast 5 gluster nodes and verify creation of volume using heketi. Change-Id: I94570f5bbfa20c19f11f4e14e29d2b1a40612fc5
* Add test cases for the heketi zones featureValerii Ponomarov2019-09-131-0/+201
| | | | | | | | | | Add 10 test cases for testing Heketi zones feature. To make all the Heketi zones test cases run in the single suite using the same cluster set 'common.allow_heketi_zones_update' config option to "True" value. By default it is set to "False" and only small set of test cases can run having such value. Change-Id: I69a1f7c96c9f52a06134e715e113ccd9b06764e6
* Fix test cases which are failing to delete volume after test completionvamahaja2019-09-133-33/+29
| | | | | | | | | | | In test case when we use large disk size, heketi takes time to create volume and due to timeout it gives error. Add fix in such test cases to check if volume created after getting an exception, get details of such volumes or raise exception in case it fails to create volume. Change-Id: I1c23a8c6558c23edf8947771e4f41a4bd3ffd66a Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add test cases to perform heketi cluster operationsvamahaja2019-09-111-0/+96
| | | | | Change-Id: I5886680a0d5666c68c677893e0fb327be0e80760 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add tc where we check vol size and brick amount config limits in HeketiValerii Ponomarov2019-09-061-0/+100
| | | | | | | | Add test case where we set and test Heketi config options to limit lower/upper allowed volume size and amount of bricks per volume. Change-Id: Ifb5cf64bba34dbf4e89f2fe9364263385a04cfa7
* Add testcase to validate creation of replica 2 volumeSri Vignesh2019-09-061-0/+30
| | | | | | | | Verify creation of replica 2 volume and validate the bricks created in gluster backend are same. Change-Id: I9fcc090e909d9bf578cf8eca6e12e4f785140e3f Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add testcase to creation of block volume with nameSri Vignesh2019-09-061-0/+20
| | | | | | | Validate creation of block volume with name Change-Id: I08ee31201d42a95f8a829eb54ce68421903fdbbf Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add TC verify heketi mount pointNitin Goyal2019-09-061-0/+50
| | | | | | | Add new TC where we verify given heketi mount point in volume info is working. Change-Id: Ia03af9ea6729cdfadf663abe46db7184a8b6fe2c
* Add testcase to create and delete distributed-replicated bhvSri Vignesh2019-09-061-5/+14
| | | | | | | | validate creation and deletion of distributed-replicated bhv. Change-Id: Ia42ace7e5be53fa7a00f88378575205e7fd5ba97 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add testcase to block device creation with different auth valuesSri Vignesh2019-09-051-0/+29
| | | | | | | | validate block volume creation with different auth values Change-Id: I820f65a5aaa5adc6cb58b16b18b6c93b22177d45 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Fix pep8 errors in the files of the 'tests' dirValerii Ponomarov2019-08-306-53/+52
| | | | Change-Id: I26c750c68055c6cc50de8015942d0d9725819aaf
* Add TestCase to validate BHV optionskasturiNarra2019-07-231-0/+59
| | | | | | | | This test case validates bhv options like features.shard,shard.size,shd max threads, and performance related ones Change-Id: I991f13e1b744486281e98813f169630a666eeb59
* Add TC create volume and validate in heketi topology infoArun Kumar2019-07-191-0/+74
| | | | | | | | Create 3 volumes using heketi-cli command, verify their presence in heketi topology info, delete 2 volumes and validate their deletions and presence of 3rd volume in heketi topology info Change-Id: I78298d2aec21ff8031ff01efd53f11ba31e269c9
* Add test case where BHV and BV are created and deletedkasturiNarra2019-07-191-0/+50
| | | | | Change-Id: I7ead23c46a472fee70d684c45f32f5e4efb0674f Signed-off-by: kasturiNarra <knarra@redhat.com>
* Make Heketi commands run on a Heketi POD when main command failsValerii Ponomarov2019-07-119-87/+47
| | | | | | | | It happens that heketi client located out of the Heketi POD may fail not reaching the server side. So, add back-up approach where we run Heketi commands on a Heketi POD when main commands fail. Change-Id: Ie6ae5be82082f34426f9288b02575e3abd4940f5
* Reshufle TC modules to the correct componentNitin Goyal2019-07-041-0/+69
| | | | | | | Rename TC modules to appropriate name and move them to correct component. Change-Id: I87c9bb7822c17c955dd9c2d780ef08e4d4e0d7ee
* Add py3 support to our tox config and fix several incompatibilitiesValerii Ponomarov2019-04-114-9/+19
| | | | | | | | | | | | | | | | | | Required steps to run test cases using py3: 1) Install py3 2) Install 'tox' package using "pip3" 3) Run test cases using tox package installed via pip3 Note that full py3 support is not tested yet. It only allows you to run it on py3 not providing any guarantees. Example: $ python3 -m tox -e functional3 -- \ glusto -c /path/to/the/config/file.yaml \ '--pytest=-v -rsx tests -k test_glusterblock_logs' Change-Id: I610faac0b75364c401734b6f892649893ca2320e
* Reorder lib files removing redundant dir layerValerii Ponomarov2019-03-1816-105/+126
| | | | | | | | | | | | Move all the files of 'cns-libs/cnslibs/common' dir to the 'openshift-storage-libs/openshiftstoragelibs', because 'common' is the only dir there, which doesn't really makes sense. And "cns" is old project name, so, replace it with "openshift-storage-libs". Also, fix all the imports of these libs. Change-Id: Ife00a73554e73b21b214b15016b0c8dbbf423446
* Reorder test files removing redundant dirsValerii Ponomarov2019-03-0617-0/+3119
Move all the files of 'tests/functional/common/' dir to the 'tests/functional/', because 'common' is the only dir there, which doesn't really makes sense. Do the same about 'tests/functional/common/heketi/heketi_tests' and 'tests/functional/common/heketi/'. Change-Id: I1fa55e2e7bf09e9b9115629b06e1fd160e291a36