aboutsummaryrefslogtreecommitdiffstats
path: root/functest/utils
AgeCommit message (Collapse)AuthorFilesLines
2017-02-06Change log level when pod, scenario or build_tag cannot be retrievedMorgan Richomme1-5/+6
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-03Fix template error logGeorge Paraskevopoulos1-7/+9
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-03Merge "Get tacker client using session authentication"Jose Lausuch1-3/+3
2017-02-02Merge changes from topic 'convert_unix_format'Jose Lausuch1-0/+0
* changes: Change permissions of python files Convert files to Unix format
2017-02-02Get tacker client using session authenticationGeorge Paraskevopoulos1-3/+3
Update getting tacker client logic to use session for authentication Change-Id: Ibc46e3d6b749540e1a23d08f6635c323e4dcf08d Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
2017-02-02Change permissions of python filesCédric Ollivier1-0/+0
Change-Id: I21826594ffa9b06a70664aa3512f0b5df8b546cd Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
2017-02-02Adapt Promise to new frameworkMorgan Richomme1-27/+0
JIRA: FUNCTEST-549 Change-Id: I01018bc10f5b1717af217457018a5d56f86d60cd Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-01-31Adapt doctor test case to the FeatureBase frameworkh-hayashi1-2/+0
JIRA: FUNCTEST-545 1. Modification of “doctor.py” to adapt Feature Base framework. deletion of detail("timestart and duration , status). 2. Deletion of definition of doctor’s repo directory in “functest_const.py" Change-Id: I81d944dc64a81346cbf465c452111f11474ea83c Signed-off-by: Hideyasu Hayashi <hideyasu.hayashi@okinawaopenlabs.org>
2017-01-30Support newton in tempestMichael Polenchuk1-0/+2
* newton release support is started from 13.0.0 * set swift operator role to existing one * unblacklist server_basic_ops test JIRA: FUNCTEST-712 Change-Id: Ieb3d9477db3dfa98f940c3732b64f6eb7515f6e6 Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
2017-01-23Merge "Leverage logging config and refactor the logger"Helen Yao1-23/+37
2017-01-22Merge "Reverted the file permission"Helen Yao1-0/+0
2017-01-19Leverage logging config and refactor the loggerhelenyao1-23/+37
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>
2017-01-19Merge "Bugfix: delete the wrong path in functest_constants.py"Morgan Richomme1-15/+0
2017-01-19Merge "write test results to a local file"Morgan Richomme1-1/+33
2017-01-19Bugfix: delete the wrong path in functest_constants.pyLinda Wang1-15/+0
Fix the bug patch: https://gerrit.opnfv.org/gerrit/#/c/26769 Change-Id: I9ef5adeabb98ed3abfd67d23b78672a719c45225 Signed-off-by: Linda Wang <wangwulin@huawei.com>
2017-01-18Merge "Add VnfOnBoarding Abstraction"Jose Lausuch1-5/+0
2017-01-18Add VnfOnBoarding AbstractionMorgan Richomme1-5/+0
JIRA: FUNCTEST-535 Change-Id: Idfa3dfd64554472aaac3f26a504e1f74d2f42926 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2017-01-17write test results to a local filewu.zhihui1-1/+33
Write test result to a file or push it to DB depends on the value format of test_db_url which is defined in config_functest.yaml. Meanwhile, test_db_url can be set by os envrion value "RESULT_STORE". If test_db_url is a url, e.g. http:// or https://, then push result to DB. If test_db_url is a file location, e.g. file:///, then write results to a file with json data. One result record, one line. JIRA: FUNCTEST-657 Change-Id: I579087cd2c24d61a79142b5d67003fb486b6c723 Signed-off-by: wu.zhihui <wu.zhihui1@zte.com.cn>
2017-01-13Setting level to the Functest logger's parent logger to ensure log output fromspisarski1-0/+2
Python libraries being used by framework does not get sent to dev/null. JIRA: FUNCTEST-658 The parent logger is being set to logging.WARN and this is the logger instance that is being inherited by the upstream libraries. Change-Id: I35a02a8ea075012ac21e3b5d12d27c0187057b90 Signed-off-by: spisarski <s.pisarski@cablelabs.com>
2017-01-04Reverted the file permissionhelenyao1-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-26Enable the tenant related featureshelenyao3-31/+36
JIRA: FUNCTEST-670 The tenant related features were enabled for OpenStack snapshot and cleanup. Change-Id: Ie9a4012c0d29f57ed5a14139ccb5f8e29b6000dd Signed-off-by: helenyao <yaohelan@huawei.com>
2016-12-26Merge "Adapt create_tenant and create_user to keystone v3"Serena Feng1-9/+28
2016-12-25Adapt create_tenant and create_user to keystone v3jose.lausuch1-9/+28
JIRA: FUNCTEST-670 Change-Id: I5bb288be2dd5cee1776930ca94d1acad82f50160 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-12-26Merge "refactor rally using new constants provider"Serena Feng2-4/+3
2016-12-26refactor rally using new constants providerSerenaFeng2-4/+3
JIRA: FUNCTEST-673 Change-Id: I4b542a7693aaf7dd037e0e55dee3f22dda8df27a Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-12-24Merge "refactor snaps and example using new constants provider"Helen Yao1-10/+10
2016-12-24Merge "Updated vims to support keystone v3"Helen Yao1-15/+25
2016-12-23refactor snaps and example using new constants providerSerenaFeng1-10/+10
JIRA: FUNCTEST-673 Change-Id: If20be3c614f729c17bf6484676de7889747a98c0 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-12-22refactor cli module using new constants providerSerenaFeng2-2/+3
JIRA: FUNCTEST-673 Change-Id: I643fb16c694a8d7df45a13237f34b19a02906881 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-12-22Refactor domino using FeatureBase and new constants providerSerenaFeng1-2/+3
JIRA: FUNCTEST-673 Change-Id: I153fd5ca68deffa6fd140e62f438cf6ee5404f98 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-12-22Refactor tempest using new constants providerSerenaFeng3-23/+4
JIRA: FUNCTEST-673 Change-Id: Ibc274edd6bc9e8aea9e124fae84d7dec481982ab Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-12-21Adapt SDNVPN tests using Featurebasejose.lausuch1-1/+1
Change-Id: I8be4bb72ba1d3b7eb2ba6e1edccf61d4186e07c6 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-12-21Updated vims to support keystone v3Jose Lausuch3-44/+54
Adding the choice, into openstack_utils, to get openstack client with environment credentials or with a specific credentials (new user/tenant..) JIRA: FUNCTEST-529 Change-Id: I295808311de40f37a07b5a831852876a51f276f3 Signed-off-by: boucherv <valentin.boucher@orange.com>
2016-12-21Refactor test run related modules using new constants providerSerenaFeng5-15/+38
JIRA: FUNCTEST-673 Change-Id: Ia37fb5a08c8fbc4a8acb666565ea887f9ae48b83 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-12-21Merge "refactor vping using new constants provider"Jose Lausuch2-29/+29
2016-12-21refactor vping using new constants providerSerenaFeng2-29/+29
JIRA: FUNCTEST-673 Change-Id: I56ac66662b53593257609fa87c16df52440f7458 Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
2016-12-20Add default env variables in ENV classjose.lausuch1-1/+7
Change-Id: Ibca9c7a533796b5a2beae4e13b626f340969a567 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2016-12-20Merge "Unified way to provide configurations and env variables(proposal 1)"Jose Lausuch3-0/+68
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-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-14Authenticate clients with keystoneauth1.sessionhelenyao3-69/+108
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 add_floating_ip arg to floatingip_addr"Jose Lausuch1-3/+3
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-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-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-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 Feng1-17/+0
2016-12-09Merge "Added test cases for running the Python Tests included with SNAPS."Morgan Richomme1-1/+1