summaryrefslogtreecommitdiffstats
path: root/tests/functional/provisioning
Commit message (Collapse)AuthorAgeFilesLines
* [Test] Add TC to validate resize operation while io's are runningArun Kumar2020-07-161-0/+28
| | | | | Change-Id: If2b5869d01191d8a95b612294c4e74b92d998950 Signed-off-by: Arun Kumar <aanand01762@gmail.com>
* [Test] Add TC to create and delete block PVC twiceArun Kumar2020-05-151-0/+33
| | | | | Change-Id: Iba3a4947ef3654fb92bcc05f750f3aae11ffb7a2 Signed-off-by: Arun Kumar <aanand01762@gmail.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>
* [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] 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-231-0/+5
| | | | | Change-Id: I4213c2f6f9d1a0c2c3382bfada6632bd21db1350 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [TestFix] Add pytest marker for tier2 test casesvamahaja2020-03-313-4/+4
| | | | | Change-Id: I43ebf7f489f0e80f33992edc7cea6a54dcc8a531 Signed-off-by: vamahaja <vamahaja@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>
* [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>
* [TestFix] Add pytest marker for tier1 test casesvamahaja2020-03-174-0/+20
| | | | | Change-Id: I1d497a9b61762e68558026ddc49e5269b0354ce1 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [TestFix] Add pytest marker for tier0 test casesvamahaja2020-03-134-0/+24
| | | | | Change-Id: I29093a09c3f0cc09eaa9c6d94bad882c0bafd91c Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add skip for test case due to bug fixvamahaja2019-12-121-0/+8
| | | | | | | | | Test case 'TestPvResizeClass::test_pv_resize_no_free_space' fails due to bug 'BZ-1732831' which is fixed in OCS version 3.11.5. So skip this test case for OCS version below OCS 3.11.5. Change-Id: I7e26293c3defb332da64fd32dda4ed9011db7176 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add cleanup after PVC creationadityaramteke2019-11-291-0/+2
| | | | | | | Cleanup function was missing after creation of PVC in test_creation_of_pvc_when_one_node_is_down TC. Change-Id: I9077f9f58248a8a08a236f7a50f1917c96181fd9
* Add test for creation of PVC when one node downadityaramteke2019-11-271-2/+55
| | | | | | | The purpose of this test case is to confirm that provisioning succeeds if at least 3 nodes are UP in a CNS cluster with nodes >3. Change-Id: I7fc1f851114d921f65e819db23502776526e6827
* Add tc where targetcli fails during block PVC creationValerii Ponomarov2019-11-221-0/+127
| | | | | | | Add tc where we simulate targetcli failure in parallel to the block PVC creations. Change-Id: I6f94079593d8ff978c321b64729b4c0b67810c23
* Make 'provisioner' be autocalculated for storage classesValerii Ponomarov2019-10-311-1/+1
| | | | | | | | | | | | | | | In OCS 3.11.4 was changed the approach for 'provisioners' in storage classes due to the BugZilla bugs [1] and [2]. So, change the approach for getting 'provisioner' value in this project making it be autocalculated based on the data taken from the block provisioner pod, which is located in the working namespace. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1732787 [2] https://bugzilla.redhat.com/show_bug.cgi?id=1738394 Change-Id: Ic1037038e39abba2b2a1ad6dc3ddbfe42473cb88 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Fix raise exception for test case test_sc_glusterfile_missing_parametervamahaja2019-10-031-1/+2
| | | | Change-Id: I81f827f04d8795cb1821d796418cf61578dde037
* Add tc test_pvc_resize_greater_valuecrombus2019-09-191-4/+37
| | | | | | | | create app pod attached to pvc resize pvc to size more than available size expand the volume to a available size Change-Id: Iae652fc13f1c5e39e6550529b81b9cd1cd0e4b38
* Add testcase for passing clusterid when creating storage classAshmitha2019-09-181-0/+26
| | | | Change-Id: I4a6fd02f5713b4e86a9d70cdaffd3ca9369932f4
* Add TC missing parameters in SCNitin Goyal2019-09-161-0/+30
| | | | | | | Add new TC missing parameters for file storage class and verify PVC pending state. Change-Id: Ibd8f418934da261058adb4127e60f85465a5ef75
* Add test case to try creation of storage class with duplicate nameAshmitha2019-09-121-1/+10
| | | | Change-Id: If30737958bc667264fc01fe81d411f406b501918
* Add CRS support for test cases by using node rebootvamahaja2019-09-032-60/+96
| | | | | Change-Id: Icdbb3a626d96c1f762f5616623ea6bc99d56ef3c Signed-off-by: vamahaja <vamahaja@redhat.com>
* Fix pep8 errors in the files of the 'tests' dirValerii Ponomarov2019-08-304-24/+22
| | | | Change-Id: I26c750c68055c6cc50de8015942d0d9725819aaf
* Fix test cases skipped due to closed bugsvamahaja2019-08-191-5/+10
| | | | | | | | Add fix to test cases which are skipped due to bugs - BZ-1644685, BZ-1652913, BZ-1634745, BZ-1635736, BZ-1636477, BZ-1641668 Change-Id: I03a7f7dddaba5d3e41770969352b2263c84cb920 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add OCS 3.9 version check for test cases which uses multipath validationvamahaja2019-08-141-0/+36
| | | | | Change-Id: I5bb2760ff284cdc83424388bfdfc79d5fd112f21 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Workaround BZ-1727360 in the "get_gluster_pod_names_by_pvc_name" funcvamahaja2019-08-072-2/+2
| | | | | | | | | | "get_gluster_pod_names_by_pvc_name" function depends on the ocp3.11 specific shell command, which fails on old OCP versions. So, fix it by getting info in compatible way. Also, update usages of this function with new return data structure. Change-Id: Ibb8559590a1288c032630b3292f631d28bc87263 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Fix test case for create and verify pvc with volname prefixcrombus2019-07-221-0/+8
| | | | | | Add steps to verify endpoints Change-Id: Ibf09e8f0e2cefb0d45755225c051f2a11fe43860
* Separate out gluster-block stability TCNitin Goyal2019-07-051-145/+0
| | | | | | | move gluster-block stability TC to new module named 'gluster_stability/test_gluster_block_stability.py'. Change-Id: Iac1f432e438a2815bdc2115ab19e0170e46930c1
* Add TC resize PVC with invalid sizeArun Kumar2019-07-011-16/+30
| | | | | | | | This test case checks if invalid size is passed, size of PVC does not change. Verify the size of PVC and I/O can be performed on the volume attached to PVC. Change-Id: Ia833c76a6d9990ebbac78759c54dc7d28f530ec6
* Add TC create SC with invalid clusterid for block and file volumesArun Kumar2019-06-261-0/+2
| | | | | | | Create storage class one for file and one for block volumes with invalid clusterid. Create PVC from those SC's and it should not go in bound state Change-Id: I73848a4e213cc34e374eddbe0eb27d3e35e27d71
* Restructure "initiator_side_failures" class instance methodNitin Goyal2019-06-241-60/+60
| | | | | | | Restructure initiator_side_failures and make another function out of it which can be used for verification of iscsi and multipath at many places Change-Id: I6bc4b9e7679bee413d726be426df5796eaf97fc8
* Use 'cmd_run' func instead of 'g.run' func in openshift_ops.pyValerii Ponomarov2019-05-291-4/+8
| | | | | | | | | | | | | It will allow us to recreate SSH connections when it is broken. Also, do following additional things: - Fix 'podcmd' module, where 'user' argument for 'g.run' is missing in it's wrapper. - Use "g.log.error" command to log errors when they appear inside of the 'cmd_run' func. - Delete several unused commands, instead of fixing them. - Update several test cases's logic due to the changes in the libraries. Change-Id: I908e5adcff739b6ab3a4aefaebfe46abdee22655
* Skip several test cases due to the open bug BZ-1714292Valerii Ponomarov2019-05-291-0/+4
| | | | Change-Id: I5cada2a8dff40516310de38e23b98de2a64efc11
* Pick up name of the glusterblock provisioner dc dynamicallyValerii Ponomarov2019-05-281-8/+10
| | | | | | | Instead of crafting it manually. It allows us to use both approaches from 'openshift-ansible' lib for naming of this dc - old and new ones. Change-Id: Iac4513a50de51aefd401d2af4c798366ec10b02a
* Make 'validate_multipath_pod' func raise exceptions in case of errorsValerii Ponomarov2019-05-281-6/+36
| | | | | | | | | Now, this function hides info about the real problem which caused error So, make it raise exceptions in place with info about error for ease of debugging. Also, fix it's usage providing mpath always. Change-Id: I8cbc62a12f3999e3d64fb6b504865f30b1602cf1
* Add TC expansion of block hosting volume using heketiNitin Goyal2019-05-231-0/+80
| | | | | | | This TC verify the expanshion of BHV and after expanding volume verify that space is usable. Change-Id: I2621aedc1cbddcad374fe52013aba2d48acfd1e0
* Add TCs creation of block vol greater than default size of BHVNitin Goyal2019-05-031-1/+128
| | | | | | | The purpose of TCs is to validate that block device size cannot be more than the block hosting volume. Change-Id: I35aac44bdc2b3e72f1de9ab167e1468ece932f14
* Skip test case "test_pvc_deletion_while_pod_is_running" for OCP 3.9vamahaja2019-04-221-0/+4
| | | | | | | "test_pvc_deletion_while_pod_is_running" test case is not supported on OCP 3.9. Added skip statement for OCP 3.9 Change-Id: I5af35145c35371e7eed37d78c2fb9ce23dc9ffa6
* Fix support of OCP3.6 and 3.7Valerii Ponomarov2019-04-114-2/+27
| | | | | | | Project has lots of inconsistencies with OCP3.6 and 3.7 So, fix it. Change-Id: I8d38773637b779e1c2e1631568f100c1ab1fdd50
* Add test case PVC resize when heketi is downnigoyal2019-04-111-1/+71
| | | | | | | Verify that when heketi is down PVC expansion should not work. Bring heketi up and running, when heketi is up expansion should work. Change-Id: I4303a82581a91db220ff226f53dea7dc49d22d93
* Add checks for PVC creation without vol_name prefixArun Kumar2019-03-291-0/+28
| | | | | | | Check if volume name is combination of string 'vol_' and volume id and check volume is present in heketidb and gluster cluster. Change-Id: I755a6447fe653a4ba148798f4c0317aa08a4a4eb
* Unskip TCs with recreation of Gluster PODsValerii Ponomarov2019-03-192-10/+14
| | | | | | | | BZ-1632873 was fixed, hence, unskip test cases which were skipped due to this BZ. Also, make it run only on containerized Gluster clusters. Change-Id: Iee49a303c4f191652d1c94c18e830e6d2fb4e381
* Unskip 'test_gluster_block_provisioning_with_valid_ha_count' tcValerii Ponomarov2019-03-181-1/+0
| | | | | | Because BZ-1609703 was fixed. Change-Id: I86e7690e8a190d9f913fb0140780a0bcbcce1e72
* Reorder lib files removing redundant dir layerValerii Ponomarov2019-03-184-39/+40
| | | | | | | | | | | | 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
* Rename test modulenigoyal2019-03-072-0/+0
| | | | | | | | Rename test module to remove P0 from its name. Which will let us comsume same files for adding other priority test cases as well. Change-Id: I66cbb34ba7ecee1130b7d55952310955a9fe8722
* Reorder test files removing redundant dirsValerii Ponomarov2019-03-065-0/+1453
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