summaryrefslogtreecommitdiffstats
path: root/tests/functional/quota
Commit message (Collapse)AuthorAgeFilesLines
* Quota: tests/functional/quota/test_quota_limit_dir_breadth.pyVinayak Papnoi2018-11-301-55/+43
| | | | | | | | | | Replaced "quota_fetch_list" with "quota_validate" Fixed hard_limit validation as it was failing in the automation runs. Change-Id: I603a2649ab43c3317626b4325c0b353a798eee94 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* Fix spelling mistake across the codebaseNigel Babu2018-08-077-9/+9
| | | | Change-Id: I46fc2feffe6443af6913785d67bf310838532421
* Quota: Alert time test - Rectifying the sleep timeoutVinayak Papnoi2018-08-031-4/+4
| | | | | | | | | The comments state that the sleep timeout is of 2 seconds but actually it is 10 seconds. This patch will be rectifying that error and the actual sleep will be of 2 seconds. Change-Id: Ie1cabf2c707c95018a750538bc8a13d1a72fe7f1 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* Quota: check alert time and message on exeeding soft limit.hari gowtham2018-07-311-0/+339
| | | | | | | | | | On a quota enabled volume validate if alert time is printed only after crossing the soft limit. Change-Id: Ia94ae9dd760fed644841df11fe046c184cdd3398 Signed-off-by: hari gowtham <hgowtham@redhat.com> Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com> Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* Shorten all the logs around verify_io_procsYaniv Kaul2018-07-172-8/+8
| | | | | | | | No functional change, just make the tests a bit more readable. It could be moved to a decorator later on, wrapping tests. Change-Id: I484bb8b46907ee8f33dfcf4c960737a21819cd6a Signed-off-by: Yaniv Kaul <ykaul@redhat.com>
* Quota : validate quota on add-brick without rebalanceharigowtham2018-07-061-0/+166
| | | | | | | | | | | | | | | | The below operations are performed on a dis-rep volume * Enable Quota * Set limit of 1GB on / * Mount the volume * Create some random amount of data inside each directory until quota is reached * Perform a quota list operation * Perform add-brick * Trying add files and see if quota is honored. Change-Id: Idd6a647c65a9e2dc7322bc729b48366cf6a46c85 Signed-off-by: harigowtham <hgowtham@redhat.com>
* Quota: test quota list with a directory's deletion and recreationharigowtham2018-07-061-0/+149
| | | | | | | | | | | | | | | The following steps are followed: * Enable quota on the volume * Set the quota on the non-existing directory * Create the directory as above and set limit * List the quota on the volume * Delete the directory * Recreate the directory * List the quota on volume * Check for volume status Change-Id: Ieb37b24715f4c4a9689db582489a7d9a965d54ad Signed-off-by: harigowtham <hgowtham@redhat.com>
* Quota: Test case to validate unique soft-limits on directoriesVinayak Papnoi2018-07-011-0/+176
| | | | | | | | | | Test quota with respect to the limit-usage and soft-limit quota volume options. Set a unique soft-limit on each directory and create some data such that the soft-limit is exceeded and validate with the quota list command. Change-Id: I80fbb93072a9d8c2fa861c931042ae2fba1fefe1 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* Quota: Test case to validate limit-usage on a symlinkVinayak Papnoi2018-07-011-0/+121
| | | | | | | | | | | | | | Quota limit-usage should fail when trying to set the limit on a symlink. - Enable quota - Set a limit on the volume - Create a directory from mount - Create a symlink of the directory from mount - Try to set a quota limit on the symlink Change-Id: Ic9979a5c67af74d08527acc0f9a30c1d97291906 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* Quota : test case with creation of file larger than quota limitVinayak Papnoi2018-07-011-0/+180
| | | | | | | | | | | | | | | | | | If a limit is set and a file of size larger than limit is created then the file creation will stop when it will reach the limit. - Enable Quota - Create a directory from mount point - Set a limit of 10 MB on the directory - Set Quota soft-timeout and hard-timeout to 0 seconds - Create a file of size larger than the Quota limit eg. 20 MB file - Perform Quota list operation to check if all the fields are appropriate such as hard_limit, available_space, sl_exceeded, hl_execeeded, etc. Change-Id: I44d7e23e60589cbe022735e9b4b5f3bfd1b7458e Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* Quota : Test case to validate quota-deem-statfs and quotadVinayak Papnoi2018-06-271-0/+138
| | | | | | | | | Test quota with respect to the quota daemon and features.quota-deem-statfs quota volume option when quota is enabled/disabled on the volume. Change-Id: I91a4ced6a5d31fe93c6bb9b0aa842cd5baf38ee0 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* Quota : Validate limit on deep directoriesharigowtham2018-06-261-0/+228
| | | | | | | | | | | | | | | The below operations are performed on various types of volumes and mount. * Enable Quota * Create 10 directories one inside the other and set limit of 1GB on each directory * Perform a quota list operation * Create some random amount of data inside each directory * Perform a quota list operation * Remove the quota limit and delete the data Change-Id: I2a706eba5c23909e2e6996f485b3f4ead9d5dbca Signed-off-by: harigowtham <hgowtham@redhat.com>
* Quota : Limit-Usage on volume as well as sub-directoriesVinayak Papnoi2018-06-251-0/+180
| | | | | | | | | | | | - Enable Quota - Set quota limit of 1 GB on / - Create 10 directories inside volume - Set quota limit of 100 MB on directories - Fill data inside the directories till quota limit is reached - Validate the size fields using quota list Change-Id: I917da8cdf0d78afd6eeee22b6cf6a4d580ac0c9f Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* Quota : Test case for quota with multiple values of limit-usageVinayak Papnoi2018-06-231-0/+277
| | | | | | | | | | | | | Test quota limit-usage by setting limits of various values being big, small and decimal values. eg. 1GB, 10GB, 2.5GB, etc. and validate the limits by creating data more than the hard limits. (after reaching hard limit the data creation should stop) Addressed review comments. Change-Id: If2801cf13ea22c253b22ecb41fc07f2f1705a6d7 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* Quota: Test Quota by renaming the dir.venkata edara2018-06-191-0/+130
| | | | | | | | | | | | This testcase will enable quota on dir of volume and rename it to other name and checks whether quota list is showing the renamed dir. Incorporated the changes made on the quota_ops and quota_libs. Change-Id: I7166a9810614c966a4a656b5e8976df55b102c01 Signed-off-by: venkata edara <redara@redhat.com> Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com> Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* Fix tests with old quota functionsNigel Babu2018-06-132-17/+17
| | | | | | We renamed the quota functions, so this caused some conflicts on master. Change-Id: I5eb6381dc77dcd99929cbc20173941bf1bd2290d
* Quota: Fixing quota libs in glustoSanoj Unnikrishnan2018-06-133-20/+20
| | | | | | | | | | - added quota_libs.py with quota_validate library - Removed redundant function in quota_ops. - changed naming of quota_ops to be consistent and intutive w.r.t cli Change-Id: I4faf448ea308c9e04b548d6174d900fcf56978a5 Signed-off-by: Sanoj Unnikrishnan <sunnikri@redhat.com>
* Quota : Test case for quota on single brick volumeVinayak Papnoi2018-06-111-0/+159
| | | | | | | | | This test case covers the quota functionality for a volume with a single brick (1x1). Quota help cli command is also validated here. Change-Id: I772f4646e2229c21f4547122410633715ef47668 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* Quota : Test case to validate limits on various directories [breadth]Vinayak Papnoi2018-06-101-0/+185
| | | | | | | | | | | | | | | | Verifying directory quota functionality with respect to the limit-usage option. Set limits on various directories [breadth] and check for the quota list of all the directories. * Enable Quota * Create 10 directories and set limit of 1GB on each directory * Perform a quota list operation * Create some random amount of data inside each directory * Perform a quota list operation Change-Id: I3ffc5b99018365eca21ecbdd55d6d9c176f36d6f Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com> Signed-off-by: Vitalii Koriakov <vkoriako@redhat.com>
* Quota: Negative test cases for Quotavenkata edara2018-05-231-0/+145
| | | | | | | | | This testcase will enable/disable quota by giving negative inputs and also try to enable timeouts by giving huge value , all testcases have to return false. Change-Id: I3996a38a728c20199ef969d03ff9e11dc774ee6c Signed-off-by: venkata edara <redara@redhat.com>
* Quota : Test case for quota listVinayak Papnoi2018-05-171-0/+153
| | | | | | | | | This test case covers the quota list functionality with and without the path. Both outputs for quota list with and without path should match. Change-Id: I251cae896558e09bee3d4a689f8287df2b0bb585 Signed-off-by: Vinayak Papnoi <vpapnoi@redhat.com>
* Fix up coding style issues in testsNigel Babu2018-03-272-4/+4
| | | | Change-Id: I14609030983d4485dbce5a4ffed1e0353e3d1bc7
* quota: check if quota limit can be set on a directory that that not existhari gowtham2018-02-071-0/+81
Once a volume is mounted, and quota is enabled, we have to make sure that quota cannot be set a directory that does not exist. Change-Id: Ic89551c6d96b628fe04c19605af696800695721d Signed-off-by: hari gowtham <hgowtham@redhat.com>