summaryrefslogtreecommitdiffstats
path: root/tests/functional/heketi
Commit message (Collapse)AuthorAgeFilesLines
* [Test] Add test for heketi authenticationBala Konda Reddy M2020-11-051-0/+33
| | | | | Change-Id: I2dc817dafffa6c313d24fdd11014dc3f3e203aa8 Signed-off-by: Bala Konda Reddy M <bala12352@gmail.com>
* [TestFix][Tier4] Add pytest marker for 'tier4' testsvamahaja2020-10-125-6/+6
| | | | | Change-Id: I3c331883aff037116d3680649c29a39a266b0684 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [TestFix][Tier3] Add pytest marker for 'tier3' testsvamahaja2020-10-125-14/+14
| | | | | Change-Id: Idd21f2d0cfb2a1171e4e8464646684ac9164ad0e Signed-off-by: vamahaja <vamahaja@redhat.com>
* [TestFix][Tier2] Update pytest marker for 'tier2' testsvamahaja2020-10-1210-36/+36
| | | | | Change-Id: I5db480da820c82b7b15f90ed70a4f60643079cb0 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [TestFix][Tier1] Move 'tier0' tests to 'tier1'vamahaja2020-10-1213-44/+44
| | | | | Change-Id: Ie1f01771518e82eec378564ddde34ae0fb7f0ac6 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [Test] Add TC to validate stale/failed entries in dbSri Vignesh2020-10-071-4/+109
| | | | | Change-Id: I3e1bccec5d78de517e3b268d4e847943bd8cfcf4 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* [Test] Add TC for heketi cleanup operation log after heketi pod restartSri Vignesh2020-10-051-0/+57
| | | | | Change-Id: Ia1c7f3d0c20a2b75b4c7fbb055c5674b3d9ce949 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* [Test] Add TC to validate lvm script after assigning false valueadityaramteke2020-10-051-1/+98
| | | | | Change-Id: Ifb50cafc55d8b1288104fc5fe61e335262341278 Signed-off-by: Aditya Ramteke <aramteke@redhat.com>
* [TestFix] Fix volume size calculationSri Vignesh2020-09-281-1/+1
| | | | | | | | | Volume creation with available free size is failing as metadata takes some space. Fix calculation to leave 2% space for metadata. Change-Id: Idc041b61155ce530a0a2c5bbdda3a6986cd9a469 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* [TestFix] Add assert to validate ls output for lvm scriptadityaramteke2020-09-231-1/+2
| | | | | Change-Id: Iaf6123626d3fc57ea6bbf1388764944dc7049e8e Signed-off-by: Aditya Ramteke <aramteke@redhat.com>
* [TestFix] Fix heketi server db operations TC issuesvamahaja2020-09-231-261/+227
| | | | | Change-Id: I3d07128f8881b18b89773e4290bee826ca99468c Signed-off-by: vamahaja <vamahaja@redhat.com>
* [Test] Add TC to validate lvm script is executable on hostadityaramteke2020-09-181-0/+47
| | | | | | Signed-off-by: Aditya Ramteke <aramteke@redhat.com> Change-Id: Ib9870cba6fc5ce1936a22c9fcbb326a6ab753378
* [Test] Add TC to validate heketi LVM wrapper functionalityadityaramteke2020-09-101-0/+63
| | | | | Change-Id: I92925dd419a78d2f3a3a2baf8e80727e33d6d5ae Signed-off-by: Aditya Ramteke <aramteke@redhat.com>
* [TestFix] Fix BHV count calculations for small size disk clustervamahaja2020-08-191-2/+6
| | | | | | | | | | | | Fix consists of - In case small size disk is present in cluster TC 'test_create_max_num_blockhostingvolumes' uses blockvolume size as 0 due to default BV count, which leads to failure of BV creation. To fix issue set BV size to 1 and BHV count to free size in case, mod operation returns 0. Change-Id: Ia5c656e215498acdc86383c9a771a0094de70716 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [Test] Add TC to create block volume with custom vol name prefixSushil Gupta2020-08-071-2/+58
| | | | | Change-Id: If4293d3987b9de55845eea95ddd3f5e309ea810a Signed-off-by: Sushil Gupta <susgupta@redhat.com>
* [TestFix] Fix pytest warningsvamahaja2020-07-142-2/+2
| | | | | | | | | | | Fix consists of - 1. Remove depricated method 'assertEquals'. 2. Add 'junit_family=legacy' to pytest.ini to keep using the legacy version for JUnit XML file. 3. Prepend 'r' for regular expression. Change-Id: I9a804bba3590e33b50aa0c88ded9cf0007afe1e6 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [TestFix] Fix to add wait after the pod creationArun Kumar2020-07-081-3/+7
| | | | | | | | | | Fix consists of - Addition of wait for the pods to be ready after the creation of dc, inside the method '_create_dcs_and_check_brick_placement' which led to the failure of few heketi zone TC's. Change-Id: Ib932e1a338b52673418d39fcd35a9d27f508a48f Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [TestFix] Fix large heketi volume creation issueSri Vignesh2020-07-071-4/+3
| | | | | | | | | | | Fix consists of - While creating large heketi valumes, sometime timeout will occur for heketi command but after sometime volume will get created. Use baseclass function 'create_heketi_volume_with_name_and_wait' to check for volume in case timeout occurs. Change-Id: Ia2cdf8d50ecba01ebf593e72afbbff809877c944 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* [TestFix] Fix cleaning up resources in TC 'test_delete_heketi_volume'Sri Vignesh2020-07-071-4/+9
| | | | | Change-Id: Idf618b0f887ff56d080f99487f2c4859ddd51a21 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* [Test] Add TC to validate heketi device deletion lifecycleArun Kumar2020-07-061-87/+96
| | | | | Change-Id: Ifd4aeaeb05fcb18c38b21b26640c49a1e7035093 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [Test] Add TC to Compare the brick mount status from all nodesSushilG962020-07-061-0/+90
| | | | | Change-Id: I7e03acd0ddf2e14b00453af180a2b4a8c45f2832 Signed-off-by: susgupta <susgupta@redhat.com>
* [Test] Add TC to verify Snapshot deletionSushilG962020-07-061-0/+55
| | | | | Change-Id: I523a13629dc24ca9cef3d6ab06aac5d8c523a8e5 Signed-off-by: susgupta <susgupta@redhat.com>
* [LibFix] Add 'collect_logs' param in 'oc_delete' libvamahaja2020-07-021-1/+2
| | | | | Change-Id: I9d99f367b82c6570e1390c6b137e0b9bf401a19c Signed-off-by: vamahaja <vamahaja@redhat.com>
* [Test] Add TC creation of multiple heketi volumes with different sizesArun Kumar2020-06-261-0/+18
| | | | | Change-Id: I6d39e9c50dc46d4c9ba4c3cf68e8138ae1afc3c4 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [Test] Add tc to create a snapshot with one brick downSushilG962020-06-241-0/+79
| | | | | Change-Id: I28182b25db8ab029cd9d6e910d14c5ca8fbc419c Signed-off-by: susgupta <susgupta@redhat.com>
* [Test] Add TC creation of heketi volume with clusters argumentArun Kumar2020-06-241-0/+27
| | | | | Change-Id: I7b095ea60a571a70cbfab177d823e49525330e86 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [Test] Add TC create a distributed replicate volumeArun Kumar2020-06-241-2/+12
| | | | | Change-Id: Ie627998f6e363791e2249ca3472e66c13805666e Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [TestFix] Fix gluster function parameterSri Vignesh2020-06-241-2/+9
| | | | | | | | | | In TC 'test_heketi_volume_create_with_cluster_node_down' incorrect gluster node is passed to gluster op function, which is executing required command on unexpected gluster node. Fix gluster function call with correct gluster node. Change-Id: I545d10e5dbf828e6b99f57ca825a01c224db13e3 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* [TestFix] Code Fix in device cleanup sectionSri Vignesh2020-06-241-3/+0
| | | | | Change-Id: Icc788bceb62f612d0313c6d04cc8605bc2bfa1f7 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* [TestFix] Add steps to handle bv pending operationSri Vignesh2020-06-241-3/+5
| | | | | | | | | | | | Fix consists of: 1. after 2 bv is created using async it returns 0 pending operation and takes some time to show the third pending operation. so added a additional check for bv equal to vol_count 2. changed correct value for assertion fail statement Change-Id: I2edf22c466114c108d997832f2b9a75e165330af Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* [Test] Add TC's of PVC creation with zone check set in sc and dc bothArun Kumar2020-06-161-0/+41
| | | | | Change-Id: I4c75528e7fba934a2f9dd28d8ce79d4cf0d472dd Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [Test] Add tc to compare file/block volume from all nodesSushilG962020-06-161-23/+28
| | | | | Change-Id: I440f8e8a5b763735479896c336ebc233fe04f179 Signed-off-by: susgupta <susgupta@redhat.com>
* [Test] Add TC's PVC expansion after setting zone check to stict inside dcArun Kumar2020-06-151-0/+42
| | | | | Change-Id: I0c9064c089872c218b5fc437c03b8de99820c12a Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [TestFix] Fix the SC creation part of code for heketi zone TC'sArun Kumar2020-06-111-4/+6
| | | | | Change-Id: I87d5af3151d01319bdd7d36dbf9bf99527648f56 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [TestFix] Remove duplicate TC w.r.t heketi db pending entiresvamahaja2020-06-101-63/+0
| | | | | | | | TC 'test_verify_pending_entries_in_db' is automated as part of ddt TC 'test_verify_create_heketi_volumes_pending_entries_in_db' Change-Id: Ibb6562e406fcf2f48ca4eec13b3073f751b67148 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [Test] Add TC's create arbiter PVC based on the heketi zoneArun Kumar2020-06-101-0/+36
| | | | | Change-Id: I03ae8d89b9019b67ff685064372a779e6ade1d08 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [Test] Add TC to validate volume creation when heketidb volume is downadityaramteke2020-06-101-1/+34
| | | | | Change-Id: I626bb446e408f9f4bb461309831569e61215d3db Signed-off-by: Aditya Ramteke <adityaramteke05icr@gmail.com>
* [Test] Add TC's create PVC with zone check set to strict in dcArun Kumar2020-06-101-6/+40
| | | | | Change-Id: I56807661c6a6b728a4b902ad14c1b8b0b0e268bf Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [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>