summaryrefslogtreecommitdiffstats
path: root/tox.ini
Commit message (Collapse)AuthorAgeFilesLines
* [ConfigFix] Fix pytest version for 'functional3' environmentvamahaja2020-05-191-0/+1
| | | | | | | | | | Pytest version '5.4.1' has regression issue where functions registered with 'TestCase.addCleanup' were not being called on test failures. Add fix in 'tox.ini' to upgrade pytest to >= 5.4.2 version for 'functional3' environment. Change-Id: I27c3356c995a50a8d5cc32d7aad958116bd2cd88 Signed-off-by: vamahaja <vamahaja@redhat.com>
* [Fix] Update branch for glusto in tox.ini for py3kshithijiyer2020-03-201-1/+1
| | | | | Change-Id: I10642910362e0eca57d913e4ac15496862fef8cf Signed-off-by: kshithijiyer <kshithij.ki@gmail.com>
* Add "pytest-custom-exit-code" plugin in tox.inivamahaja2019-11-151-0/+2
| | | | | | | | | | | | | | This plugin is used to suppress failed exit code with option - --suppress-tests-failed-exit-code e.g: tox -e functional -- glusto -c gct_config.yaml \ '--pytest=-v -s tests -k test_check_bmux_enabled \ --junitxml gct_results.xml \ --suppress-tests-failed-exit-code' \ --log gct_logs.log Change-Id: Ic2b6041d554ec737982844fc6ac8b4840b3947e1 Signed-off-by: vamahaja <vamahaja@redhat.com>
* Enable more pep8/flake8 rulesValerii Ponomarov2019-08-301-0/+1
| | | | | | | | | By default, lots of rules are disabled and we track them manually. So, fix it by setting explicit list of rules we skip. Set the only skipped rule as of now to the W503, which is opposite to the enabled W504. Change-Id: Ib4d17177ac0a5cd11d8ff389883dbf83743faf35
* Add TC restart app pod when target node is downNitin Goyal2019-08-131-0/+2
| | | | | | | | | | | New TC insures that app pod is restarted properly when one of the target node is down. This patch includes libs of vmware api These libraries can perform VM operations like power on and off via vmware client api's. Change-Id: I11ad4dc3318cb0583de5882d8067ed7e30ea9962
* Add py3 support to our tox config and fix several incompatibilitiesValerii Ponomarov2019-04-111-0/+19
| | | | | | | | | | | | | | | | | | Required steps to run test cases using py3: 1) Install py3 2) Install 'tox' package using "pip3" 3) Run test cases using tox package installed via pip3 Note that full py3 support is not tested yet. It only allows you to run it on py3 not providing any guarantees. Example: $ python3 -m tox -e functional3 -- \ glusto -c /path/to/the/config/file.yaml \ '--pytest=-v -rsx tests -k test_glusterblock_logs' Change-Id: I610faac0b75364c401734b6f892649893ca2320e
* Reorder lib files removing redundant dir layerValerii Ponomarov2019-03-181-1/+1
| | | | | | | | | | | | Move all the files of 'cns-libs/cnslibs/common' dir to the 'openshift-storage-libs/openshiftstoragelibs', because 'common' is the only dir there, which doesn't really makes sense. And "cns" is old project name, so, replace it with "openshift-storage-libs". Also, fix all the imports of these libs. Change-Id: Ife00a73554e73b21b214b15016b0c8dbbf423446
* test cases for heketi metricsnigoyal2018-11-061-0/+1
| | | | | | | | | | 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-944] Add test with arbiter volume creationValerii Ponomarov2018-09-101-0/+1
| | | | Change-Id: I257f3e6a7389c9f15a4388c241e787782c186d14
* Install latest pip for virtual environmentsValerii Ponomarov2018-05-041-12/+16
| | | | | | | | | | | | To avoid errors trying to install latest dependencies using unexpected pip version. It allows us to run tests on RHEL7.4 Also, update 'README' file with actual information about running commands in venvs. Change-Id: I154be92cbaa46b7169d2a259acdb05d50448d570
* Add 'functional' venv to tox configValerii Ponomarov2018-04-021-1/+14
| | | | | | | | | | | | | | | Now, it is possible to run the functional tests having all the dependencies installed in it with following command: $ tox -e functional -- glusto -c %config%.yaml --pytest='-v -s tests' Local 'cnslibs' package is installed in editable mode, it means that any changes to its files will be taken up by next run of tests using above tox venv command. Also, update '.gitignore' file ignoring more temp files. Change-Id: I3118489f4fb6e52e5e94705b68c18ea1783a18b6
* Add possibility to run 'pep8' checksValeriy Ponomaryov2018-01-121-0/+20
Steps to be performed to run 'pep8' checks in local venv: 1) Install 'tox' package first: $ pip install tox 2a) Run all the tests (currently, it is only pep8 checks): $ tox 2b) Run only 'pep8' checks: $ tox -e pep8 Change-Id: I7afc55bbab5bcbeb2920c3439259da2707ff9a04