summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2016-10-20Fix nosetests call in run_unit_tests.shCédric Ollivier2-1/+3
It adds the missing whitespace and only lists the packages for which unit tests have been developped. It also adds python-neutronclient as requirement. Change-Id: Id14b0698cb3636333751d61ff954500a665e1551 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-10-19Move unit tests in unit_testsCédric Ollivier4-0/+0
It also renames files and removes exec rights to be conformed with nose. Change-Id: Ib93973a7d4b543360372fb1092a58896f687ec84 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-10-19Import TestCasesBase from functest dirCédric Ollivier1-1/+1
Change-Id: I285e9cd1c5c562fac8b786c4afe1e9f5d7593dff Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-10-19Merge "Add unittests dir"Morgan Richomme3-0/+49
2016-10-19Add unittests dirMorgan Richomme3-0/+49
JIRA: FUNCTEST-336 Change-Id: Icd958552fafb4e8dc58f9008586bcaf33862ccd4 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-10-19Merge "Add wrappers for Tacker Python client"Jose Lausuch2-2/+250
2016-10-19Add wrappers for Tacker Python clientGeorge Paraskevopoulos2-2/+250
New module: functest.utils.openstack_tacker Change-Id: Ie02b72d53c824eeff944bc76e4cae58c8de9044a Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-10-19Merge "Get OS_ env vars via os.environ"Morgan Richomme1-3/+3
2016-10-19Merge "Extend rally test case exclusion feature"Jose Lausuch1-4/+23
2016-10-19Get OS_ env vars via os.environCédric Ollivier1-3/+3
It simply avoids executing env and grep. JIRA: FUNCTEST-271 Change-Id: If71aeb9c7b10df5dca54ca9cbc35ba5e6b5ebef4 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-10-18Extend rally test case exclusion featureJuha Kosonen1-4/+23
Regular expression matching support for test cases on blacklist. JIRA: FUNCTEST-491 Change-Id: I4dc61ab0d93d699dd5e77ee3198a62d1bddd020a Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
2016-10-18Use importlib to load testcasesCédric Ollivier3-9/+45
It modifies run_tests.py to dynamically execute testcases and then removes the test condition about odl. It also induces that the modules and the related classes must be defined in ci/testcases.yaml. JIRA: FUNCTEST-353 Change-Id: I6ad67b70624aac6bf805c9bde4dfef7c9fbd5c00 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-10-18Add OpenDaylightTesting unit testsCédric Ollivier2-17/+363
It adds unit tests checking OpenDaylightTesting. Several minor issues have also been fixed in this module when writing these unit tests: - the exceptions raised by main are caught when the testcases are launched from cmdline, - a warning message indicates that the temporarily files cannot be removed. JIRA: FUNCTEST-512 Change-Id: I873f0bbf4c3b7f416ca5515580e8aeab90773fdc Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-10-18Remove exits in OpenStack client utilsCédric Ollivier2-14/+25
It prevents openstack_utils from exiting when the mandatory env vars are unset. Every testcase is now in charge of handling the exception MissingEnvVar. JIRA: FUNCTEST-438 Change-Id: I0e321b544a470c1f2f2fa62b3e061fe5f938e112 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-10-18Merge "Conform ODL to TestCasesBase"Jose Lausuch2-56/+60
2016-10-18Merge "Add a parent class for test cases."Jose Lausuch4-0/+127
2016-10-17Multi-compute support and python refactoringManuel Buil3-3/+100
We added support for multi-compute and changed one file from bash to python Change-Id: Ife3d5a8e41936c044cfe88664187d81c18d96b93 Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
2016-10-17Merge "Unify rally test case exclusion mechanisms"Juha Kosonen4-34/+65
2016-10-17Merge "Ignore rally_conf.json"Cedric Ollivier1-0/+1
2016-10-17Ignore rally_conf.jsonCédric Ollivier1-0/+1
As rally_conf.json is created from where run_tests.py is launched, we cannot set an absolute path. Change-Id: I66c5a9644dc41ba91e90ffb5eecfc6b0ebebf204 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-10-17Conform ODL to TestCasesBaseCédric Ollivier2-56/+60
Now ODLTestCases inherits from TestCasesBase what induces several modifications of function definitions. It also renames functest_run to run and run to main and they now return the code status defined in TestCasesBase instead of True and False (run_tests.py has been adapted as well). It checks if errno is equal to EEXIST when makedir raises an OSError exception. JIRA: FUNCTEST-353 Change-Id: I88240a9ce8e491dab4c7e6c604f3ecc62cf9edce Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-10-17Add a parent class for test cases.Cédric Ollivier4-0/+127
It adds TestCasesBase on which test cases can be based. It also adds the related unit tests. JIRA: FUNCTEST-353 Change-Id: Ib2aeb24ce9d43e6384e8b38bf57ee78dd726345a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-10-17Merge "Remove exit() in ft_utils.execute_command"Cedric Ollivier8-10/+4
2016-10-14Unify rally test case exclusion mechanismsJuha Kosonen4-34/+65
In all cases exclusion is now controlled via blacklist file. JIRA: FUNCTEST-511 Change-Id: I482c33b6da4c9b711ebeddc13855b1337ab217eb Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
2016-10-14Merge "Spawn instances in nova availability zone"Jose Lausuch2-7/+12
2016-10-14Merge "Bug fixes and updates to fit ODL Boron SR0"Jose Lausuch4-68/+9
2016-10-14Merge "remove 3rd part files with MIT or BSD license"Morgan Richomme88-19979/+62
2016-10-13remove 3rd part files with MIT or BSD licenseMorgan Richomme88-19979/+62
Change-Id: I941093e91897d1425720b5acdbf072cf620f131d Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-10-13Stop copying obsolete filesCédric Ollivier1-12/+7
It completes the previous review [1] which removes several robot files. [1] https://gerrit.opnfv.org/gerrit/#/c/23069/ Change-Id: I64c43e6833af1ac468933e09d48fecef812da697 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-10-13Spawn instances in nova availability zoneGeorge Paraskevopoulos2-7/+12
Change-Id: I9dc3a00b3c96cf23916388a52efd610e4649dfff Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-10-13Merge "Delete obsolete robot files"Morgan Richomme3-126/+0
2016-10-12Bug fixes and updates to fit ODL Boron SR0Manuel Buil4-68/+9
Small bug fixes and some changes are done in order to be compatible with ODL Boron SR0 Change-Id: I02f2ed8c734145ff6e198f9529728a97a5c97a75 Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
2016-10-12Remove exit() in ft_utils.execute_commandCédric Ollivier8-10/+4
It simply removes the exit call in ft_utils.execute_command which is quite safe as every testcase sets exit_on_error to False JIRA: FUNCTEST-438 Change-Id: Ia273de0955cc3ea65a150c626638400ce614da00 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-10-12Delete obsolete robot filesCédric Ollivier3-126/+0
The robot files which delete neutron resources are now hosted by ODL test [1]. They can now be safely removed. https://git.opendaylight.org/gerrit/#/c/46749/ Change-Id: I2fb730ec3f5fbc380b5699e5fbfbb45a6524d2fe Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-10-12Create shallow clones with a history truncatedCédric Ollivier1-18/+18
Change-Id: I9d946581becaad54b99ec6baf6fd5d842d60ada7 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-10-11Merge "Update INFO information after PTL election"Morgan Richomme1-3/+3
2016-10-11Bug fix in odl-sfc testcaseManuel Buil1-0/+5
Test is stopping if the route to the VMs ip range is already there because the command that adds that, exits with code 1 and set -e is activated. Now it is checked if it is there and if not, the command is executed Change-Id: I820a55aff2572aadcb1950fa9218b114a9058c57 Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
2016-10-11Small fixes in sfc testcaseGeorge Paraskevopoulos3-3/+3
Change-Id: Ib1c4fb64fdf72bcae99d05db3c3a41721c78ce27 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-10-11Update INFO information after PTL electionMorgan Richomme1-3/+3
Change-Id: Ie90c9a6accc10b2542c7a21c748911991d9019dc Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-10-10Merge "Use huge page for dpdk (ovs) scenario"Morgan Richomme1-1/+8
2016-10-10Use huge page for dpdk (ovs) scenarioMorgan Richomme1-1/+8
JIRA: FUNCTEST-487 Change-Id: I41d0180b622623699bccc3f7413ffbbb468f7656 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-10-06Merge "Refactor rally task scenario files"Morgan Richomme10-309/+434
2016-10-06Merge "Remove old tacker setup"Jose Lausuch2-37/+3
2016-10-06Remove old tacker setupGeorge Paraskevopoulos2-37/+3
No need to install tacker here. We do it with fuel-plugin-tacker. Change-Id: Ic912048b8a0f169b062ac14788d94757c81bf073 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-10-03Add Serena update on Functest DashboardMorgan Richomme23-0/+146
Change-Id: I30386c3ba09292ed0bcdbeb83ec1b0eb13114968 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-09-30Refactor rally task scenario filesJuha Kosonen10-309/+434
Use a dedicated scenario file for each scenario (full, sanity) instead of a shared one. JIRA: FUNCTEST-501 Change-Id: Icd45d6bf11b605f073c2667e9948589ee0a3b75c Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
2016-09-27Merge "Move sfc custom flavor creation"Morgan Richomme3-4/+18
2016-09-27Move sfc custom flavor creationGeorge Paraskevopoulos3-4/+18
The custom flavor that is needed for the sfc test case is created in the tacker deployment phase. The result of this is that when we use alternative methods of deploying tacker (i.e. the tacker fuel plugin) the test fails. Changes: - Move the flavor creation inside the test case code - Add an optional public parameter in the [get_or_]create_flavor utility functions. Change-Id: Iea13f172076770dde3876b7e27edc9b7ca9b28db Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-09-27Merge "make logger in vping a local variable"Morgan Richomme1-4/+0
2016-09-27make logger in vping a local variableSerenaFeng1-4/+0
JIRA: FUNCTEST-493 Change-Id: I9f0c91b3fdbfb62c277b2c452ec124f67b21c653 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>