summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2017-05-22Merge "Turn Sphinx warnings into errors"Cedric Ollivier3-1/+1
2017-05-22Merge "Check python3 support when running tox"valentin boucher2-4/+52
2017-05-22Merge "Generate api doc when running tox"valentin boucher2-1/+7
2017-05-22Merge "Update apidoc to conform with vnf module"valentin boucher3-8/+8
2017-05-22Merge "Analyse code when running tox"valentin boucher2-1/+10
2017-05-22Merge "Check style when running tox"valentin boucher2-1/+8
2017-05-22Merge "Delete line breaks before binary operator"valentin boucher2-6/+7
2017-05-22Merge "Sort keys when dumping json"valentin boucher2-2/+3
2017-05-22Merge "Ignore .tox"valentin boucher1-0/+1
2017-05-22Merge "Tox utility to run unit tests"valentin boucher3-65/+15
2017-05-22Merge "Update requests as defined in releng"valentin boucher1-1/+1
2017-05-22Merge "Add baro_tests as requirements"valentin boucher3-7/+3
2017-05-22Merge "Install releng via requirements.txt"valentin boucher4-16/+1
2017-05-22Merge "Set default value for CONFIG_FUNCTEST_YAML"valentin boucher4-5/+8
2017-05-22Merge "Fully cover pytest_suite_runner.py"valentin boucher1-6/+36
2017-05-22Merge "Precise self.result in pytest_suite_runner.py"valentin boucher3-50/+46
2017-05-22Merge "Print stack when catching exceptions in run_tests.py"valentin boucher1-7/+8
2017-05-22Merge "Replace CONST.* by getattribute/setattr for refstack"Morgan Richomme3-25/+31
2017-05-22Turn Sphinx warnings into errorsCédric Ollivier3-1/+1
Change-Id: Iefc223a9fa6dbc4e9476aca84b3df4304058862b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-21Check python3 support when running toxCédric Ollivier2-4/+52
It only tests testcase, feature and odl which supports python3. It creates a temporary requirements.py3.txt which will be safely removed when we stop using subprocess32 [1] and robotframework-sshlibrary. [1] https://jira.opnfv.org/browse/FUNCTEST-827 Change-Id: I92021dcb4aca03f64e2441e3bcff34675a3ae879 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-21Generate api doc when running toxCédric Ollivier2-1/+7
Change-Id: I78b18981d9f916e6174d44c6280706e404c7c9f2 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-21Update apidoc to conform with vnf moduleCédric Ollivier3-8/+8
It completes [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/34467/ Change-Id: Ia4a850b740764774b926d5cdb92c8813bc93f9e4 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-21Analyse code when running toxCédric Ollivier2-1/+10
It filters all messages to ease reading the report. Change-Id: Iab55bc71cb6026edde29fb9f084a07b2dedf564f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-21Check style when running toxCédric Ollivier2-1/+8
Change-Id: Idedf823a1572c40692e445694461b4196b75275d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-21Delete line breaks before binary operatorCédric Ollivier2-6/+7
They are considered as warnings by flake8. Change-Id: I84ffedc41c24133aa0d45e312bb095526aa1095b Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-21Sort keys when dumping jsonCédric Ollivier2-2/+3
Otherwise dumping them could break some unit tests as they are unordered collections [1]. [1] https://build.opnfv.org/ci/job/functest-verify-master/4122/ Change-Id: I108e946926ae9690cf2421e565f2bb81500f9160 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-21Ignore .toxCédric Ollivier1-0/+1
Change-Id: I50e39057edbbfadd57ea912f1f1ba32389639809 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-20Tox utility to run unit testsashishk19943-65/+15
Now run_unit_tests.sh only calls tox to allow merging. It can be safely deleted as soon as the related jjob is updated. It also removes test_logging.ini. Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: I934f4ac739d99d0cb29bea8c6aac6d6780b30901 Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-20Update requests as defined in relengCédric Ollivier1-1/+1
Change-Id: I808cb796d18cf7f193a37e7b7d9073a037bb2ae7 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-20Add baro_tests as requirementsCédric Ollivier3-7/+3
It also stops cloning it when building the docker container and updates the related unit tests. It bypasses the bug when importing collectd [1]. [1] https://jira.opnfv.org/browse/BAROMETER-79 Change-Id: Ie9f8ea2b3c95d6b1f5405d76b018cdcb62343a58 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-20Install releng via requirements.txtCédric Ollivier4-16/+1
It should work in all branches if the right requirements.txt is selected. Change-Id: I9c46cd52496528835a92e371320debf92117b4fa Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-19Set default value for CONFIG_FUNCTEST_YAMLCédric Ollivier4-5/+8
It calculates via the full path of env.py. Change-Id: Ief958833f5116cdb116d0153d85a0ae03063ec5c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-19Activating SDNVPN test cases for master.Tim Irnich1-1/+0
Change-Id: I4ba995d412bfeadc708d5a3c643576097867d1ac Signed-off-by: Tim Irnich <tim.irnich@ericsson.com>
2017-05-19Fully cover pytest_suite_runner.pyCédric Ollivier1-6/+36
Change-Id: I766afb1d5c6ef53a5b551539662ee363ae8eadee Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-19Precise self.result in pytest_suite_runner.pyCédric Ollivier3-50/+46
It also adds the related unit tests. Change-Id: I8325bd9a55c69b229e3c48a9e64aa963e685e03d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-19Merge "Replace CONST.* by getattribute/setattr for rally and tempest"Jose Lausuch6-113/+129
2017-05-19Merge "Define Runner class"Jose Lausuch2-275/+300
2017-05-19Replace CONST.* by getattribute/setattr for refstackLinda Wang3-25/+31
Directories affected: - functest/opnfv_tests/openstack/refstack_client and respective unit test JIRA: FUNCTEST-796 Change-Id: I7f7047d44d71e82bcc1f66ec0b760ff30a13dbd5 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-05-19Replace CONST.* by getattribute/setattr for rally and tempestLinda Wang6-113/+129
Directories affected: - functest/opnfv_tests/openstack/rally - functest/opnfv_tests/openstack/tempest and respective unit test JIRA: FUNCTEST-796 Change-Id: I963f5947663f0b660337f3304defb697f5d338f3 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-05-19Merge "Modify how to disable logging in unit test."Jose Lausuch30-65/+36
2017-05-19Merge "Documentation for unit test project"Morgan Richomme1-10/+66
2017-05-19Merge "Use StringIO in odl.py"Morgan Richomme2-53/+5
2017-05-19Merge "Move few local ODL SFC confs to global functest confs"Morgan Richomme2-0/+14
2017-05-19Merge "Replace CONST.* by getattribute/setattr for cli"Morgan Richomme8-66/+85
2017-05-19Print stack when catching exceptions in run_tests.pyCédric Ollivier1-7/+8
Change-Id: Id94475dd519ce04b87da470f6e6bb5a1c1aa2d75 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-19Merge "Add a new directory to hold pre-downloaded images"Helen Yao10-12/+64
2017-05-18Merge "Use logger instead of printing in console"Jose Lausuch1-3/+13
2017-05-18Modify how to disable logging in unit test.Cédric Ollivier30-65/+36
Logs are only disabled when the unit tests are run from cmdline. It allows running them via pytest_suite_runner.py and printing their results to functest.log. You should notice that the unit test must disable the logger of the tested TestCase (e.g. testcase.TestCase.logger.disabled = 1). Otherwise false logs will be printed in console. Change-Id: Ic171e4575c8bab2e52db1897ae026b61a03b6247 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-05-18Merge "Remove check_success_rate"Jose Lausuch7-79/+34
2017-05-18Use StringIO in odl.pyCédric Ollivier2-53/+5
It avoids creating and removing the temporary file to dump robot output. Change-Id: Ia5ea66e76ffb8b8327f2da938f177e8ef4c61dd4 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>