aboutsummaryrefslogtreecommitdiffstats
path: root/functest
AgeCommit message (Collapse)AuthorFilesLines
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-13Merge "rename openstack to components"Morgan Richomme1-1/+1
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
2016-12-05Tacker objects in openstack cleanGeorge Paraskevopoulos1-0/+121
Add VNFD, VNF, SFC and SFC classifiers cleaning capabilities DEPENDS ON: https://gerrit.opnfv.org/gerrit/#/c/25485/ https://gerrit.opnfv.org/gerrit/#/c/25475/ Change-Id: I1405ed69a9dfac5d3dba7f16019288afdf65d0ff Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-12-05Tacker objects in openstack snapshotGeorge Paraskevopoulos1-0/+53
Add VNFD, VNF, SFC and SFC classifier snapshoting capabilities DEPENDS ON: https://gerrit.opnfv.org/gerrit/#/c/25485/ Change-Id: Ic89ab5be348cbe0cca2180c43352cfa4dac0f327 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-12-05Fix Pep8 issues related to \Morgan Richomme13-333/+331
JIRA: FUNCTEST-630 Change-Id: I2b6d3bec67c6fe290fb2ad795a54a2dd2e3c7a0b Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-12-05Fix typo in openstack_tackerGeorge Paraskevopoulos1-1/+1
Changed function stub: -def list_sfc_clasifiers(tacker_client, verbose=False): +def list_sfc_classifiers(tacker_client, verbose=False): Change-Id: I552231aff6c21a769366e8d41c20d64f1da374b4 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-12-02Rename TestCasesBase into TestcaseBasehelenyao11-72/+73
JIRA: FUNCTEST-628 1. rename the TestCasesBase into TestcaseBase 2. updated the module name to testcase_base.py Change-Id: Ic6b5d8209098c136613a2419c3790668fdbd493e Signed-off-by: helenyao <yaohelan@huawei.com>
2016-12-02Merge "remove functest_repo from TestBase, move it to vPingBase"Morgan Richomme2-2/+2
2016-12-02Merge "Allow unit testing w/o internet connectivity"Morgan Richomme1-6/+21
2016-12-02remove functest_repo from TestBase, move it to vPingBaseMorgan Richomme2-2/+2
Change-Id: I6e9ebc7280b24ced9b62bfa4fa38b08128febb42 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-12-02Merge "Revert "solve failure testcases are not pushed to testDB problem""Morgan Richomme2-5/+3
2016-12-01Merge "Remove Notion of SKIP in test cases"Morgan Richomme3-41/+20
2016-11-30Revert "solve failure testcases are not pushed to testDB problem"Morgan Richomme2-5/+3
This reverts commit a41264c46d583a68d48de041663213752dc62bf3. Change-Id: Id62c5342fffb5d75672127d9765d4cc882e3f4df Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-11-30Merge "Fix tacker util script"Jose Lausuch1-9/+46
2016-11-30Remove Notion of SKIP in test casesMorgan Richomme3-41/+20
JIRA: FUNCTEST-541 Change-Id: Ie71ba9c02e54a1ff05974ef89075b3ad7cf6f930 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-11-30Allow unit testing w/o internet connectivityCédric Ollivier1-6/+21
urllib2.urlopen() is now patched when testing the internet connectivity helper. Change-Id: I4ddf1dd8f494fe282735e1051986a0b5dd1a040f Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2016-11-29bug fix: bad ping.sh path after refactoringMorgan Richomme1-2/+2
JIRA: FUNCTEST-626 Change-Id: Iaab7de65ae197939f1ef715826ba5a2b2423c205 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-11-29Fix tacker util scriptGeorge Paraskevopoulos1-9/+46
Bug fixes for the tacker utilities script + a new function to wait for a VNF to come up Change-Id: Ia358c4b9dc43b60d0fd6ba4b18d2e7fd63f05a99 Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2016-11-28Merge "Bugfix: fix the wrong script path for healthcheck."Morgan Richomme1-1/+1
2016-11-25Bugfix: fix the wrong path for vping_sshhelenyao1-1/+1
JIRA: FUNCTEST-624 Change-Id: Idbd04eb4c09a3bae29f12e43b019ad095ce2cf7b Signed-off-by: helenyao <yaohelan@huawei.com>
2016-11-25Bugfix: fix the wrong script path for healthcheck.helenyao1-1/+1
JIRA: FUNCTEST-623 Change-Id: I9e37b25c989ce01d93920be372b3dc9845a3b0ae Signed-off-by: helenyao <yaohelan@huawei.com>
2016-11-25Merge smoke and sdn_controllers into smokeMorgan Richomme1-12/+4
1 category = min test suites to validate a scenario (feature excluded) Change-Id: I8ed2d2175dbdb13c1e762fdfc3f3280551d853f2 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-11-25Add suffix '_DIR' to some constants that point to directoriesjose.lausuch4-20/+23
JIRA: FUNCTEST-533 Change-Id: Iea2ca0709f6e53201056f9145fa6020216c31f56 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-11-25file/dir renaming for consistencyMorgan Richomme72-65/+65
JIRA: FUNCTEST-579 Change-Id: Iaa545db70bfb76770df0a3d17871e29ce518ff2d Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2016-11-25Adapt Parser test case to the new templateSerenaFeng5-44/+50
JIRA: FUNCTEST-565 Change-Id: If702831438fac97c28a1a35b1a91b81feb8397bd Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-11-25Merge "Consider criteria as exit condition in odl test"Morgan Richomme2-5/+12
2016-11-24Fix bug repos_dir -> REPOS_DIRjose.lausuch1-2/+2
JIRA: FUNCTEST-533 Change-Id: Ie98089c54326b255ffd7c6cad81abf29ad52f4a2 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>