summaryrefslogtreecommitdiffstats
path: root/tests/functional/common/provisioning
Commit message (Collapse)AuthorAgeFilesLines
* Reorder test files removing redundant dirsValerii Ponomarov2019-03-065-1453/+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
* Add TCs creating block-PVCs and app pods changing node scheduling policynigoyal2019-03-061-1/+147
| | | | | | | Add 2 test cases, where one verifies creation of an app pod on the Gluster node and another on the separate node Change-Id: I99dfc5db7fa74d0f69115cfed470f72e66b1a256
* Add tc creating and verifying pvc with volname prefix on an app podroot2019-03-051-0/+14
| | | | Change-Id: I519ce5c26f7bd6480a48512744626ba812524413
* Add CRS support for 'test_glusterblock_logs_presence_verification' tcValerii Ponomarov2019-03-041-20/+17
| | | | Change-Id: I95154066af3e574059199ced18239f7e34c95335
* Merged HeketiBaseClass to BaseClassvamahaja2019-02-224-5/+5
| | | | | | | | | | | 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>
* [RHGSQE-108] Removed polarion test case ID's and updated descriptionvamahaja2019-01-114-31/+42
| | | | | Change-Id: I9ab3c6bea56a02f76ce818ee095ffe4afc0e64c0 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Fix 'test_glusterblock_logs_presence_verification' tcValerii Ponomarov2019-01-021-2/+3
| | | | | | | | In this tc we filter pod by dc name with hard-coded project name. It is completely incorrect approach. So, fix it by getting project name from config. Change-Id: I062bc22c9cbf22bbb101a48bad94d0540a3c4bb8
* [CNS-433][CNS-436] Fix for failed test casesvamahaja2019-01-022-25/+21
| | | | | Change-Id: I2379043b771cc654eb227d457223b3a24434fd21 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Refactor config optionsValerii Ponomarov2018-12-254-19/+19
| | | | | | | | | | | | | | | | | | | 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
* Add 'openshift_version.py' moduleValerii Ponomarov2018-12-171-3/+2
| | | | | | | | | | | | | | | | | | | | | With growth of amount of test cases and supported OpenShift versions we need to perform more and more version comparisons. So, this module is designed to ease such operations. Usage example: from cnslibs.common import openshift_version version = openshift_version.get_openshift_version() if '3.9' < version <= '3.11': # Do stuff for OpenShift 3.11 or 3.10 elif version <= '3.9': # Do stuff for OpenShift 3.9 or lower else: # Do stuff for higher versions than 3.11 Also, reuse it in all the existing places with version comparisons. Change-Id: Ibc27eff20ed0dff80deca73d5d156e23bda57439
* Make 'test_storage_class_cases' module support standalone GlusterValerii Ponomarov2018-12-101-3/+3
| | | | | | | | | | By doing following updates: - Add and reuse lib function which calculates amount of Gluster PODs or Gluster nodes. - Make 'get_gluster_blockvol_info_by_pvc_name' lib func support standalonge Gluster clusters in addition to the 'containerized' ones. Change-Id: I6a12bb4c30b1e6f8698a614abefc248149773302
* Move functions with creation of SC, PVC and POD objects to common placeValerii Ponomarov2018-12-053-293/+77
| | | | | | | Removing duplication of code. Also, reuse it in places where it is already duplicated. Change-Id: I2f88b4921cb7bec01d17e1ddeaeda16e0d198493
* Merge "[CNS-928] Create PVC using default Storage Class"Valerii Ponomarov2018-11-301-0/+55
|\
| * [CNS-928] Create PVC using default Storage ClassValerii Ponomarov2018-11-291-0/+55
| | | | | | | | | | | | | | We should be able to create PVC not specifying Storage Class, but having 'default' one. So, add test to cover such feature. Change-Id: Id1d6f14879bbc4af4955af4984ce91c2484fb55f
* | [CNS-1041] Resize PVC using all the available free spaceValerii Ponomarov2018-11-291-14/+46
|/ | | | | | | We expect that we are able to resize PVC using all the available free space, so add appropriate test case. Change-Id: I1db494d5d7e888fca21bfe1492bfe35e35c3df6a
* Cleanup and improve configurationValerii Ponomarov2018-11-274-59/+67
| | | | | | | | | | | | | | | | | 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 pep8 W605 rule violationValerii Ponomarov2018-11-192-9/+9
| | | | | | | | | | Now, string objects, which contain backslash symbol, should be prefixed with 'r' letter which transforms it to 'raw string literal'. Info: https://docs.python.org/3/whatsnew/3.6.html#deprecated-python-behavior Change-Id: I8d5c1c1c022cae9d163dea2e0613c9ca24ddad08
* Remove skip of CNS-584 tcnigoyal2018-11-141-4/+0
| | | | | | | | | | | | Stop skipping CNS-584 tc with reference to the BZ-1644696 bug. Instead, add possibility to avoid this "blocker" bug, which is not the point of test. The reason is that in kube 3.11 we have "synchronous" delete operation by default. But we did have it as "async" in all the previous kube versions. So, add possibility to distinguish kube versions adding additional "--wait=false" option in kube 1.11+ versions. Change-Id: Ie92abcf4b67f7237092d62b7e8aa180d9877853c
* [CNS-1039] Add tc attempting to shrink PVC sizeroot2018-11-091-0/+41
| | | | | | | | | Shrink operation is not allowed for gluster volumes in OCS, so adding a test case which makes sure that the test returns an error when an attempt is made to shrink an existing PVC. Change-Id: Iab929e157d3c9324a0581b0c220aed9681ec0035 Signed-off-by: Rachael George <rgeorge@redhat.com>
* [CNS-1391] test case Retain policy - gluster-blocknigoyal2018-11-061-8/+77
| | | | | | it is veryfying the retain policy of gluster-block pvc Change-Id: Id69ce61e5d9f040133d25e88c504e6755a9f03fb
* Merge "[CNS-584] [CNS-1390] test cases for glusterfs"Valerii Ponomarov2018-11-061-6/+108
|\
| * [CNS-584] [CNS-1390] test cases for glusterfsnigoyal2018-11-061-6/+108
| | | | | | | | | | | | | | | | | | | | | | CNS-584 Verify PVC deletion while pod is running This test case is verifying the glusterfs pvc deletion while pod is running and expectation is that pvc should not delete CNS-1390 - Retain policy - glusterfs - delete pvc This test case is verifying the retain policy of pvc and expectation is that when we delete pvc pv should not get deleted. Change-Id: Idefa36afdd8bc80835631863370273b4c86bccfc
* | [CNS-926] test case for custom volname prefixnigoyal2018-11-061-17/+47
|/ | | | | | | | CNS-926 - custom_volname_prefix_blockvol This test case is verifying the volume name prefix option in storage class Change-Id: I738e97520670bae19b7582217a98c2769b78808f Signed-off-by: nigoyal <nigoyal@redhat.com>
* Merge "[CNS-1392] Recreate app POD with attached block pv"Valerii Ponomarov2018-11-051-0/+25
|\
| * [CNS-1392] Recreate app POD with attached block pvValerii Ponomarov2018-11-021-0/+25
| | | | | | | | | | | | | | We should be able to recreate application PODs when Gluster block volume is attached to it. Change-Id: Iad240925ba43db11ab84863f182e282253789924
* | [CNS-574] Attach PVC to multiple app PODsValerii Ponomarov2018-11-021-0/+32
|/ | | | | | | Make sure we are able to attach file-volumes to several application PODs at once. Change-Id: If53e75d6de51f05e47e3f936ba62996b05a833c6
* [CNS-544][CNS-545] Added test cases for storage class parametersvamahaja2018-11-021-5/+148
| | | | | Change-Id: Iae63d250d4e0277ee7559e73df6114faf918c283 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [CNS-921] Try to create PVC with underscore in the vol name prefixValerii Ponomarov2018-10-291-1/+2
| | | | | | | Add test case which checks that we are not able to create PVC which has underscore symbol ("_") in the custom volume name prefix. Change-Id: I24aa3918371627df890c3996da36d8931d01dd3c
* Merge "CNS: adding testcases for storage class block"Krishnaram Karthick Ramdoss2018-10-291-38/+63
|\
| * CNS: adding testcases for storage class blockApeksha D Khakharia2018-10-271-38/+63
| | | | | | | | | | | | | | CNS-725, 727, 728 Change-Id: I6fb8858c018f02b06cd6d011cb01939505de6d19 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* | CNS[716] add testcase for sc mandatory parameters blockApeksha D Khakharia2018-10-261-7/+17
| | | | | | | | | | Change-Id: Ia289806f9f26ba12eb3df079603d3ba660f7c4a4 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* | Merge "CNS: CNS-438 DynamicProvisioning_GlusterFile_heketiDown_PVC_Delete"Valerii Ponomarov2018-10-251-1/+41
|\ \
| * | CNS: CNS-438 DynamicProvisioning_GlusterFile_heketiDown_PVC_DeleteApeksha D Khakharia2018-10-251-1/+41
| | | | | | | | | | | | | | | Change-Id: I08da2de80d77c1c3f4ab66d2d983a6730d900bfb Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* | | [CNS-1040] Resize PVC exceeding available free spaceValerii Ponomarov2018-10-241-21/+93
|/ / | | | | | | | | | | | | Make sure that after failed attempt of PVC resize application POD continues to work and we are able to write data. Change-Id: I1dda1e4698ca4e569aa67740c2e9a5dca9a4e7bf
* / CNS-439: adding heketi_down_pvc_delete caseApeksha D Khakharia2018-10-241-1/+41
|/ | | | | Change-Id: Id3b679cf3193b36bfd10fc498fb0ba930c5d2536 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* CNS: adding libraries and 2 testcases for pv resizeApeksha D Khakharia2018-10-181-0/+129
| | | | | Change-Id: Idae22a28e4da867fd0567cbec49760d6f3a374f6 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* CNS: moving libraries from dynamic_provsioning.py to openshift_ops.pyApeksha D Khakharia2018-10-103-13/+9
| | | | | Change-Id: I84b0399bad021fed29044c1946fdf27cccc2b6c8 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* Refactor 'test_dynamic_provisioning_block_p0_cases' moduleValerii Ponomarov2018-10-041-220/+148
| | | | | | | | | | | Improvements: - Stop using 'create_mongodb_pod' function, it is replaced with lightweight analog, which works ok on OCP3.11 - Pick up Glusterfs POD for recreation intelligently in 'gluster POD failure' test case. - Create secrets and storage classes from CLI, not using files. Change-Id: I28d819574533573e5f397e2d2db6f0433a59eb99
* Refactor 'test_dynamic_provisioning_p0_cases' moduleValerii Ponomarov2018-10-041-289/+193
| | | | | | | | | | | Improvements: - Stop using 'create_mongodb_pod' function, it is replaced with lightweight analog, which works ok on OCP3.11 - Pick up Glusterfs POD for recreation intelligently in 'gluster POD failure' test case. - Create secrets and storage classes from CLI, not using files. Change-Id: I26ba5046014b84caacbf9ab94a2509b4324e112f
* CNS: adding testcases for storage classApeksha D Khakharia2018-09-061-0/+71
| | | | | | | CNS-708,709,713,714,715 Change-Id: I61965e6d8b17b4bb49b10ebe26140945da9c4576 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* CNS-442 storage-class mandatory parametersApeksha D Khakharia2018-08-271-0/+56
| | | | | Change-Id: Ie3169e77e542201167fa57bee710e600b25b5a74 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* Add new library for creation of DC with app PODsValerii Ponomarov2018-08-231-45/+53
| | | | | | | | | | Constant I\O will run on its PODs. PODs are based on lightweight image called "cirros", which weighs about 10Mb. I\O will run on the mounted PV from PVC we specified in function arguments. Reuse this new function in couple of tests to show that it works. Change-Id: I7ae6c252a35f566ec674c8f8c17847fc37b554b8
* CNS: new library - heketi-scale-pod, pod-state-readyApeksha D Khakharia2018-08-062-111/+34
| | | | | Change-Id: I97eb3ae1d0af48d405a0187fe585e2732658f809 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* [CNS-533] Add test for glusterblock logs verificationValerii Ponomarov2018-07-261-166/+116
| | | | | | | | | | | Also, 3 new library functions for: - secret creation - storage class creation - pvc creation Which use "stdin" creation approach without files. Change-Id: Ifba768deba11048ede207d72af4d480898e8f5fc
* Fix concurrency issue in heketi pod failure test casesValerii Ponomarov2018-07-162-0/+12
| | | | | | | | | | In those tests, we scale down amount of heketi pods to 0 and then scale it up back to amount of 1. And right after it, we perform request for list of Heketi PODs, not waiting for Heketi POD appearing in list. So, fix it by adding waiting for 2 sec which is enough time for Heketi POD to appear in the POD list. Change-Id: I5361d5c6eb98ac46b5f49a70edd0a88d550ab0b8
* Fix broken dynamic_provisioning testsValerii Ponomarov2018-05-102-41/+78
| | | | | | | | Fix 2 autotests, remove skip decorator for them. And rework logic of mongodb template uploading for mongodb pod, so it takes couple of seconds instead of minutes. Change-Id: Ib2b09364ae435b9784b76c2f2581c197128f9649
* CNS: adding testcase and library for volnameprefixApeksha D Khakharia2018-05-081-12/+30
| | | | | Change-Id: I84968bcfe19aa8af73f185be178079a8373915b3 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* Fix picking up of the heketi serviceValerii Ponomarov2018-04-052-8/+16
| | | | | | | | | | Doing 2 following things: - Add 'heketi_service_name' config option to define the name of Heketi service in OCP. Without it we use hardcoded name 'heketi' which can be different on different setups. - Add switching to the CNS project for CNS tests. Change-Id: Iad308db7a1d63fc64ddd3f5b99823917b99c0706
* CNS: using oc command to get heketi-ipApeksha D Khakharia2018-03-062-24/+16
| | | | | Change-Id: Id3b4af5c9fdf69ca717e3c7aa86dd4c377bec510 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* CNS: adding same secret name while creating scApeksha D Khakharia2018-03-052-12/+12
| | | | | Change-Id: Ice9eb4ea0cb8e86914ca54b65b23fc494754b0fc Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>