summaryrefslogtreecommitdiffstats
path: root/tests/functional/heketi/test_heketi_create_volume.py
Commit message (Collapse)AuthorAgeFilesLines
* [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>
* [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] 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>
* [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 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 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 bricks count and bhv total countSushilG962020-04-301-11/+48
| | | | | Change-Id: I19c6146b4d9fbc366663bb53e97c567cc8b24f68 Signed-off-by: susgupta <susgupta@redhat.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-311-1/+1
| | | | | Change-Id: I43ebf7f489f0e80f33992edc7cea6a54dcc8a531 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [TestFix] Add pytest marker for tier1 test casesvamahaja2020-03-171-0/+5
| | | | | Change-Id: I1d497a9b61762e68558026ddc49e5269b0354ce1 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [TestFix] Add pytest marker for tier0 test casesvamahaja2020-03-131-0/+4
| | | | | Change-Id: I29093a09c3f0cc09eaa9c6d94bad882c0bafd91c 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
* 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>
* 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 TC stop glusterd on 2 nodes and create heketi volumeArun Kumar2019-09-171-0/+38
| | | | | | | Stop glusterd on 2 of the nodes/pods in the cluster containing alteast 5 gluster nodes and verify creation of volume using heketi. Change-Id: I94570f5bbfa20c19f11f4e14e29d2b1a40612fc5
* Fix pep8 errors in the files of the 'tests' dirValerii Ponomarov2019-08-301-5/+4
| | | | Change-Id: I26c750c68055c6cc50de8015942d0d9725819aaf
* Add TC create volume and validate in heketi topology infoArun Kumar2019-07-191-0/+74
| | | | | | | | Create 3 volumes using heketi-cli command, verify their presence in heketi topology info, delete 2 volumes and validate their deletions and presence of 3rd volume in heketi topology info Change-Id: I78298d2aec21ff8031ff01efd53f11ba31e269c9
* Make Heketi commands run on a Heketi POD when main command failsValerii Ponomarov2019-07-111-4/+3
| | | | | | | | It happens that heketi client located out of the Heketi POD may fail not reaching the server side. So, add back-up approach where we run Heketi commands on a Heketi POD when main commands fail. Change-Id: Ie6ae5be82082f34426f9288b02575e3abd4940f5
* Reorder lib files removing redundant dir layerValerii Ponomarov2019-03-181-14/+16
| | | | | | | | | | | | 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
* Reorder test files removing redundant dirsValerii Ponomarov2019-03-061-0/+263
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