summaryrefslogtreecommitdiffstats
path: root/tests/functional/heketi
Commit message (Collapse)AuthorAgeFilesLines
* [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>
* [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>