summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* [Lib+tc]Add testcase and library to validate total count of volumesSri Vignesh2019-09-251-0/+22
| | | | | | | | Add library to check db results Validate count of volumes of heketi and db are same Change-Id: I6e75f2d8d5f19a94c1dced5a07f9c948b4de9ef4 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add TC to validate setting node and device tags for arbiter volrgeorge2019-09-251-10/+24
| | | | | Change-Id: Ife24a38ce9787de1d9cca71206a7f98be27da6c4 Signed-off-by: rgeorge <rgeorge@redhat.com>
* Add tc to create max number of BlockHostingVolumeskasturiNarra2019-09-241-1/+103
| | | | | | | | Validate whether creation of maximum supported blockvolumes doesn't have any impact to the functionality of gluster-block. Change-Id: I2a1503f527da2d1d916e87ce154e88bf9b5e1fa8
* Add TC delete a newly added deviceArun Kumar2019-09-241-0/+59
| | | | | | | Add a device, check there are no bricks on the device and verify the device deletion. Change-Id: I0e6adafb730e8d82926ce4e1d7b6b3c4799efc1b
* Fix two heketi zones test cases where we have 4 unique zonesValerii Ponomarov2019-09-201-2/+7
| | | | | | | | | By default, we create replica-3 file volumes. And when we have more than 3 Heketi nodes located in unique zones, we should check that our file volume is located in 3 unique zones, not bigger. So, fix this bug. Change-Id: Id82626425473f5e480ad73b0e17b7a0d675ba8ba
* 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
* Merge heketi node operation tests in one class and fix libraryvamahaja2019-09-193-221/+108
| | | | | | | | | | | | | | | | Fix consists of - - Use "**kwargs" approach in the "heketi_node_list" function as it is done in lots of other functions. - Parse the CLI output in the "heketi_node_list" function using regex instead of the splitting and stripping strings. - Combine test cases related to the same feature into one module - test_heketi_node_operations.py - Remove redundant checks which already exist in common libraries. - Remove unnecessary logging. Change-Id: I815ddfbbacb765140229e7630ec87a6bbaa6255b Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add testcase for passing clusterid when creating storage classAshmitha2019-09-181-0/+26
| | | | Change-Id: I4a6fd02f5713b4e86a9d70cdaffd3ca9369932f4
* 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
* Add testcase to validate path failureskasturiNarra2019-09-171-0/+80
| | | | | | | | | | | | | Simulate situation where we have block pvc attached to a pod and some I/O is created on the pod. After sending "delete" command to it, iqn's present on the nodes where app pods are running are expected to be logged out and migrated to a new node where new pods are running. Also data in the app pod is expected to be the same. Change-Id: Ia3a9e77902a29b942b151ea4874125423520f46f
* Add TC create and delete PVC's when block services are downNitin Goyal2019-09-161-1/+181
| | | | | | | Add new TC verify PVC's create and delete fails while gluster-blockd and tcmu-runner services are down on one node. Change-Id: I5acbcfd6c9a227c0cce21c62f5e162caf970aa22
* 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 cases for the heketi zones featureValerii Ponomarov2019-09-132-0/+202
| | | | | | | | | | Add 10 test cases for testing Heketi zones feature. To make all the Heketi zones test cases run in the single suite using the same cluster set 'common.allow_heketi_zones_update' config option to "True" value. By default it is set to "False" and only small set of test cases can run having such value. Change-Id: I69a1f7c96c9f52a06134e715e113ccd9b06764e6
* Fix test cases which are failing to delete volume after test completionvamahaja2019-09-134-55/+35
| | | | | | | | | | | In test case when we use large disk size, heketi takes time to create volume and due to timeout it gives error. Add fix in such test cases to check if volume created after getting an exception, get details of such volumes or raise exception in case it fails to create volume. Change-Id: I1c23a8c6558c23edf8947771e4f41a4bd3ffd66a Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add test case to try creation of storage class with duplicate nameAshmitha2019-09-121-1/+10
| | | | Change-Id: If30737958bc667264fc01fe81d411f406b501918
* Add test cases to perform heketi cluster operationsvamahaja2019-09-111-0/+96
| | | | | Change-Id: I5886680a0d5666c68c677893e0fb327be0e80760 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Change import statement to import all functions instead of all modulevamahaja2019-09-111-62/+67
| | | | | Change-Id: I9cffdb09826e993de6db3d558996c7b46c92a03f Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add tc to validate all gluster IP utilized by blockvolumeskasturiNarra2019-09-111-0/+67
| | | | | | | Testcase to check if all gluster nodes are utilized for block volume creation Change-Id: Id3762d3aff85a628ed972b19fbe15bfa223376c6
* Move func get_block_hosting_volume_by_pvc_name to baseclasskasturiNarra2019-09-091-24/+0
| | | | | | | | Move get_block_hosting_volume_by_pvc_name from test_restart_gluster_services to baseclass to be able to reuse it in other test modules. Change-Id: I65847792601b422293d4baed2ccade664ad7e54b
* Add TC abrupt reboot of initiator nodeNitin Goyal2019-09-061-0/+99
| | | | | | | Add new TC where we verify rediscovery of iscsi paths which happen after abrupt reboot of initiator node. Change-Id: I841e875881c47f8215d48821cd76c0399d43badc
* Add tc where we check vol size and brick amount config limits in HeketiValerii Ponomarov2019-09-061-0/+100
| | | | | | | | Add test case where we set and test Heketi config options to limit lower/upper allowed volume size and amount of bricks per volume. Change-Id: Ifb5cf64bba34dbf4e89f2fe9364263385a04cfa7
* Add testcase to validate creation of replica 2 volumeSri Vignesh2019-09-061-0/+30
| | | | | | | | Verify creation of replica 2 volume and validate the bricks created in gluster backend are same. Change-Id: I9fcc090e909d9bf578cf8eca6e12e4f785140e3f Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add testcase to creation of block volume with nameSri Vignesh2019-09-061-0/+20
| | | | | | | Validate creation of block volume with name Change-Id: I08ee31201d42a95f8a829eb54ce68421903fdbbf Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add TC verify heketi mount pointNitin Goyal2019-09-061-0/+50
| | | | | | | Add new TC where we verify given heketi mount point in volume info is working. Change-Id: Ia03af9ea6729cdfadf663abe46db7184a8b6fe2c
* Add testcase to create and delete distributed-replicated bhvSri Vignesh2019-09-061-5/+14
| | | | | | | | validate creation and deletion of distributed-replicated bhv. Change-Id: Ia42ace7e5be53fa7a00f88378575205e7fd5ba97 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add testcase to block device creation with different auth valuesSri Vignesh2019-09-051-0/+29
| | | | | | | | validate block volume creation with different auth values Change-Id: I820f65a5aaa5adc6cb58b16b18b6c93b22177d45 Signed-off-by: Sri Vignesh <sselvan@redhat.com>
* Add functionality to create more than 1 DC in parallelValerii Ponomarov2019-09-041-27/+8
| | | | | | | | We have test cases which create more than 1 app DC at once. So, add functionality to be able to create bunch of DCs in parallel and reuse it in one of test cases. Change-Id: Id606d02c31a919bbc6d49d59714dd5628c6a835d
* 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-3012-82/+78
| | | | Change-Id: I26c750c68055c6cc50de8015942d0d9725819aaf
* Add TC app pod deletion when initiator and target on same nodeNitin Goyal2019-08-281-0/+109
| | | | | | | This TC verify iscsi login and logout is happening properly on deletion of app pod when initiator and target on same node. Change-Id: Ia812cbbddef4fcab2f3762c930a38c0c8af62417
* Add test for arbiter volume deletion using PVCManisha Saini2019-08-281-0/+69
| | | | | | Change-Id: I8e3aed5e26eff3e76246c03cbd13f0f84b6a29f6 Signed-off-by: Manisha Saini <msaini@redhat.com> Signed-off-by: vamahaja <vamahaja@redhat.com>
* Fix test cases skipped due to closed bugsvamahaja2019-08-192-6/+38
| | | | | | | | 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-142-0/+50
| | | | | Change-Id: I5bb2760ff284cdc83424388bfdfc79d5fd112f21 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add OCS version check for test casesvamahaja2019-08-142-0/+31
| | | | Change-Id: I4196cb1395a3720e03f62473d11e5f46d797c355
* Add TC restart app pod when target node is downNitin Goyal2019-08-132-0/+90
| | | | | | | | | | | New TC insures that app pod is restarted properly when one of the target node is down. This patch includes libs of vmware api These libraries can perform VM operations like power on and off via vmware client api's. Change-Id: I11ad4dc3318cb0583de5882d8067ed7e30ea9962
* Reuse more common functions in the GlusterStabilityTestSetupvamahaja2019-08-131-89/+28
| | | | | Change-Id: Ia4e0fb737b16ea7bdc8ffd5ae44cdd418471552a Signed-off-by: vamahaja <vamahaja@redhat.com>
* Move "node reboot" logic from test case to librarySri Vignesh2019-08-121-69/+23
| | | | | | | | | Separate node reboot functionality from single test case to re-use it at other places. Update test case accordingly. Change-Id: Ib9a7f15d29237e4f21aafc408c074e799e706740 Signed-off-by: Sri Vignesh <sselvan@redhat.com> Signed-off-by: vamahaja <vamahaja@redhat.com>
* Workaround BZ-1727360 in the "get_gluster_pod_names_by_pvc_name" funcvamahaja2019-08-073-4/+6
| | | | | | | | | | "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>
* Add TestCase to validate BHV optionskasturiNarra2019-07-231-0/+59
| | | | | | | | This test case validates bhv options like features.shard,shard.size,shd max threads, and performance related ones Change-Id: I991f13e1b744486281e98813f169630a666eeb59
* Fix test case for create and verify pvc with volname prefixcrombus2019-07-221-0/+8
| | | | | | Add steps to verify endpoints Change-Id: Ibf09e8f0e2cefb0d45755225c051f2a11fe43860
* 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
* Add test case where BHV and BV are created and deletedkasturiNarra2019-07-191-0/+50
| | | | | Change-Id: I7ead23c46a472fee70d684c45f32f5e4efb0674f Signed-off-by: kasturiNarra <knarra@redhat.com>
* Add TC run IOs when tcmu-runner service is downNitin Goyal2019-07-191-0/+91
| | | | | | | | This test case verifies that when tcmu-runner is down we are able to run IOs on block volumes, and stoping tcmu-runner would effect gluster-blockd and gluster-block-target services. Change-Id: I0b4a23f7c2dce909f07a22893f83a6c1d0285091
* Make Heketi commands run on a Heketi POD when main command failsValerii Ponomarov2019-07-119-87/+47
| | | | | | | | 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
* Add TC run IOs when gluster-blockd service is downnigoyal2019-07-091-0/+60
| | | | | | | New TC verifies that it is possible to run IOs on block volumes when gluster-blockd service is down. Change-Id: Ia1de14d2990f833221f6725e9b0e48d77ef85c10
* Separate out gluster-block stability TCNitin Goyal2019-07-052-145/+114
| | | | | | | move gluster-block stability TC to new module named 'gluster_stability/test_gluster_block_stability.py'. Change-Id: Iac1f432e438a2815bdc2115ab19e0170e46930c1
* Reshufle TC modules to the correct componentNitin Goyal2019-07-044-0/+0
| | | | | | | Rename TC modules to appropriate name and move them to correct component. Change-Id: I87c9bb7822c17c955dd9c2d780ef08e4d4e0d7ee
* Add state arg in *_service_status_* libs in openshift-ops moduleNitin Goyal2019-07-022-5/+5
| | | | | | | | Before, these libraries could be used for 'active' state only. Make it accept one additional 'state' argument for possibility to use it for any state, not just one. Change-Id: I6d4fbd7584b308e3ad248213cb0ec3f4996f6437
* 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