aboutsummaryrefslogtreecommitdiffstats
path: root/functest
AgeCommit message (Collapse)AuthorFilesLines
2017-01-04Reverted the file permissionhelenyao3-0/+0
There are some files whose permissions are changed unintendedly. Revert all of them. mode change 100644 <= 100755 functest/core/pytest_suite_runner.py mode change 100644 <= 100755 functest/opnfv_tests/openstack/vping/vping_base.py mode change 100644 <= 100755 functest/utils/openstack_tacker.py mode change 100644 <= 100755 functest/tests/unit/odl/test_odl.py mode change 100644 <= 100755 requirements.txt mode change 100644 <= 100755 test-requirements.txt Historical comments that changed the permission for reference changeID: Ia02760fd98aaab59a6cf0a90a2020b76e0c92df6 changeID: Id6815f96a11f2918bc2c7bc1c33f38c3f5754e11 changeID: Ic8c01b9b7ed86d3bdd9f5125504bc47f46a37700 changeID: I9f1a408f0e43bff4499575fa57cabd1a83d99b3a Change-Id: I1deadd77cc78f2186f82de79233aabe97ac21b26 Signed-off-by: helenyao <yaohelan@huawei.com>
2016-12-20Bugfix in passing parameters to logger_debug.ashishk19941-1/+5
JIRA: FUNCTEST-675 Change-Id: I342d51391323dd1ffe516d8dbc13b2d543374a3e Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com>
2016-12-20Remove backslash to meet PEP8 requirementhelenyao4-18/+19
JIRA: FUNCTEST-630 Change-Id: Ia02760fd98aaab59a6cf0a90a2020b76e0c92df6 Signed-off-by: helenyao <yaohelan@huawei.com>
2016-12-20Merge "Unified way to provide configurations and env variables(proposal 1)"Jose Lausuch3-0/+68
2016-12-20Remove old tempest implementationjose.lausuch3-591/+0
JIRA: FUNCTEST-542 Change-Id: I62151e60cd508a9f65cc6d6d6866947c3fac435e Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-12-20Merge "Adapt Tempest to the new template"Serena Feng4-0/+517
2016-12-20Merge "Cover ODLResultVisitor"Serena Feng2-1/+36
2016-12-20Adapt Tempest to the new templatejose.lausuch4-0/+517
JIRA: FUNCTEST-542 Change-Id: I5576ce5c1aecd67ad97999f412e8c049c20d8e94 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-12-19Merge "Fix the issue of unexpected keyword argument 'endpoint_type'"Jose Lausuch2-71/+62
2016-12-19Allow executing several testcases with the CLIjose.lausuch1-7/+9
By naming the test cases separated by "," The CLI will call run_tests.py for each test case. This is needed for example for the 3rd party CI. Change-Id: I2fa5c68ebb292b462153853879630c0cbc5ef0a2 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-12-19Bug-Fix: No module named feature.copperhelenyao1-1/+1
JIRA: FUNCTEST-667 Fix the wrong module path for copper. Bug is introduced by https://gerrit.opnfv.org/gerrit/#/c/24907 Change-Id: I65cb405cb477d155d4f4cdff493615ec1571f75f Signed-off-by: helenyao <yaohelan@huawei.com>
2016-12-17Merge "Avoid side effects induced by functest_constants in ODL UT"Cedric Ollivier3-71/+57
2016-12-17Cover ODLResultVisitorCédric Ollivier2-1/+36
It adds unit tests to cover ODLResultVisitor and then increases the coverage to 78%. It also fixes a nit in details pushed to DB. Change-Id: Ie4c31df67b5197c4273ee835242153e74b50601d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-12-16Set SNAPS tests as non blockingMorgan Richomme1-3/+3
to give a chance of other tests to be run in CI/master to be reverted once SNAPS stabilized Change-Id: Ide3a7ff267ed7ced31980b87d6482588d2cf7787 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-12-16Avoid side effects induced by functest_constants in ODL UTCédric Ollivier3-71/+57
It partially reverts [1] (odl.py + test_odl.py). [1] https://gerrit.opnfv.org/gerrit/#/c/24619/ Change-Id: Ie51ccf10f8ffa0a63086796f8bb722ef50567b2d Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-12-16Fix the issue of unexpected keyword argument 'endpoint_type'helenyao2-71/+62
JIRA: FUNCTEST-662 Different OpenStack has different version of RC file thus the environment variables vary. The keystoneauth1 initialization only support limited input. This patch only feed the required input to keystoneauth1. Moreover, the patch optimized the code by removing hardcode and improved the scalability. Change-Id: Id6815f96a11f2918bc2c7bc1c33f38c3f5754e11 Signed-off-by: helenyao <yaohelan@huawei.com>
2016-12-15Add check_criteria() in testcase_baseCédric Ollivier5-16/+36
It allows checking testcase results and then returning an error value to CI. Now run() should return EX_OK even if criteria is FAILED. It also fixes an issue induced by [1]. [1] https://gerrit.opnfv.org/gerrit/#/c/24561/ Change-Id: Iaa095696f9dcb87f8cc95179b4f404b092d1e23e Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-12-15Convert files to Unix format.Cédric Ollivier2-212/+212
Change-Id: I51fabb809e0f446a4dcf2108af10a3f137b177d3 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-12-15Fix file permissionsCédric Ollivier3-0/+0
It has been fixed by calling [1] [1] find ${FUNCTEST_REPO_DIR} -name "*.py" \ -not -path "*tests/unit*" |xargs grep __main__ \ |cut -d\: -f 1 |xargs chmod -c 755 && find ${FUNCTEST_REPO_DIR} -name "*.sh" \ |xargs grep \#\! |cut -d\: -f 1 |xargs chmod -c 755 Change-Id: I654d9221179e60ea45d1db83157c4a9aa9497b69 Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-12-15Unified way to provide configurations and env variables(proposal 1)SerenaFeng3-0/+68
In this proposal, everything in os.environ can be accessed directly using const, and with the exact name os.environ defined. The name of a configuration is totally decided by config_functest.yaml, which is the joint name of each level with '_'. This version requires us to naming each level in yaml in a little cleancode way, or else the configuration name would become ugly. Let me take the current defination of general.directories as instance, the configuration name will be 'directories_dir_repo_functest', looks not very good. But if we make some adaption: general: dir: repo_functest: it will become 'dir_repo_functest', looks a little better. For vIMs is well defined, let me take it for example, the configuration names will look like: vIMS_clearwater_blueprint_url vIMS_clearwater_blueprint_file_name vIMS_clearwater_blueprint_name vIMS_clearwater_blueprint_branch vIMS_clearwater_blueprint_destination_folder vIMS_clearwater_deployment-name Change-Id: I18ec8686d9cfb2b80a370d422c6ad81a8800585c Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-12-14Bug fix: precise testcase name to push results into DBMorgan Richomme3-0/+3
JIRA: FUNCTEST-659 Change-Id: Ic92ecddc5d0bb295b99f7ffc2ab957e80e7ea32f Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-12-14Merge "Conform SFC test case to FeatureBase"Morgan Richomme3-23/+24
2016-12-14Merge "Adapt Copper to Abstraction framework"Morgan Richomme2-65/+11
2016-12-14Authenticate clients with keystoneauth1.sessionhelenyao6-102/+126
JIRA: FUNCTEST-529 1. use keystoneauth1.session to initialize the client for each service The keystoneauth1.session.Session class was introduced into keystoneauth1 as an attempt to bring a unified interface to the various OpenStack clients that share common authentication and request parameters between a variety of services. 2. update ODL case to leverage session to get the endpoint info Change-Id: Ic8c01b9b7ed86d3bdd9f5125504bc47f46a37700 Signed-off-by: helenyao <yaohelan@huawei.com>
2016-12-14Adapt Copper to Abstraction frameworkMorgan Richomme2-65/+11
JIRA: FUNCTEST-546 Change-Id: I775a7274883127cc627197fda37ae8e9043b59e2 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-12-13Merge "rename openstack to components"Morgan Richomme1-1/+1
2016-12-13Conform SFC test case to FeatureBasejose.lausuch3-23/+24
JIRA: FUNCTEST-550 Change-Id: I46853d1ba943a54b39b760c34c29c2b4c3b43d63 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-12-13Merge "Rename add_floating_ip arg to floatingip_addr"Jose Lausuch1-3/+3
2016-12-13rename openstack to componentsMorgan Richomme1-1/+1
to be in line with testing group agreed categories https://wiki.opnfv.org/display/testing Change-Id: Ibad08afe1ad37c244e1cf5f845f14a73bddfd63f Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-12-13Merge "CI-Build-Fix: Move the connection check to smoke"Morgan Richomme1-18/+18
2016-12-13Merge "Add timing decorator utility"Morgan Richomme1-0/+17
2016-12-13Add timing decorator utilityGeorge Paraskevopoulos1-0/+17
Create "timethis" utility decorator that prints how long it takes for an arbitrary function to complete USAGE: @functest.utils.functest_utils.timethis def function_to_be_timed(...): ... Change-Id: I41730c01b6889a9fa1ede4c5863841648b5af9c7 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-12-13Merge "Add host aggregate / av zones util functions"Jose Lausuch1-0/+103
2016-12-13CI-Build-Fix: Move the connection check to smokehelenyao1-18/+18
JIRA: FUNCTEST-648 The run_test.py first searches for tier, if no name is matched, it will continue to search for testcase. That said, for 'functest testcase run healthcheck', it will run all testcases under 'healthchech' tier. The connection check blocked the CI build. Change-Id: I4e14cb0f269175803d027756d5581fd1867b3147 Signed-off-by: helenyao <yaohelan@huawei.com>
2016-12-13Rename add_floating_ip arg to floatingip_addrRomanos Skiadas1-3/+3
nova_client.servers.add_floating_ip takes a Floating IP address as a second argument, not an id. Naming the argument floatingip_id is misleading. Change-Id: I39919fa305a46b58878c8b4f83e40c78390cfc07 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2016-12-12Merge "Move api_check test in smoke category"Morgan Richomme1-18/+18
2016-12-12Support rally configuration for both Newton and Mitakahelenyao1-1/+8
JIRA: FUNCTEST-644 As the RC file is different between Newton and Mitaka, the rally configuration file differs in two versions of openstack. Change-Id: Ibf06b7d1f0da87f155a95a152bb78ee7c2b9eb7d Signed-off-by: helenyao <yaohelan@huawei.com>
2016-12-12Move api_check test in smoke categoryMorgan Richomme1-18/+18
Healthcheck tests are used for gating and MUST not include negative tests Change-Id: Ie3a6715506cbbb9a5a9e5b455f648699600bd584 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-12-09Snaps integrationMorgan Richomme1-9/+8
Fix testcase class name Minor change on criteria, start_time, stop_time Change-Id: I9ba49781c3a3212f03b7ab822f9ab311a4fafd3d Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-12-09Add host aggregate / av zones util functionsGeorge Paraskevopoulos1-0/+103
Add functionality for creating, getting and deleting host aggregates and availability zones. Change-Id: I6717ba865cf1e8565ca4559c71cb112d0d6a132e Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-12-09Merge "abstract umbrella part to make integration code simpler"Serena Feng4-77/+65
2016-12-09Merge "Added test cases for running the Python Tests included with SNAPS."Morgan Richomme9-1/+242
2016-12-08Added test cases for running the Python Tests included with SNAPS.spisarski10-2/+243
JIRA: FUNCTEST-570 The three new tests are: 1. healthcheck/connecton_check - Retrieves different OpenStack clients and may exercise a query function 2. healthcheck/api_check - Exercises many of the OpenStack APIs by performing basic CRUD operations 3. smoke/snaps_smoke - Creates VMs and some optionally test SSH into floating IPs Removed configured exernal network name and replaced it with a dynamic lookup. Fixed typo in run_tests.py Change-Id: Icb87a77c7cdd99dd9aa3a66bcc5a25b4b5935fef Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2016-12-08Update the logic to support both Newton and Mitakahelenyao1-3/+23
JIRA: FUNCTEST-645 RC file is quite different between Newton and Mitaka. The change is to support both version. Change-Id: I846e8bc4b4c8b7caf4bcb26c8453e1fc5d1cc0f4 Signed-off-by: helenyao <yaohelan@huawei.com>
2016-12-07Revert commits that handle tacker objectsRomanos Skiadas2-174/+0
These break CI in deployments where tacker is not present. Revert them for now and reintroduce them later in a way that will work for cases where tacker is not there. Revert "Tacker objects in openstack clean" This reverts commit 510a71f74ef5f47c28995f93b461cf361a18aa74. Revert "Tacker objects in openstack snapshot" This reverts commit c2f950adc4391d312f84da016e7443758506cf8c. Change-Id: If6c470302a7be6363844eed212d25afd6e57dbc9 Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
2016-12-07Bugfix: fix the wrong class namehelenyao1-1/+1
JIRA: FUNCTEST-642 Fix the bug of patch: https://gerrit.opnfv.org/gerrit/#/c/25391/5/functest/ci/run_tests.py Change-Id: Iad2f1be32bdf0c391a40cd845ed2ca52ce8856f6 Signed-off-by: helenyao <yaohelan@huawei.com>
2016-12-07abstract umbrella part to make integration code simplerSerenaFeng4-78/+66
implement an abstract class Umbrella, and take parser for instance JIRA: FUNCTEST-618 Change-Id: Iadf71ad49abd901b9659cb71135fc902a3b616d1 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-12-06Merge "Tacker objects in openstack snapshot"Morgan Richomme1-0/+53
2016-12-06Merge "Tacker objects in openstack clean"Morgan Richomme1-0/+121
2016-12-05Merge "Fix Pep8 issues related to \"Morgan Richomme13-333/+331