summaryrefslogtreecommitdiffstats
path: root/tests/functional
Commit message (Collapse)AuthorAgeFilesLines
* [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
* Merge "Delete unused files and dirs"Valerii Ponomarov2018-12-147-0/+0
|\
| * Delete unused files and dirsValerii Ponomarov2018-12-107-0/+0
| | | | | | | | | | | | | | | | This project has lots of empty files and dirs in addition to not usef files. So, remove all of it to improve navigation through the project. Change-Id: Ib8df2165640e0c59fcee9bb6909ec8c74cb9623f
* | [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
* [CNS-1314][CNS-1285] Restart gluster block volumes and validatevamahaja2018-12-101-7/+130
| | | | | Change-Id: Ib7e3125e5120a91fe431816b33be4d4e6f15078e Signed-off-by: vamahaja <vamahaja@redhat.com>
* 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
* Merge "Move functions with creation of SC, PVC and POD objects to common place"Valerii Ponomarov2018-12-074-342/+90
|\
| * Move functions with creation of SC, PVC and POD objects to common placeValerii Ponomarov2018-12-054-342/+90
| | | | | | | | | | | | | | Removing duplication of code. Also, reuse it in places where it is already duplicated. Change-Id: I2f88b4921cb7bec01d17e1ddeaeda16e0d198493
* | Merge "[CNS-1246] [CNS-1247] test-cases for heketi metrics"Valerii Ponomarov2018-12-051-0/+36
|\ \ | |/ |/|
| * [CNS-1246] [CNS-1247] test-cases for heketi metricsnigoyal2018-12-031-0/+36
| | | | | | | | | | | | | | CNS-1246 - test case for veryfying cluster count of heketi metrics CNS-1247 - test case for veryfying nodes count of heketi metrics Change-Id: Id6c6bdb9bf212b4c302ff56e2f68b5e6e4348143
* | Merge "[CNS-778] Refactor and fix 'test_to_check_entry_in_fstab_file' TC"Valerii Ponomarov2018-12-032-132/+54
|\ \
| * | [CNS-778] Refactor and fix 'test_to_check_entry_in_fstab_file' TCValerii Ponomarov2018-11-202-132/+54
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | List of changes: - Fixed bug, where test didn't fail in case volume brick was not found in fstab file. It was only logging message related to it. - Fixed bug, where we searched for all the brick paths in one single Gluser POD, such thing should have been failing always. Above mentioned bug has hidden this one. - Fixed bug, where test was failing in case we didn't have passwordless SSH connection between test-runner and heketi-client nodes. - Added Heketi volume cleanup for case our test fails before the step with Heketi volume deletion. - Removed redundant copy operations of fstab files. Instead, used 'cat' shell command for getting inner data of fstab files. Change-Id: I76c6a59ab9f40cc5e94923fcc82e5e15f640714a
* | | 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-276-102/+113
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Add more details in case of error for CNS-550 tc"Valerii Ponomarov2018-11-231-1/+20
|\ \ | |/ |/|
| * Add more details in case of error for CNS-550 tcValerii Ponomarov2018-11-201-1/+20
| | | | | | | | | | | | | | | | | | If 'test_blockvolume_create_no_free_space' tc fails, then we get too few info about the error. So, add more data to the error message. In addition, add 2 sec sleep to avoid races getting list of block hosting volumes. Change-Id: I53cdff368b4f9813a31226921d0554e98790c7a1
* | Merge "Fix pep8 W605 rule violation"Valerii Ponomarov2018-11-202-9/+9
|\ \
| * | 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
* | | Merge "Refactor test cases CNS-797 and CNS-798"Valerii Ponomarov2018-11-202-193/+193
|\ \ \ | |_|/ |/| |
| * | Refactor test cases CNS-797 and CNS-798Valerii Ponomarov2018-11-132-193/+193
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Do following improvements: - Calculate distributed replica vol size dynamically based on the current free space on the heketi devices. - Add check for amount of bricks. - Cleanup volume more correctly. - Check free space after deletion considering the size of deleted vol. - Rename module. - Move module out of "heketi_tests" to the parent dir called "heketi". Change-Id: I42fdfadc97157595857e5a106760391281f59a1a
* | | Merge "Fix 'test_to_check_deletion_of_node' test"Valerii Ponomarov2018-11-201-39/+44
|\ \ \ | |_|/ |/| |
| * | Fix 'test_to_check_deletion_of_node' testValerii Ponomarov2018-11-131-39/+44
| |/ | | | | | | | | | | | | | | | | | | By doing following: - Pick up only online nodes with only online devices. - Create volume to make sure we have some usages in any of a node devices. - Check that node hasn't been deleted at the end of the test. Change-Id: I73154642c9034f84b6748c5cd9df43b67eb01006
* | Merge "Fix CNS-945 test case"Valerii Ponomarov2018-11-191-1/+1
|\ \
| * | 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
* / 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>
* Merge "[CNS-1265] Recreate PVCs to make Gluster reuse released space"Valerii Ponomarov2018-11-071-0/+95
|\
| * [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
* | Merge "Add test cases for gluster-block"Valerii Ponomarov2018-11-061-0/+90
|\ \
| * | Add test cases for gluster-blockAshmitha Ambastha2018-11-071-0/+90
| |/ | | | | | | | | Change-Id: I5ce399b39201dfb09d4ad459a039d938596a71e4 Signed-off-by: Ashmitha <asambast@redhat.com>
* | Merge "test cases for heketi metrics"Valerii Ponomarov2018-11-061-0/+272
|\ \
| * | test cases for heketi metricsnigoyal2018-11-061-0/+272
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CNS-1243 - Heketi_metrics_generate CNS-1244 - Heketi_metrics_validating_VolumeCount_on_creation CNS-1245 - Heketi_metrics_validating_VolumeCount_on_deletion CNS-1262 - Heketi-metrics_validating_heketi_pod failure Change-Id: Idb863d1ceaf555dfc2a9cff863b97cda65a816f6 Signed-off-by: nigoyal <nigoyal@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>
* | [CNS-1393-1395] Restart gluster services then validate volumesvamahaja2018-11-052-0/+233
| | | | | | | | | | Change-Id: I58f8628c352556ac30c31777707b52cc2aea48ac Signed-off-by: vamahaja <vamahaja@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
* Merge "[CNS-544][CNS-545] Added test cases for storage class parameters"Valerii Ponomarov2018-11-021-5/+148
|\
| * [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>
* | Merge "CNS: adding testcase CNS-450 - Restart heketi pod"Krishnaram Karthick Ramdoss2018-11-021-0/+63
|\ \
| * | CNS: adding testcase CNS-450 - Restart heketi podApeksha D Khakharia2018-10-311-0/+63
| | | | | | | | | | | | | | | Change-Id: Ie68628cb0f083fd5cd1ec9cd88a4c490bfca2e88 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* | | Merge "CNS: CNS-542 Restart gluster-block provisioner pod"Valerii Ponomarov2018-10-311-0/+45
|\ \ \ | |_|/ |/| |
| * | CNS: CNS-542 Restart gluster-block provisioner podApeksha D Khakharia2018-10-311-0/+45
| |/ | | | | | | | | Change-Id: Icb843c2d001ac707a7bf1fce177cb4fb63d386a9 Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
* | Merge "[CNS-921] Try to create PVC with underscore in the vol name prefix"Valerii Ponomarov2018-10-311-1/+2
|\ \