| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
| |
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 2 test cases, where one verifies creation of an app pod on the
Gluster node and another on the separate node
Change-Id: I99dfc5db7fa74d0f69115cfed470f72e66b1a256
|
|
|
|
| |
Change-Id: I519ce5c26f7bd6480a48512744626ba812524413
|
|
|
|
| |
Change-Id: I95154066af3e574059199ced18239f7e34c95335
|
|
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
| |
Change-Id: I9ab3c6bea56a02f76ce818ee095ffe4afc0e64c0
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Change-Id: I2379043b771cc654eb227d457223b3a24434fd21
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Removing duplication of code.
Also, reuse it in places where it is already duplicated.
Change-Id: I2f88b4921cb7bec01d17e1ddeaeda16e0d198493
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
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
|
|/
|
|
|
|
|
| |
We expect that we are able to resize PVC using all the available
free space, so add appropriate test case.
Change-Id: I1db494d5d7e888fca21bfe1492bfe35e35c3df6a
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
| |
it is veryfying the retain policy of gluster-block pvc
Change-Id: Id69ce61e5d9f040133d25e88c504e6755a9f03fb
|
|\ |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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 - 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>
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
We should be able to recreate application PODs when
Gluster block volume is attached to it.
Change-Id: Iad240925ba43db11ab84863f182e282253789924
|
|/
|
|
|
|
|
| |
Make sure we are able to attach file-volumes to several
application PODs at once.
Change-Id: If53e75d6de51f05e47e3f936ba62996b05a833c6
|
|
|
|
|
| |
Change-Id: Iae63d250d4e0277ee7559e73df6114faf918c283
Signed-off-by: vamahaja <vamahaja@redhat.com>
|
|
|
|
|
|
|
| |
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
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
CNS-725, 727, 728
Change-Id: I6fb8858c018f02b06cd6d011cb01939505de6d19
Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
|
| |
| |
| |
| |
| | |
Change-Id: Ia289806f9f26ba12eb3df079603d3ba660f7c4a4
Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
|
|\ \ |
|
| | |
| | |
| | |
| | |
| | | |
Change-Id: I08da2de80d77c1c3f4ab66d2d983a6730d900bfb
Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
|
|/ /
| |
| |
| |
| |
| |
| | |
Make sure that after failed attempt of PVC resize application POD
continues to work and we are able to write data.
Change-Id: I1dda1e4698ca4e569aa67740c2e9a5dca9a4e7bf
|
|/
|
|
|
| |
Change-Id: Id3b679cf3193b36bfd10fc498fb0ba930c5d2536
Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
|
|
|
|
|
| |
Change-Id: Idae22a28e4da867fd0567cbec49760d6f3a374f6
Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
|
|
|
|
|
| |
Change-Id: I84b0399bad021fed29044c1946fdf27cccc2b6c8
Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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-708,709,713,714,715
Change-Id: I61965e6d8b17b4bb49b10ebe26140945da9c4576
Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
|
|
|
|
|
| |
Change-Id: Ie3169e77e542201167fa57bee710e600b25b5a74
Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Change-Id: I97eb3ae1d0af48d405a0187fe585e2732658f809
Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
|
|
|
|
|
|
|
|
|
|
|
| |
Also, 3 new library functions for:
- secret creation
- storage class creation
- pvc creation
Which use "stdin" creation approach without files.
Change-Id: Ifba768deba11048ede207d72af4d480898e8f5fc
|
|
|
|
|
|
|
|
|
|
| |
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 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
|
|
|
|
|
| |
Change-Id: I84968bcfe19aa8af73f185be178079a8373915b3
Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
Change-Id: Id3b4af5c9fdf69ca717e3c7aa86dd4c377bec510
Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
|
|
|
|
|
| |
Change-Id: Ice9eb4ea0cb8e86914ca54b65b23fc494754b0fc
Signed-off-by: Apeksha D Khakharia <akhakhar@redhat.com>
|