summaryrefslogtreecommitdiffstats
path: root/tests/functional/common/arbiter
Commit message (Collapse)AuthorAgeFilesLines
* Reorder test files removing redundant dirsValerii Ponomarov2019-03-062-727/+0
| | | | | | | | | | 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
* Merged HeketiBaseClass to BaseClassvamahaja2019-02-221-2/+2
| | | | | | | | | | | Renamed cns_baseclass.py to baseclass.py with updated BaseClass. Merged HeketiBaseClass to BaseClass with appropriate changes. Updated delete_volumes and delete_block_volumes methods used in test case method with heketi_delete_volume and heketi_blockvolume- delete. Change-Id: I8f623f1692cd863dc8ff041f7e8525ee0dc84f7b Signed-off-by: vamahaja <vamahaja@redhat.com>
* Add Heketi version checksnigoyal2019-02-041-0/+5
| | | | | | | | | Add Heketi version checks to the test cases and Heketi libraries. In case of incompatible Heketi version in a setup, test cases will be skipped and direct usage of Heketi libraries will cause them to raise the NotImplementedError exceptions. Change-Id: I462e76f615165140f2a8c7e796c1c582b8f4dc91
* [RHGSQE-108] Removed polarion test case ID's and updated descriptionvamahaja2019-01-111-12/+14
| | | | | Change-Id: I9ab3c6bea56a02f76ce818ee095ffe4afc0e64c0 Signed-off-by: vamahaja <vamahaja@redhat.com>
* arbiter volume expand with avg file sizenigoyal2019-01-111-0/+74
| | | | | | | | Trying to create pvc with defined arbiter file size and verifying that when we are expanding volume it is expanding according to avg file size Change-Id: I5c39339f70702bf685c237ae16e21f54384e51db
* Fix 'verify_arbiter_brick_able_to_contain_expected_amount_of_files' tcValerii Ponomarov2019-01-081-22/+19
| | | | | | | | | This test case talks to the Gluster PODs directly. It is not compatible with Standalone Gluster clusters. So, fix this test by reusing special common function, which allows us to abstract from Gluster cluster deployment type. Change-Id: Ib131984ac0a4623d1d847f9961be26da573d8513
* Refactor config optionsValerii Ponomarov2018-12-251-7/+2
| | | | | | | | | | | | | | | | | | | Doing following: - Rename top-level config option group called 'cns' to the 'openshift'. - Rename 'cns.setup.cns_project_name' option to the 'openshift.storage_project_name'. - Rename 'scale' option to the 'openshift.scale'. - Delete ''devices' and 'zone' options from 'gluster_servers' config group. - Delete 'cns.setup.cnd_username' option as unneeded. - Delete 'cns.setup.cnd_password' option as unneeded. - Delete 'oc_login' common function as unneeded after deletion of 'cns.setup.cnd_username' and 'cns.setup.cnd_password' options. - Remove 'Cns' word from base classes. - Keep backwards compatibility for old options to make transition be smooth. Change-Id: I04ddbbad5f64ffeac79a6744480d33a263d63001
* changing test function namenigoyal2018-12-211-1/+2
| | | | | | | The function name was confusing because now we are verifying functionality of node tags and device tags. So changing the name Change-Id: I00a2a12cc8b74e5bf9b76018698738550ea0c613
* [CNS-1523][CNS-1524] arbiter expand test casenigoyal2018-12-201-0/+81
| | | | | | | this test case is verifying that arbiter pvc expand is working properly when tags are set on nodes and devices Change-Id: I7118e5dd94856e36cdfa438f159a39604c50e7c0
* [CNS-954] arbiter expand test casenigoyal2018-12-131-0/+25
| | | | | | | this test case is verifying that arbiter pvc expand is working properly Change-Id: I52c52c9f299ef53c6c8618677d4f3425b5ba2051
* Fix error message substituions in 'test_arbiter' modulenigoyal2018-12-121-65/+52
| | | | | | | | | | Several existing arbiter test cases have common bug, where we substitute incorrect value in error messages and do it in duplicated code. So, move that code to separate method, reusing it in test cases and fix substitution error. Change-Id: I7787515a4e0cd50c688034dbb41649d96605b2ae
* Add cmd-runner function which is gluster deployment type agnosticValerii Ponomarov2018-12-071-3/+0
| | | | | | | | | | | | | | For the moment, most of the test cases and lib functions in 'openshift_ops' python module support only containerized Gluster clusters. So, to be able to support standalone Gluster clusters in addition to the containerized ones, add special function which allows us to run shell commands on both types of Gluster clusters autodetecting the type. As an example, update one of the existing lib functions making all the existing 'arbiter' test cases work in both cases. Change-Id: Iad69d7dc692c87eb70ed5caf780cb688f274bf02
* Move functions with creation of SC, PVC and POD objects to common placeValerii Ponomarov2018-12-051-49/+13
| | | | | | | Removing duplication of code. Also, reuse it in places where it is already duplicated. Change-Id: I2f88b4921cb7bec01d17e1ddeaeda16e0d198493
* Cleanup and improve configurationValerii Ponomarov2018-11-271-35/+41
| | | | | | | | | | | | | | | | | Our config file has dead options as well as unintuitive option names. So, do following improvements: - Delete unused config options from config file example. - Delete setting of dead config options to the base class. - Rename 'storage_class1' and 'storage_class2' config option groups to the 'file_storage_class' and 'block_storage_class' respectively to make it more understandable. - Remove 'secrets' config option group as redundant. Secret names get calculated from custom prefix and randomly generated string. Namespace is used the same as for storage classes. And its 'type' was always storage class's provisioner value. Change-Id: Ifa6d0ab430e8d69591f49bc7bf4c258151662550
* Fix CNS-945 test caseValerii Ponomarov2018-11-141-1/+1
| | | | | | | | Latest version of OCS started using a bit more data for system needs. So, fix CNS-945 test case reducing a bit the expected available free space of PVC. Change-Id: I8e69f75479fac4a7743b8126d96ec582405bfa35
* [CNS-1265] Recreate PVCs to make Gluster reuse released spaceValerii Ponomarov2018-11-021-0/+95
| | | | | | | | Create and delete lots of volumes so summary vol size is bigger than total available size making sure Gluster really reuses space of deleted volumes. Change-Id: I3cdc85df488a66cfed55c92438a126736dc06ff2
* [CNS-989,997] Create arbiter vol setting 'required' tagValerii Ponomarov2018-10-171-7/+87
| | | | | | | | Create arbiter volumes after setting "arbiter:required" tag either to one node or its devices. All other nodes or their devices are set with "arbiter:disabled" tag. Change-Id: Ie5f26e194f97b2a0923132c485b445ead9672843
* [CNS-1182-1190] Create arbiter volumes specifying avg file sizeValerii Ponomarov2018-10-171-2/+98
| | | | | | | | Add data-driven test case where we create arbiter volume and verify that we are able to create expected amount of files on arbiter brick mounts. Change-Id: I9c719be01be24f4a92d1ed73ee9f1e71ee11bb88
* [CNS-942] Add distributed arbiter vol creationValerii Ponomarov2018-10-171-21/+154
| | | | Change-Id: I9935e067257dbf8f1e267e13efb72b1b0b3cf772
* CNS: moving libraries from dynamic_provsioning.py to openshift_ops.pyApeksha D Khakharia2018-10-101-4/+2
| | | | | Change-Id: I84b0399bad021fed29044c1946fdf27cccc2b6c8 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* [CNS-945] Add arbiter test caseValerii Ponomarov2018-09-241-0/+69
| | | | | | Where we create POD with mounted arbiter volume and write data to it. Change-Id: I3a757f7fd71a0fd3f9f7d3cea463bbba5e399ec4
* [CNS-944] Add test with arbiter volume creationValerii Ponomarov2018-09-102-0/+122
Change-Id: I257f3e6a7389c9f15a4388c241e787782c186d14