summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* [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>
* [TestFix] Remove extra statement which is not required for the TCArun Kumar2020-04-291-3/+0
| | | | | Change-Id: I5863bcad3003725b60012dc8288f7ac1a3675d3c Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [TestFix] Fix 'RuntimeError' while updating dict in loopvamahaja2020-04-291-1/+1
| | | | | | | | | | Python3 returns iterator of list for function 'dict.items()', which cuases 'RuntimeError' while trying to update dict inside loop. Convert this iterator into list while looping over the dict items. Change-Id: Ia339bb89c4a8dbacae1c66ff41110975db73e9d7 Signed-off-by: vamahaja <vamahaja@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>
* [Test] Add test case to verify tcmu log levelscrombus2020-04-271-0/+80
| | | | | | Change-Id: I41d4817fe39ad9c4b26eee659eaaeda563f72496 Signed-off-by: vamahaja <vamahaja@redhat.com> Co-authored-by: crombus <pkundra@redhat.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>
* [Test] Add TC to validate pvc resize when device disabledSri Vignesh2020-04-241-0/+92
| | | | | Change-Id: Ia2aa235973f282601023535f405f283a2427c337 Signed-off-by: Sri Vignesh <sselvan@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] Fix gluster-block log file pathvamahaja2020-04-241-4/+1
| | | | | Change-Id: I2241088612178afc1be188149e97b9951e07efc1 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [TestFix] Add CRS check for test casesvamahaja2020-04-232-0/+10
| | | | | Change-Id: I4213c2f6f9d1a0c2c3382bfada6632bd21db1350 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [Test] Add TC to validate BV creation after stopping gluster servicescrombus2020-04-201-1/+139
| | | | | | Change-Id: Ib4cd81191be5c53d104e3460274e18c94f070dd2 Signed-off-by: vamahaja <vamahaja@redhat.com> Co-authored-by: crombus <pkundra@redhat.com>
* [Test] Add tc to validate arbiter volume create with differnet tagsSushilG962020-04-201-0/+204
| | | | | Change-Id: Iad8abab3b1faf74ea9f7895da7758da5daa967d2 Signed-off-by: susgupta <susgupta@redhat.com>
* [Testfix] Resolved pep8 issuesSri Vignesh2020-04-201-1/+1
| | | | | Change-Id: I3f765ee83c04a08eae48727a6870057a2ac69abe Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* [Test] Add TC to validate arbiter vol with device greater than vol sizeSri Vignesh2020-04-161-0/+34
| | | | | Change-Id: If1a15f6bfd8b1a106ab19d949aae03bf8d6d4e62 Signed-off-by: Sri Vignesh <sselvan@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>
* [TestFix] Move tier1 test casevamahaja2020-04-071-1/+1
| | | | | | | | | | Fix consists of - Test case 'test_initiator_side_failures_create_100_app_pods_with_block_pv' creates 100 i/o pods with PVC which takes time and may fail in case cluster is slow. Move this test case to tier2. Change-Id: I540e268eae81f7934e0d0f2d2aa6168c388c1a66 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-3112-25/+25
| | | | | 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>
* [Test] Add TC create block vol of size greater than free space in BHVrachael-george2020-03-231-0/+62
| | | | | Change-Id: Ie44ec19689c0a28864dbd681a403a4cddcd9ffc3 Signed-off-by: rachael-george <rgeorge@redhat.com>
* [Test] Add TC to delete arbiter PVC which is mounted on app podrachael-george2020-03-231-0/+94
| | | | | Change-Id: I0e3dc795b76edd73a19a10224bb7f28fa3e28f42 Signed-off-by: rachael-george <rgeorge@redhat.com>
* [TestFix] Remove skip marker for bug bz-1714292vamahaja2020-03-231-4/+1
| | | | | Change-Id: I51d6e8ce22e90668582f5b8403f6024c6027b7d7 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [TestFix] Fix tier0 & tier1 mark for tcsvamahaja2020-03-232-2/+2
| | | | | Change-Id: I245d2915d30a42c83a4f4ac12f8f7a23cb4888ee Signed-off-by: vamahaja <vamahaja@redhat.com>
* [Config] Add variables for system testingNitin Goyal2020-03-181-0/+10
| | | | | | | Add variables in config file which will help us to scale our setup. Change-Id: I99739a090c1b2fd92afc2242b5ec6552205ce92f Signed-off-by: Nitin Goyal <nigoyal@redhat.com>
* [TestFix] Add pytest marker for tier1 test casesvamahaja2020-03-1722-0/+105
| | | | | Change-Id: I1d497a9b61762e68558026ddc49e5269b0354ce1 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [TestFix] Add pytest marker for tier0 test casesvamahaja2020-03-1319-0/+83
| | | | | 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 cassandra pod when BHV brick process is downArun Kumar2020-02-201-2/+25
| | | | Change-Id: If0024c4b99eee0d0971077556b033ace5104c982
* [Test] Add tc to validate arbiter volume create after removing node tagSushilG962020-02-031-0/+63
| | | | | Change-Id: I6552a5de34b329ff5638898bac36a4d5ec5291a3 Signed-off-by: susgupta <susgupta@redhat.com>
* [Test] Add tc to validate heketi volume snapshot create operationSushilG962020-01-301-0/+37
| | | | Change-Id: I757388d8f9c14549a7ec408868e3b86c92362a22
* [Test] Add tc to utilize all available free space of cassandra pod PVCArun2020-01-271-0/+28
| | | | Change-Id: I7645a8aecad7fd0a94b7f769018be0b4ac9070d9
* [Test] Add tc for matrics validation during oc drainArun2020-01-241-9/+40
| | | | Change-Id: Ie6bda59e6bee1bde5d2b04a5c8c311d9c046c7a5
* [Test] Add tc to validate matrics during cassandra pod deletionArun2020-01-241-0/+52
| | | | Change-Id: Ie72a25ce90fd10dd8b86878d235d71814703b1ef
* [Test] Add tc to validate PVC, heketi and gluster vol mapping in scaleSushilG962020-01-241-0/+27
| | | | Change-Id: I556e7f03013bd39780f2107f91aedec87a3c2ee0
* [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>
* Fix TC 'test_delete_block_pvcs_with_network_failure'Arun2020-01-171-11/+37
| | | | | | | | | | | TC is failing when there are no BHV's before running the TC TC is failing during the validation of the total free space Add following steps to fix the problem: - Get the default BHV size if there are no BHV's before excuting the TC - Calculate total initial free space of all the BHV's - Compare the initial and final free space of BHV's Change-Id: Ic13c201ad04b02b80ca73d41b3c42451202ed181
* [py2to3] Fix dict.values() py3 incompatibilitiesvamahaja2020-01-132-2/+2
| | | | | Change-Id: Ibb96e961b1501ef696858a5eec80422471e877fd Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add TC verify gluster pod respin does not affect the metricsArun2020-01-132-1/+74
| | | | | | | | Delete a gluster pod which is hosted on active path Wait for new gluster pod to come up Verify the state of cassandra pod, iscsi and multipath Change-Id: Iba938e7203e6fb86cd953c48040f6f730df8626c