aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2016-11-04Merge "Fix typo in Dockerfile"Jose Lausuch1-1/+1
2016-11-04Merge "Remove python-keystoneclient downgrade and keep the newer version"Jose Lausuch1-1/+1
2016-11-04Add security group rule for DHCPGeorge Paraskevopoulos2-0/+16
Due to a new change in Boron SR1 we need to add the DHCP security group rule explicitly. Change-Id: I0d3d0447e7c31046bdfbb08da8752ef130830c59 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-11-04Remove python-keystoneclient downgrade and keep the newer versionjose.lausuch1-1/+1
The docker build fails due to some inconsistency in the keystone versions. See JIRA for more info. JIRA: FUNCTEST-523 Change-Id: Ic8aeb564c2f8827417d49958c65916ff555bc706 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-11-04Fix typo in Dockerfilejose.lausuch1-1/+1
Change-Id: I9ee40dcfd815997d5ebd126e690c5f2b54af3364 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-11-04bug fix on log file creation for unit testsMorgan Richomme1-8/+5
JIRA: FUNCTEST-326 Change-Id: Iae797d00c0bda07fce098f4a054dfc8f5bba069b Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-11-04Add exit return code for unit testsMorgan Richomme2-7/+80
Note that this patch should trigger some refactoring 1: repo structure, uggly hack due to the fact that the code is at the root of the repo. The name can be change when cloning leading to python path issues 2: logger is called with harcoded file in functest_logger.py uggly hack to create the file is not already present Basically hacks were necessary to be able to run the unit tests locally and from jenkins JIRA: FUNCTEST-336 Change-Id: Ib88256a167c003805d480f57c218c37d8d5962d8 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-10-25Fix bug in ovs utilsGeorge Paraskevopoulos1-1/+1
Change-Id: I86995a2fce5199c9267edc0e0596d868cc7d20ab Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-10-25Merge "Ignore files created by run_unit_tests.sh"Cedric Ollivier1-0/+6
2016-10-24Update release notes for Colorado 2.0jose.lausuch1-0/+32
Change-Id: I64a66bf11fe04df91dd2ef8c0bf91c4e19739863 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-10-24Merge "Complete OVS logging for sfc testcases"Jose Lausuch4-90/+191
2016-10-24Bug fix for odl-sfcManuel Buil1-1/+2
We forgot to add the path to the file, so the script was not executing Change-Id: I3ec226f12e6db3402b20d9fcefaa0acecd5b3a70 Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
2016-10-24Complete OVS logging for sfc testcasesGeorge Paraskevopoulos4-90/+191
- Add archiving capability in ovs_utils - Refactor common code into a single method - Add logging for compute nodes - Rename jumphost to proxy to avoid confusion Change-Id: I332bcb537d914c25febae53d5d48943e666da4f9 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-10-21Add ovs logging in sfc_colorado1George Paraskevopoulos1-8/+57
Change-Id: I25671508c28d44b83263073971c2bf52cea80c58 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-10-21Merge "Add OVS logger"Jose Lausuch4-0/+202
2016-10-21Add OVS loggerGeorge Paraskevopoulos4-0/+202
Add utility class to log OVS flows from a remote server. Change-Id: I80cb5b20dc15477771beb912f44cab28c7397e24 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-10-21Ignore files created by run_unit_tests.shCédric Ollivier1-0/+6
It mainly ignores functest_venv and files created by nose and coverage. Change-Id: If2695716c35b25b84774cf00c298229d803c9c21 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-10-20Cover KeyError in ODLTestCases.run()Cédric Ollivier1-7/+28
It simply tests if run returns EX_RUN_ERROR when a mandatory env var is unset (for instance SDN_CONTROLLER_IP in case of apex). Change-Id: Ib172975d84eb0953dd13bad32506bbd750ec4b8d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-10-20Merge "Fix nosetests call in run_unit_tests.sh"Cedric Ollivier2-1/+3
2016-10-20Added more logs to track better errorsManuel Buil2-5/+9
Apparently in the CI, the delete.sh script is not executed and we want to know why Change-Id: Iefbeb7f0222b3ea9664f5b03c6e0a5fbaaaa3a1f Signed-off-by: Manuel Buil <manuel.buil@ericsson.com>
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-20Add Copyright headersCédric Ollivier4-1/+29
It follows OPNFV Contribution Guidelines [1]. [1] https://wiki.opnfv.org/display/DEV/Contribution+Guidelines Change-Id: I0f603468510e5bb500e2be0f7815eefde3581b03 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-10-20Merge "Move unit tests in unit_tests"Morgan Richomme4-0/+0
2016-10-20Merge "Add full Apache 2.0 licence in LICENSE"Morgan Richomme1-1/+190
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 full Apache 2.0 licence in LICENSEMorgan Richomme1-1/+190
Change-Id: I717780331064817cf2e07a1c327f5c6991ad449e Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
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