aboutsummaryrefslogtreecommitdiffstats
path: root/functest/tests/unit
AgeCommit message (Collapse)AuthorFilesLines
2017-03-30Check a rule existence for a specific security grouptomsou1-0/+55
Implement a functionality to check if a rule concerning a specific security group exists - function get_security_group_rules(neutron_client, sg_id) returns the list of the security rules for a specific security group - function check_security_group_rules(neutron_client, sg_id, direction, protocol, port_min=None, port_max=None) checks if a specific rule for a specific security group exists and returns True or False - implement unit tests for the two new functions This new functionality is needed for sdnvpn project Change-Id: Ib930bc9a76141932f4164d88e2640b49f3df4d77 Signed-off-by: tomsou <soth@intracom-telecom.com>
2017-03-26Fix pylint warnings in test_testcase_baseCédric Ollivier1-5/+6
It takes into account the following warnings: - wrong-import-order - no-value-for-parameter The 'no-value-for-parameter' warnings are false positive. The added default values are useless but avoid them. Change-Id: I50d0af178d9da668a3c72e75f5af467d36ca0e6a Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-03-23bug fix: unit test on openstack_utilsMorgan Richomme1-1/+1
test_check_credentials_missing_env was corrected but correction lead to good execution but false results Change-Id: I47ff7d6aa0d5dda78cd978f1905b570c02160a8a Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-03-23Merge "Support running on openstack which enabled https"Jose Lausuch1-3/+5
2017-03-21Merge "bug fix: version not retrieved on weekly jobs"Morgan Richomme1-19/+0
2017-03-20[vnf_base] improve exceptionboucherv1-13/+9
Return on part of previous changes in commit: 30257 https://gerrit.opnfv.org/gerrit/#/c/30257/ Change-Id: I11b33ee2a6f9d4cbcf1449006b47be508fce655e Signed-off-by: boucherv <valentin.boucher@orange.com>
2017-03-20bug fix: version not retrieved on weekly jobsMorgan Richomme1-19/+0
a first fix had been done but the version was retrieved 2 times with the regex this patch removes the second regex and re-use get_version the associated unit tests has been removed because even if the build_tag is badly formated, it will not prevent the results to be pushed with version = unknown JIRA: FUNCTEST-765 Change-Id: I2cbe8ba1dd7278c3f3510a47c667c433f65e00f8 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-03-17Bug Fix: retrieve version from build tag in weekly jobsMorgan Richomme1-1/+12
- fix regex issue - add unit test to cover weekly and dummy build tags - remove useless logs JIRA: FUNCTEST-765 Change-Id: I7a8d40b4662f4557cd080669da46fb1c32d2ad6d Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-03-16Merge "Added Unit Tests for ci/generate_report with argument refactoring for ↵Morgan Richomme1-0/+129
main and init functions in generate_reports"
2017-03-16Merge "Added Unit Tests for ci/run_tests"Morgan Richomme1-0/+192
2017-03-16Merge "Added Unit Tests for ci/tier_handler"Morgan Richomme1-0/+128
2017-03-16Merge "Added Unit Tests for ci/tier_builder"Morgan Richomme1-0/+83
2017-03-16Merge "Parse refstack_defcore results"Morgan Richomme1-11/+0
2017-03-16Merge "env variable support for test DB url"Morgan Richomme1-1/+11
2017-03-15Parse refstack_defcore resultsLinda Wang1-11/+0
JIRA: DOVETAIL-366 JIRA: FUNCTEST-758 Parse refstack_defcore results, including: 1. show number of tests passed, skipped and failed 2. record the detailed info about testcases passed, skipped and failed. Change-Id: I355a907c5c9ea2739f845447144c62613ec3bb6a Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-03-15refstack client integrationMatthewLi4-83/+203
JIRA: DOVETAIL-366 JIRA: FUNCTEST-758 usage: 1,functest testcase run refstack_defcore, will run the default testcases in defcore_201608.txt 2,cd <path>/functest/functest/opnfv_tests/openstack/refstack_client python refstack_client.py -c <tempest-conf-file-path> --testlist <testlist-path> this has been worked with openstack-refstack experts, etc. tested workedi. result see http://paste.openstack.org/show/602173/ Change-Id: I1aaffea01dec9dc8d1c572885bdf516614a16894 Signed-off-by: MatthewLi <matthew.lijun@huawei.com>
2017-03-15env variable support for test DB urlMorgan Richomme1-1/+11
So far DB url was retrieved from configuration file If you want to use the CI chain (jenkins, testapi, test DB, functest, ..) then you have a problem calling functest will systematically point to the configuration from the repo Supporting env variable allow to avoid post processing in the configuration file and as a consequence offer the possibility to create a local DB to host local results Change-Id: Ie64b8b265827d7f5724c7066a8c173de8cf012e2 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-03-15Added Unit Tests for ci/tier_builderashishk19941-0/+83
Change-Id: I66f43fb09472948bc71178cd8aeb14dc1ab5fa55 Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com>
2017-03-15Added Unit Tests for ci/tier_handlerashishk19941-0/+128
Change-Id: I0b1d7efcf44c0ad2c1e8d3163fe72a61883eb86a Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com>
2017-03-15Added Unit Tests for ci/run_testsashishk19941-0/+192
Change-Id: I5cd900cee809b8fd935a5c8b862a9ecd6278bdf5 Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com>
2017-03-15Added Unit Tests for ci/generate_report withashishk19941-0/+129
argument refactoring for main and init functions in generate_reports Change-Id: I291d04a9c0ed381f4b92e989270c0b9a37c15264 Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com>
2017-03-13Support running on openstack which enabled httpshelenyao1-3/+5
JIRA: FUNCTEST-757 Change-Id: Ic87bee3020b9714bcd83105127440a9c1a7ff2ad Signed-off-by: helenyao <yaohelan@huawei.com>
2017-03-10Remove raise exceptionsMorgan Richomme1-8/+13
until exceptions are better managed in abstraction Currently it triggers an exit from the jenkins job and prevent other tests to be run Change-Id: Id3b18c1d6d3b786fc78456b3ad51963d2cbb2cc1 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-03-10Merge "Add extra check to avoid double delete of instances"Morgan Richomme1-1/+56
2017-03-10Merge "Unit tests added for openstack/tempest"Morgan Richomme3-0/+371
2017-03-09Introduce smoke tests for FDSTomas Cechvala1-9/+17
Added: - fds repository to docker file - fds test to smoke tier in testcases - config values for fds tests A new robot var OS_AUTH_URL is defined as expected by FDS robot files. Method args switch from Keystone IP to OS_AUTH_URL which is more precised. The argument parsing is changed too. Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com> Change-Id: Ife27ab4a83f0110cbdcf7c9d47d9b3fb4c0ec705 Signed-off-by: Tomas Cechvala <tcechval@cisco.com> Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-03-08Bugfix: modify test_prepare_env to make verify job successfulLinda Wang1-3/+5
Functest verify job failed due to that test_prepare_env.py mistook one function of ft_utils.execute_command_raise. Change-Id: Ib3b8ca807308bf5c6d250e7debb4c9e1e106e3d1 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-03-06Merge "Added Unit Tests for ci/prepare_env"Morgan Richomme2-0/+345
2017-03-03Add extra check to avoid double delete of instancesCiprian Barbu1-1/+56
JIRA: FUNCTEST-748 Sometimes Openstack doesn't handle deletion in a timely manner which can lead to openstack_clean to think there are leftovers from a previous test when in fact the instances are pending deletion. This patch tries to better handle this kind of situation that would otherwise result in a double free and eventually <class 'nova.exception.InstanceInvalidState'> (HTTP 500) Change-Id: Id0d9b61d8380e9b12fc7acd46cd84260714f4baf Signed-off-by: Ciprian Barbu <ciprian.barbu@enea.com>
2017-03-01Unit tests added for openstack/tempestashishk19943-0/+371
_parse_verification_id method is removed as it is not used anywhere Change-Id: Ia2bc75ffbc2527b04cbe2428e2a3822803bde215 Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com>
2017-03-01Added Unit Tests for ci/prepare_envashishk19942-0/+345
JIRA: FUNCTEST-663 Change-Id: Ie240b5f24d11e3a6079cafd260d9d48ed36d3d0a Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com>
2017-02-28[odl-sfc] Add function to retrieve a resource from HEATJuan Vidal1-1/+57
Introduces function to retrieve a HEAT client. For the moment, the only wrapper function is the one to retrieve resources. Added unit tests to cover the new functions. python-heatclient is added to requirements.txt and test_requirements.txt. Change-Id: I547138141c6aad611f2353599fb70a013c83058a Signed-off-by: Juan Vidal <juan.vidal.allende@ericsson.com>
2017-02-22Unit tests for vnf/ims.ashishk19945-0/+718
Change-Id: I12b17ee7ed03987473825e0705074f0430b820bb Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com>
2017-02-14Merge "Limit the substitution of ' in env vars"Cedric Ollivier1-0/+3
2017-02-14Merge changes from topic 'revert_write_to_file'Jose Lausuch1-5/+3
* changes: Add can_dump_request_to_file decorator Revert "write test results to a local file"
2017-02-14Limit the substitution of ' in env varsCédric Ollivier1-0/+3
Only ' located and the beginning or at the end of the string are removed. It completes the first proposal [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/28563/ Change-Id: Ic21cea4c6e98d92983f385c875c3e214411b5f2d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-02-14Fix again unix permissionsCédric Ollivier1-0/+0
It has been induced by [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/26695/ Change-Id: I4bec6bdc30c5901c19bdc4ca43b89f60bd50a6aa Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-02-13Revert "write test results to a local file"Cédric Ollivier1-5/+3
This reverts commit ee21af78fbfc93e888acda121f08d2b216dd0159. Change-Id: If7c8d3b645073574862eb67225b1e11b0dd7a021 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-02-09Fix source_credentials in openstack_utilsCédric Ollivier1-11/+25
It fixes issues raised when an env var contains '=' (e.g. LS_COLORS). It now exports the vars listed in rc_file without creating a new process. Change-Id: I6e6a4e3ab9c45afe4d40015831acb283acbe564c Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-02-06Merge "Change log level when pod, scenario or build_tag cannot be retrieved"Morgan Richomme1-16/+18
2017-02-06Merge "Add netvirt to odl tests"Jose Lausuch1-0/+14
2017-02-06Change log level when pod, scenario or build_tag cannot be retrievedMorgan Richomme1-16/+18
when using Functest out of CI, such env variables may not be set This shall not result in Error messages JIRA: FUNCTEST-716 Change-Id: I86d2023145480dfa9c8d593ea274acbd9e431ef7 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-02-06Merge "Unit tests for openstack/rally."Morgan Richomme4-0/+391
2017-02-03Fix template error logGeorge Paraskevopoulos1-6/+4
JIRA:SFC-70 Printing the VNFD template during VNFD creation was left on error level. Move it on info level and make printing prettier. Fix unit test for create_vnfd Change-Id: Ib04a43d72abcf9b6fbcaec9ea05d57b9f017b53f Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2017-02-03Add netvirt to odl testsNikolas Hermanns1-0/+14
For the odl test the default odl port is 8080. In netvirt this is the same as apex. Change-Id: I949510e4f7fb57bcf8ec01f69f7941c5d55c98e7 Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
2017-02-02Merge changes from topic 'convert_unix_format'Jose Lausuch1-26/+26
* changes: Change permissions of python files Convert files to Unix format
2017-02-03Unit tests for openstack/rally.ashishk19944-0/+391
Few bug fix in rally code along with unit tests. Change-Id: Id39a5089ca6fce8aac5ba89eb61d31b02a5e9a98 Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com>
2017-02-02Allow multiple sets of suites in ODLCédric Ollivier1-0/+30
ODLTests can manage multiple sets of suites passing as run args. It avoids duplicating odl.py according to ODL features installed (e.g. netvirt). Change-Id: Ibb0697ef9441506c3f33627e13a0845cc482e23f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-02-02Convert files to Unix formatCédric Ollivier1-26/+26
Change-Id: I8faa0c9f4185e2d71b9c5d22a6a25830aacd8114 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-01-19Leverage logging config and refactor the loggerhelenyao5-5/+27
JIRA: FUNCTEST-690 The detailed benefits are listed in the JIRA description. 1. Refactored the functest_logger to make use of configuration file 2. Avoided configuring the logging every time a logger is initialized 3. Applied separate logging configuration fo unit test by removing saving log to file Change-Id: I6e27eaba727ae6d704f0301f15359dc3ea7b2f97 Signed-off-by: helenyao <yaohelan@huawei.com>