summaryrefslogtreecommitdiffstats
path: root/tests/functional/heketi
Commit message (Collapse)AuthorAgeFilesLines
...
* [TestFix] Break TC's for PVC creation w.r.t. zoneArun Kumar2020-06-021-61/+155
| | | | | | | | | | | TC's are separated as below for the better optimization: 1. Replicate volume with zone check option in sc 2. Replicate volume with expansion and zone check option in sc 3. Arbiter volume with zone check option in sc 4. Arbiter volume with expansion and zone check option in sc Change-Id: Iff5846737fff1895f3d3b74b32c1742f249d32b8 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [Test] Add tc to verify pending operations during volume creationSushilG962020-06-011-0/+161
| | | | | Change-Id: I34c163c059e36825ab47fe612389c44da8cfb102 Signed-off-by: susgupta <susgupta@redhat.com>
* [TestFix] Add waiter to complete heketi db pending operationsSushilG962020-06-011-9/+17
| | | | | Change-Id: I4554daf04c97e28bd965e2509c53e13b7808bae6 Signed-off-by: susgupta <susgupta@redhat.com>
* [TestFix] Fix for loop variableSri Vignesh2020-06-011-1/+1
| | | | | | | | | Tc 'test_create_volumes_enabling_and_disabling_heketi_devices' uses incorrect variable name inside for loop while disabling node. Use correct variable inside for loop to disable expected nodes. Change-Id: I0be101e753c387eee25e0fc0b778d884ae6bb609 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* [Test] Add TC's validate PVC creation with 1 and 2 heketi zonesArun Kumar2020-06-011-19/+31
| | | | | Change-Id: I38546a5e91e56294c03981a182d37b19e2e151a2 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [TestFix] Fix tc to cleanup existing BHV and assertionSri Vignesh2020-05-271-5/+14
| | | | | | | | | | Fix consits of - 1. Add steps to check existing BHV and delete in case BV(s) are not exists. 2. Fix assertion to validate 'brickCount' and 'distCont' Change-Id: I25bb9d0767f102ec0344b0486fbf4007daca70a0 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* [Test] Add TC to validate vg and uuid of all devices in heketi topologyArun Kumar2020-05-271-0/+22
| | | | | Change-Id: I415e380b2b9e4d6aaa1d4333b6481640e2d3419f Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [TestFix] Add support for setting env var in heketi dcArun Kumar2020-05-271-61/+70
| | | | | Change-Id: I124578f9e314446b92b615a6c022ac5a7f990e95 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [TestFix] Fix test case to skip in case db cleanup failsSri Vignesh2020-05-271-2/+2
| | | | | | | | | | Tc 'test_heketi_server_operations_cleanup_on_idle_setup' raise Assertion exception in case stale entries are present in heketi db. Fix this statement to skip test case instead of raising exception Change-Id: Ia02960e1139aa9051bc7c83e230feb8bdde66d01 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* [Test] Add TC to validate heketidb cleanup on idle setupArun Kumar2020-05-151-0/+25
| | | | | Change-Id: I718fd893ddb16bd1ce86a63a732e02db3c72a160 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [Test] Add TC's for PVC placement based on heketi zonesArun Kumar2020-05-121-1/+13
| | | | | | | | | TC consists of - 1. Replica volume with minimum 4 nodes 2. Arbiter volume with minimum 4 nodes Change-Id: I325d8a7ebe8c0ff2f248712d517b43b484d70328 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [Test] Add TC to validate gluster examine output after node poweroffArun Kumar2020-05-121-0/+24
| | | | | Change-Id: I32fcb7be8246e9d7b0900e10bdfb5af0f61f1f44 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [TestFix] Fix method "_check_heketi_pod_to_come_up_after_changing_env"Arun Kumar2020-05-121-24/+7
| | | | | | | | | | | | Fix consists of : - Currenlty this function check if pod is up and if not then wait for to up which is incorrect approach as it takes time to restart pod. Fix this by waiting for heketi pod to be restarted. - Remove skip for bugs Change-Id: Ib3016764741d5fb7188a24e0e267bb0984e2e4a5 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [TestFix] Remove TC 'test_compare_node_count_with_db_check_info'vamahaja2020-05-041-16/+0
| | | | | | | | Test case 'test_compare_node_count_with_db_check_info' is automated as part of tc 'test_verify_db_check'. Hence remove older test case. Change-Id: If385c21c9ac5554b2faf96c59424d8695d87c7c8 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [TestFix] Fix bricks count and bhv total countSushilG962020-04-301-11/+48
| | | | | Change-Id: I19c6146b4d9fbc366663bb53e97c567cc8b24f68 Signed-off-by: susgupta <susgupta@redhat.com>
* [Test] Add TCs to validate device/node disable based on heketi zonesArun Kumar2020-04-281-4/+322
| | | | | Change-Id: I9786d8d68854529624a17cc2c2c12656b4eb6631 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [TestFix] Fix test case to create volume after rebootig nodevamahaja2020-04-241-21/+13
| | | | | | | | | | | | | Fix consists of - Currently 'test_heketi_volume_provision_after_node_reboot' tc uses 'node_reboot_by_command' function which reboots node by using 'shutdown -r' command and comes up fast, which causes to create volume successfully in case more than 2 nodes are rebooted. Use power off and power on node libraries to reboot gluster nodes instead. Change-Id: Ie35a5f5be0bca6899d06d80de368491d2e1f3611 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [TestFix] Add CRS check for tier0 test casesvamahaja2020-04-241-0/+5
| | | | | Change-Id: I995759d6f77edd5b096a8c1666eee6ab0dbc6cc8 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [TestFix] Add CRS check for test casesvamahaja2020-04-231-0/+5
| | | | | Change-Id: I4213c2f6f9d1a0c2c3382bfada6632bd21db1350 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [TestFix] Separate common logic from test case to use in future tcArun Kumar2020-04-151-39/+51
| | | | | | | | | | Test case 'test_check_pvc_placement_based_on_the_heketi_zones' has code to check for availabe heketi zone and validate brick placement which can be used in other test cases. Separate this code onto two different internal functions. Change-Id: I76233a1a8bed1e6ab11f91a7820c90a26fa71381 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [Test] Add TC to validate blockvolume count heketi examine glusterArun Kumar2020-04-151-0/+31
| | | | | Change-Id: Iac66f50dffe8688f8c9bd53b1298a68484a39afd Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [Test] Add TC for provisioning volume after node rebootcrombus2020-04-131-0/+56
| | | | | | Change-Id: I8864284957bfcfa505238c9dfcac16650f8260b3 Signed-off-by: vamahaja <vamahaja@redhat.com> Co-authored-by: crombus <pkundra@redhat.com>
* [TestFix] Add tc marker tier0 & tier1vamahaja2020-04-072-0/+2
| | | | | Change-Id: I079c8ddd0e72b55754e075de06ca168b220f80c8 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [Test] Add TCs to validate resoure count heketi db checkArun Kumar2020-04-071-0/+46
| | | | | Change-Id: Ic79952701f0e7029fb9ddf5394e247d25347acaf Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [Test] Add TC check node addition in heketi dbArun Kumar2020-04-061-9/+38
| | | | | Change-Id: I2cde18222ba56a25962e3e3e63580c7ac2f38ceb Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [Test] Add TC verify heketidb operations while file/block vol deletionSushilG962020-04-031-0/+154
| | | | | Change-Id: Ifcd7913c352d11ef43fb92c304602f0f2f40693f Signed-off-by: susgupta <susgupta@redhat.com>
* [TestFix] Add pytest marker for tier2 test casesvamahaja2020-03-315-5/+5
| | | | | Change-Id: I43ebf7f489f0e80f33992edc7cea6a54dcc8a531 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [LibFix] Fix 'g.rpyc_get_connection' library issuevamahaja2020-03-261-6/+4
| | | | | | | | | | 'g.rpyc_get_connection' library fails to set connection. Instead of using 'g.rpyc_get_connection' libray for modifying file remotely, create file locally and upload to remote location using 'g.upload' library. Change-Id: I85564ee5b7c28a9d866be033d18bd018f648cd5b Signed-off-by: vamahaja <vamahaja@redhat.com>
* [Test] Add tc to verfiy block device info and glusterblock volume infoSushilG962020-03-231-1/+85
| | | | | Change-Id: Ia5a0d5a8ac9319628f9a3d4d00d0f70876fe3281 Signed-off-by: susgupta <susgupta@redhat.com>
* [Test] Add TC to validate deletion of device with bricksrachael-george2020-03-231-0/+26
| | | | | Change-Id: I591ee6b5a3e0b56fa74bd520fc0e522662c812ce Signed-off-by: rachael-george <rgeorge@redhat.com>
* [TestFix] Add pytest marker for tier1 test casesvamahaja2020-03-1712-0/+43
| | | | | Change-Id: I1d497a9b61762e68558026ddc49e5269b0354ce1 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [TestFix] Add pytest marker for tier0 test casesvamahaja2020-03-1312-0/+47
| | | | | Change-Id: I29093a09c3f0cc09eaa9c6d94bad882c0bafd91c Signed-off-by: vamahaja <vamahaja@redhat.com>
* [Testfix] Fix function call for `get_pod_name_from_dc`vamahaja2020-02-281-1/+1
| | | | | | | | | | | | | | | Fix consists of - Remove dc name which is passed twice to function 'get_pod_name_from_dc' In test case 'test_heketi_metrics_heketipod_failure' function 'get_pod_name_from_dc' is called by passing dc name twice, because of which 'timeout' is passed as dc name instead of integer value hence raising an exception 'TypeError'. Change-Id: I6827a8f9bbd847f346ea6b519db97181219f9717 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [Test] Add tc to validate heketi volume snapshot create operationSushilG962020-01-301-0/+37
| | | | Change-Id: I757388d8f9c14549a7ec408868e3b86c92362a22
* [TestFix] Optimize repeated dictionary access using loopkshithijiyer2020-01-201-3/+2
| | | | | Change-Id: I332a66659b5abefb5d5052232ec9b61124860575 Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* Refactor heketi device test casesvamahaja2020-01-182-75/+70
| | | | | | | | | | | | | | | | | | | | | List of changes - 1. Remove test file 'test_device_info.py' as it contains only one test case which can be part of test file 'test_heketi_device_operations.py' 2. Change test case name 'test_device_enable_disable' to 'test_heketi_device_enable_disable' 3. Change test case name 'test_device_remove_operation' to 'test_heketi_device_remove' 4. Change test case name 'test_heketi_with_device_removal_insuff_space' to 'test_heketi_device_removal_with_insuff_space' 5. Chnage test case name 'test_heketi_device_delete_operation' to 'test_heketi_device_delete' 6. Move test case 'test_heketi_devices_info_verification' to 'test_heketi_device_operations.py' and rename as 'test_heketi_device_info' Change-Id: I8ddc9beb7bc697214242212e50c9727ce644f2c1 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [py2to3] Fix dict.values() py3 incompatibilitiesvamahaja2020-01-132-2/+2
| | | | | Change-Id: Ibb96e961b1501ef696858a5eec80422471e877fd Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add TC for checking pending operations in heketidbSushilG962020-01-071-0/+74
| | | | | | | Create volume and see the pending operations of volume and bricks in heketidb and verify that after creation count is changed. Change-Id: I2d73f82bde422fdffc1fbbdc14564a0c8ffa99aa
* Fix 'test_heketi_node_operations' tc checking correct config optionvamahaja2019-12-161-2/+2
| | | | | | | | | | 'test_heketi_node_operations' tc tried to use incorrect 'additional_gluster_servers.additional_devices' config option. Change it to 'additional_gluster_servers.devices', as it is expected by the configuration. Change-Id: I2351814bf35a78724f84d954abd7ce780e945328 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add assert to check gluster volume list in test casevamahaja2019-12-161-0/+2
| | | | | | | | | | | - In test case 'test_heketi_volume_create_with_cluster_node_down' function glusto-tests 'get_volume_list' function returns 'None' in case of failure. - Add assert statement to check whether 'get_volume_list' function returns expected gluster volume list. Change-Id: I2b11bb33b1346d88db0501d000f32515db86279d Signed-off-by: vamahaja <vamahaja@redhat.com>
* Fix cleanup code to delete volume instead of blockvolumekasturiNarra2019-12-161-1/+1
| | | | | | | Code creates file volume and tries to delete blockvolume instead of file Change-Id: I4c73f388dc10a153f254c479bc8bf127df644916
* Fix code to create bhv in func _create_distributed_replica_volkasturiNarra2019-12-121-2/+2
| | | | | | | Change code of func _create_distributed_replica_vol to handle block hosting volume creation as well. Change-Id: If4b1f48dc8cbe257254a2729599f58f302b403d8
* Delete duplicate test "test_to_create_distribute_replicated_vol"kasturiNarra2019-12-121-7/+5
| | | | | | | | | which completely duplicates "test_to_create_and_delete_dist_rep_vol" in 'test_create_distributed_replica_heketi_volume.py' test module & fix cleanup code for create_heketi_volume_with_name_and_wait in openshift-storage-libs/openshiftstoragelibs/baseclass.py module. Change-Id: I9b3dea28e6330e52caab09311e20b65dd48491b9
* Handle empty list of 'additional_gluster_servers' correctlyvamahaja2019-12-121-1/+1
| | | | | | | | | | In the 'test_heketi_node_operations::TestHeketiNodeOperations' class, if we define 'additional_gluster_servers' option, but do not provide there any value, then we fail. But, "skip" is expected in such situation. So, catch "IndexError" exception and make tests be skipped after it. Change-Id: Idfb1cdfc6941d284a4dc8e670c2eb5510eafe744 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add TCs volume operations while node removal is runningNitin Goyal2019-12-091-0/+139
| | | | | | | Add new TCs where TCs verify that volume operations works while node removal is running. Change-Id: Id5092761253eb8f221c5fb39cfb95765f3087eea
* Add new TCs remove or delete heketi nodeNitin Goyal2019-12-051-0/+279
| | | | | | | Add new TC remove or delete node from heketi, and verify gluster peer status, bricks on the new node and heal info. Change-Id: If4b6006a4a58fd581ac9851b377a82f69ce0f30f
* Add TC create two heketi volumes with same nameNitin Goyal2019-12-031-0/+33
| | | | | | | | Add TC where it creates two volumes with the same name via heketi and verifies that first one gets successfully created and the second one gets failed. Change-Id: I36e9bb1ed93b807458fcbdf8d417ada1cbc7b943
* Add TC heketi vol creation of size greater than device sizeNitin Goyal2019-12-021-0/+154
| | | | | | | Add new TC heketi volume creation of size greater than the device size and verify backup-volfile-servers, replicacount, brickscount etc. Change-Id: I87cbf0e1d8326ad077f02cf465105aca3f8bdde7
* 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