functest-xtesting.git
7 years agoAdded unit tests for utils/functest_utils.py.
ashishk1994 [Tue, 27 Dec 2016 18:32:50 +0000 (00:02 +0530)]
Added unit tests for utils/functest_utils.py.

JIRA: FUNCTEST-683

Change-Id: I181d98847b2ca94ce84a670239b8a958bfae44cd
Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com>
7 years agoUnit tests utils added.
ashishk1994 [Mon, 2 Jan 2017 16:54:20 +0000 (22:24 +0530)]
Unit tests utils added.

Change-Id: I8e6115c8869032ad6d22dc62febb9c8003bfa422
Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com>
7 years agoMerge "Add a flag in the CLI to report results to DB"
Helen Yao [Wed, 28 Dec 2016 09:16:36 +0000 (09:16 +0000)]
Merge "Add a flag in the CLI to report results to DB"

7 years agobugfix: clean results directory error
SerenaFeng [Tue, 27 Dec 2016 06:10:50 +0000 (14:10 +0800)]
bugfix: clean results directory error

change 'rm -rf /home/opnfv/functest' to 'rm -rf /home/opnfv/functest/results'
and extract the clean logic to a common method clean_results_dir

Change-Id: I8aa0b09b58d9c14e53c2d4f2bb39376239e41168
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
7 years agoMerge "Bugfix: fix the wrong path for security scan"
Helen Yao [Tue, 27 Dec 2016 01:12:01 +0000 (01:12 +0000)]
Merge "Bugfix: fix the wrong path for security scan"

7 years agoEnable the tenant related features
helenyao [Mon, 26 Dec 2016 06:44:54 +0000 (01:44 -0500)]
Enable the tenant related features

JIRA: FUNCTEST-670

The tenant related features were enabled for OpenStack snapshot and cleanup.

Change-Id: Ie9a4012c0d29f57ed5a14139ccb5f8e29b6000dd
Signed-off-by: helenyao <yaohelan@huawei.com>
7 years agoMerge "Adapt create_tenant and create_user to keystone v3"
Serena Feng [Mon, 26 Dec 2016 03:38:01 +0000 (03:38 +0000)]
Merge "Adapt create_tenant and create_user to keystone v3"

7 years agoAdapt create_tenant and create_user to keystone v3
jose.lausuch [Sat, 24 Dec 2016 17:29:37 +0000 (18:29 +0100)]
Adapt create_tenant and create_user to keystone v3

JIRA: FUNCTEST-670

Change-Id: I5bb288be2dd5cee1776930ca94d1acad82f50160
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoMerge "refactor rally using new constants provider"
Serena Feng [Mon, 26 Dec 2016 02:39:24 +0000 (02:39 +0000)]
Merge "refactor rally using new constants provider"

7 years agoMerge "Fix Tempest push results to DB"
Helen Yao [Mon, 26 Dec 2016 01:21:37 +0000 (01:21 +0000)]
Merge "Fix Tempest push results to DB"

7 years agorefactor rally using new constants provider
SerenaFeng [Thu, 22 Dec 2016 09:51:15 +0000 (17:51 +0800)]
refactor rally using new constants provider

JIRA: FUNCTEST-673

Change-Id: I4b542a7693aaf7dd037e0e55dee3f22dda8df27a
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
7 years agoAdd a flag in the CLI to report results to DB
jose.lausuch [Sun, 25 Dec 2016 11:02:23 +0000 (12:02 +0100)]
Add a flag in the CLI to report results to DB

Change-Id: I155a7a8bc5457d013677f8b6e437fe27c31896ae
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoBugfix: fix the wrong path for security scan
helenyao [Sat, 24 Dec 2016 07:27:02 +0000 (02:27 -0500)]
Bugfix: fix the wrong path for security scan

JIRA: FUNCTEST-679

Change-Id: I488ebbca5ea2594787cb6151cd82bf2d4a3e8118
Signed-off-by: helenyao <yaohelan@huawei.com>
7 years agoMerge "refactor snaps and example using new constants provider"
Helen Yao [Sat, 24 Dec 2016 02:15:38 +0000 (02:15 +0000)]
Merge "refactor snaps and example using new constants provider"

7 years agoMerge "Updated vims to support keystone v3"
Helen Yao [Sat, 24 Dec 2016 02:12:24 +0000 (02:12 +0000)]
Merge "Updated vims to support keystone v3"

7 years agoFix Tempest push results to DB
jose.lausuch [Fri, 23 Dec 2016 22:42:05 +0000 (23:42 +0100)]
Fix Tempest push results to DB

JIRA: FUNCTEST-678

Change-Id: Ia4dca2d134e91b1647694d41972d979f9b70e967
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agorefactor snaps and example using new constants provider
SerenaFeng [Thu, 22 Dec 2016 12:33:23 +0000 (20:33 +0800)]
refactor snaps and example using new constants provider

JIRA: FUNCTEST-673

Change-Id: If20be3c614f729c17bf6484676de7889747a98c0
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
7 years agobugfix: get git branch failed when only 'git fetch' is provided
SerenaFeng [Fri, 23 Dec 2016 06:32:52 +0000 (14:32 +0800)]
bugfix: get git branch failed when only 'git fetch' is provided

File "/usr/local/lib/python2.7/dist-packages/functest/cli/commands/cli_env.py", line 58, in show
    branch = repo.head.reference
  File "/usr/local/lib/python2.7/dist-packages/git/refs/symbolic.py", line 258, in _get_reference
    raise TypeError("%s is a detached symbolic reference as it points to %r" % (self, sha))
TypeError: HEAD is a detached symbolic reference as it points to '2632ba86dd920267455ee10154b9e2ce4695a889'

JIRA: FUNCTEST-673

Change-Id: I2306dde254710d7d0e8a3529a19e3d8fdb6e5b02
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
7 years agorefactor cli module using new constants provider
SerenaFeng [Thu, 22 Dec 2016 02:53:36 +0000 (10:53 +0800)]
refactor cli module using new constants provider

JIRA: FUNCTEST-673

Change-Id: I643fb16c694a8d7df45a13237f34b19a02906881
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
7 years agoRefactor domino using FeatureBase and new constants provider
SerenaFeng [Thu, 22 Dec 2016 03:16:39 +0000 (11:16 +0800)]
Refactor domino using FeatureBase and new constants provider

JIRA: FUNCTEST-673

Change-Id: I153fd5ca68deffa6fd140e62f438cf6ee5404f98
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
7 years agoRefactor tempest using new constants provider
SerenaFeng [Thu, 22 Dec 2016 05:00:49 +0000 (13:00 +0800)]
Refactor tempest using new constants provider

JIRA: FUNCTEST-673

Change-Id: Ibc274edd6bc9e8aea9e124fae84d7dec481982ab
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
7 years agoAdapt SDNVPN tests using Featurebase
jose.lausuch [Wed, 21 Dec 2016 13:51:30 +0000 (14:51 +0100)]
Adapt SDNVPN tests using Featurebase

Change-Id: I8be4bb72ba1d3b7eb2ba6e1edccf61d4186e07c6
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoUpdated vims to support keystone v3
Jose Lausuch [Wed, 21 Dec 2016 10:32:03 +0000 (10:32 +0000)]
Updated vims to support keystone v3

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>
7 years agoRefactor test run related modules using new constants provider
SerenaFeng [Wed, 21 Dec 2016 07:42:54 +0000 (15:42 +0800)]
Refactor test run related modules using new constants provider

JIRA: FUNCTEST-673

Change-Id: Ia37fb5a08c8fbc4a8acb666565ea887f9ae48b83
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
7 years agoMerge "refactor vping using new constants provider"
Jose Lausuch [Wed, 21 Dec 2016 10:32:03 +0000 (10:32 +0000)]
Merge "refactor vping using new constants provider"

7 years agorefactor vping using new constants provider
SerenaFeng [Wed, 21 Dec 2016 03:02:45 +0000 (11:02 +0800)]
refactor vping using new constants provider

JIRA: FUNCTEST-673

Change-Id: I56ac66662b53593257609fa87c16df52440f7458
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
7 years agoMerge "Add default env variables in ENV class"
Jose Lausuch [Wed, 21 Dec 2016 08:30:51 +0000 (08:30 +0000)]
Merge "Add default env variables in ENV class"

7 years agoBugfix in passing parameters to logger_debug.
ashishk1994 [Tue, 20 Dec 2016 15:29:49 +0000 (20:59 +0530)]
Bugfix in passing parameters to logger_debug.

JIRA: FUNCTEST-675

Change-Id: I342d51391323dd1ffe516d8dbc13b2d543374a3e
Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com>
7 years agoAdd default env variables in ENV class
jose.lausuch [Tue, 20 Dec 2016 15:03:23 +0000 (16:03 +0100)]
Add default env variables in ENV class

Change-Id: Ibca9c7a533796b5a2beae4e13b626f340969a567
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoRemove backslash to meet PEP8 requirement
helenyao [Tue, 20 Dec 2016 03:18:33 +0000 (22:18 -0500)]
Remove backslash to meet PEP8 requirement

JIRA: FUNCTEST-630

Change-Id: Ia02760fd98aaab59a6cf0a90a2020b76e0c92df6
Signed-off-by: helenyao <yaohelan@huawei.com>
7 years agoMerge "Unified way to provide configurations and env variables(proposal 1)"
Jose Lausuch [Tue, 20 Dec 2016 11:48:16 +0000 (11:48 +0000)]
Merge "Unified way to provide configurations and env variables(proposal 1)"

7 years agoRemove old tempest implementation
jose.lausuch [Tue, 20 Dec 2016 09:32:04 +0000 (10:32 +0100)]
Remove old tempest implementation

JIRA: FUNCTEST-542

Change-Id: I62151e60cd508a9f65cc6d6d6866947c3fac435e
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoMerge "Adapt Tempest to the new template"
Serena Feng [Tue, 20 Dec 2016 09:25:57 +0000 (09:25 +0000)]
Merge "Adapt Tempest to the new template"

7 years agoMerge "Cover ODLResultVisitor"
Serena Feng [Tue, 20 Dec 2016 09:25:31 +0000 (09:25 +0000)]
Merge "Cover ODLResultVisitor"

7 years agoAdapt Tempest to the new template
jose.lausuch [Fri, 16 Dec 2016 12:52:33 +0000 (13:52 +0100)]
Adapt Tempest to the new template

JIRA: FUNCTEST-542

Change-Id: I5576ce5c1aecd67ad97999f412e8c049c20d8e94
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoMerge "Install sdnvpn as a python package"
Jose Lausuch [Mon, 19 Dec 2016 15:06:17 +0000 (15:06 +0000)]
Merge "Install sdnvpn as a python package"

7 years agoMerge "Fix the issue of unexpected keyword argument 'endpoint_type'"
Jose Lausuch [Mon, 19 Dec 2016 14:50:26 +0000 (14:50 +0000)]
Merge "Fix the issue of unexpected keyword argument 'endpoint_type'"

7 years agoAllow executing several testcases with the CLI
jose.lausuch [Mon, 19 Dec 2016 13:06:27 +0000 (14:06 +0100)]
Allow executing several testcases with the CLI

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>
7 years agoBug-Fix: No module named feature.copper
helenyao [Mon, 19 Dec 2016 07:06:21 +0000 (02:06 -0500)]
Bug-Fix: No module named feature.copper

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>
7 years agoMerge "Avoid side effects induced by functest_constants in ODL UT"
Cedric Ollivier [Sat, 17 Dec 2016 10:09:16 +0000 (10:09 +0000)]
Merge "Avoid side effects induced by functest_constants in ODL UT"

7 years agoCover ODLResultVisitor
Cédric Ollivier [Sat, 17 Dec 2016 09:59:52 +0000 (10:59 +0100)]
Cover ODLResultVisitor

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>
7 years agoSet SNAPS tests as non blocking
Morgan Richomme [Fri, 16 Dec 2016 16:20:57 +0000 (17:20 +0100)]
Set SNAPS tests as non blocking

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>
7 years agoAvoid side effects induced by functest_constants in ODL UT
Cédric Ollivier [Fri, 16 Dec 2016 09:34:01 +0000 (10:34 +0100)]
Avoid side effects induced by functest_constants in ODL UT

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>
7 years agoMerge "Add check_criteria() in testcase_base"
Jose Lausuch [Fri, 16 Dec 2016 09:58:00 +0000 (09:58 +0000)]
Merge "Add check_criteria() in testcase_base"

7 years agoMerge "Convert files to Unix format."
Jose Lausuch [Fri, 16 Dec 2016 09:57:19 +0000 (09:57 +0000)]
Merge "Convert files to Unix format."

7 years agoMerge "Fix find in Dockerfile"
Jose Lausuch [Fri, 16 Dec 2016 09:56:57 +0000 (09:56 +0000)]
Merge "Fix find in Dockerfile"

7 years agoMerge "Fix file permissions"
Jose Lausuch [Fri, 16 Dec 2016 09:56:44 +0000 (09:56 +0000)]
Merge "Fix file permissions"

7 years agoMerge "Promote Helen Yao as commiter in Functest"
Jose Lausuch [Fri, 16 Dec 2016 09:41:02 +0000 (09:41 +0000)]
Merge "Promote Helen Yao as commiter in Functest"

7 years agoFix the issue of unexpected keyword argument 'endpoint_type'
helenyao [Fri, 16 Dec 2016 03:49:06 +0000 (22:49 -0500)]
Fix the issue of unexpected keyword argument 'endpoint_type'

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>
7 years agoAdd check_criteria() in testcase_base
Cédric Ollivier [Thu, 15 Dec 2016 15:54:45 +0000 (16:54 +0100)]
Add check_criteria() in testcase_base

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>
7 years agoConvert files to Unix format.
Cédric Ollivier [Thu, 15 Dec 2016 14:14:50 +0000 (15:14 +0100)]
Convert files to Unix format.

Change-Id: I51fabb809e0f446a4dcf2108af10a3f137b177d3
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoFix find in Dockerfile
Cédric Ollivier [Thu, 15 Dec 2016 14:06:35 +0000 (15:06 +0100)]
Fix find in Dockerfile

Unit tests has been moved to functest/tests/unit

Change-Id: I62175f04089eb4d12213e1c48ae1a5abbb540e2e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoFix file permissions
Cédric Ollivier [Thu, 15 Dec 2016 13:54:14 +0000 (14:54 +0100)]
Fix file permissions

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>
7 years agoInstall sdnvpn as a python package
Romanos Skiadas [Thu, 15 Dec 2016 14:52:47 +0000 (16:52 +0200)]
Install sdnvpn as a python package

Change-Id: Ifc3a2f8184b987e0325fd6ad182b808c0d703542
Signed-off-by: Romanos Skiadas <rski@intracom-telecom.com>
7 years agoFix path for SFC package installation
jose.lausuch [Thu, 15 Dec 2016 14:48:32 +0000 (15:48 +0100)]
Fix path for SFC package installation

Change-Id: I0a0ee6b492946255922f81043f89e11e7c70792e
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoMerge "Install SFC python modules in Functest"
Jose Lausuch [Thu, 15 Dec 2016 14:20:08 +0000 (14:20 +0000)]
Merge "Install SFC python modules in Functest"

7 years agoPromote Helen Yao as commiter in Functest
jose.lausuch [Thu, 15 Dec 2016 10:50:49 +0000 (11:50 +0100)]
Promote Helen Yao as commiter in Functest

Change-Id: I5d20ed6a0fa9b76728e0bb61df14bceff36bc8f2
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoInstall SFC python modules in Functest
jose.lausuch [Wed, 14 Dec 2016 11:08:43 +0000 (12:08 +0100)]
Install SFC python modules in Functest

This will install SFC repository locally
so that they can have whatever directory structure
without modifying the PYTHONPATH env var.

See this for more info:
https://gerrit.opnfv.org/gerrit/#/c/25861/

JIRA: SFC-60

Change-Id: If197c250da61d2ae1f4b2f90a52bf007159fd07e
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoUnified way to provide configurations and env variables(proposal 1)
SerenaFeng [Fri, 9 Dec 2016 08:00:45 +0000 (16:00 +0800)]
Unified way to provide configurations and env variables(proposal 1)

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>
7 years agoMerge "Switch to ODL beryllium-sr4"
Morgan Richomme [Thu, 15 Dec 2016 07:37:49 +0000 (07:37 +0000)]
Merge "Switch to ODL beryllium-sr4"

7 years agoMerge "Create internship dir in docs"
Morgan Richomme [Thu, 15 Dec 2016 07:36:55 +0000 (07:36 +0000)]
Merge "Create internship dir in docs"

7 years agoSwitch to ODL beryllium-sr4
Cédric Ollivier [Wed, 14 Dec 2016 16:04:21 +0000 (17:04 +0100)]
Switch to ODL beryllium-sr4

It switches ODL_TAG to beryllium-sr4 which integrates the following
patches [1] and [2] which were part of OPNFV functest.

[1] https://git.opendaylight.org/gerrit/#/c/46910/
[2] https://git.opendaylight.org/gerrit/#/c/46749/

Change-Id: Ibc7e9eb1dc5dadff024562e6d077242688192ba9
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoBug fix: precise testcase name to push results into DB
Morgan Richomme [Wed, 14 Dec 2016 10:40:56 +0000 (11:40 +0100)]
Bug fix: precise testcase name to push results into DB

JIRA: FUNCTEST-659

Change-Id: Ic92ecddc5d0bb295b99f7ffc2ab957e80e7ea32f
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
7 years agoMerge "Conform SFC test case to FeatureBase"
Morgan Richomme [Wed, 14 Dec 2016 10:30:56 +0000 (10:30 +0000)]
Merge "Conform SFC test case to FeatureBase"

7 years agoMerge "Adapt Copper to Abstraction framework"
Morgan Richomme [Wed, 14 Dec 2016 10:30:39 +0000 (10:30 +0000)]
Merge "Adapt Copper to Abstraction framework"

7 years agoAuthenticate clients with keystoneauth1.session
helenyao [Thu, 8 Dec 2016 02:24:24 +0000 (21:24 -0500)]
Authenticate clients with keystoneauth1.session

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>
7 years agoAdapt Copper to Abstraction framework
Morgan Richomme [Fri, 25 Nov 2016 17:15:50 +0000 (18:15 +0100)]
Adapt Copper to Abstraction framework

JIRA: FUNCTEST-546

Change-Id: I775a7274883127cc627197fda37ae8e9043b59e2
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
7 years agoCreate internship dir in docs
Morgan Richomme [Tue, 13 Dec 2016 16:27:22 +0000 (17:27 +0100)]
Create internship dir in docs

to be used for internship documentation

Change-Id: Iad0be6025344ae19fcd218ee46794f090943b32e
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
7 years agoMerge "rename openstack to components"
Morgan Richomme [Tue, 13 Dec 2016 21:03:51 +0000 (21:03 +0000)]
Merge "rename openstack to components"

7 years agoConform SFC test case to FeatureBase
jose.lausuch [Wed, 23 Nov 2016 10:24:49 +0000 (11:24 +0100)]
Conform SFC test case to FeatureBase

JIRA: FUNCTEST-550

Change-Id: I46853d1ba943a54b39b760c34c29c2b4c3b43d63
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoMerge "Rename add_floating_ip arg to floatingip_addr"
Jose Lausuch [Tue, 13 Dec 2016 18:07:54 +0000 (18:07 +0000)]
Merge "Rename add_floating_ip arg to floatingip_addr"

7 years agorename openstack to components
Morgan Richomme [Tue, 13 Dec 2016 14:32:56 +0000 (15:32 +0100)]
rename openstack to components

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>
7 years agoMerge "CI-Build-Fix: Move the connection check to smoke"
Morgan Richomme [Tue, 13 Dec 2016 14:30:01 +0000 (14:30 +0000)]
Merge "CI-Build-Fix: Move the connection check to smoke"

7 years agoMerge "Add timing decorator utility"
Morgan Richomme [Tue, 13 Dec 2016 13:16:23 +0000 (13:16 +0000)]
Merge "Add timing decorator utility"

7 years agoAdd timing decorator utility
George Paraskevopoulos [Mon, 12 Dec 2016 14:12:14 +0000 (16:12 +0200)]
Add timing decorator utility

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>
7 years agoMerge "Add host aggregate / av zones util functions"
Jose Lausuch [Tue, 13 Dec 2016 12:21:43 +0000 (12:21 +0000)]
Merge "Add host aggregate / av zones util functions"

7 years agoCI-Build-Fix: Move the connection check to smoke
helenyao [Tue, 13 Dec 2016 10:18:45 +0000 (05:18 -0500)]
CI-Build-Fix: Move the connection check to smoke

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>
7 years agoRename add_floating_ip arg to floatingip_addr
Romanos Skiadas [Tue, 13 Dec 2016 08:28:01 +0000 (10:28 +0200)]
Rename add_floating_ip arg to floatingip_addr

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>
7 years agoUpgraded the virtualenv
helenyao [Tue, 13 Dec 2016 02:49:48 +0000 (21:49 -0500)]
Upgraded the virtualenv

JIRA: FUNCTEST-654

The virtualenv is too old and it will break the unit test if it runs the second time.

Change-Id: I9f1a408f0e43bff4499575fa57cabd1a83d99b3a
Signed-off-by: helenyao <yaohelan@huawei.com>
7 years agoMerge "Move api_check test in smoke category"
Morgan Richomme [Mon, 12 Dec 2016 14:36:17 +0000 (14:36 +0000)]
Merge "Move api_check test in smoke category"

7 years agoInstall releng as a python module
George Paraskevopoulos [Mon, 12 Dec 2016 10:18:21 +0000 (12:18 +0200)]
Install releng as a python module

Modify functest container to install releng modules as a python module.
This way we can use the opnfv.utils.* libraries

Change-Id: Ib61f1c9dc2564135fe3ef6ead58b69e24c99d2c6
Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
7 years agoSupport rally configuration for both Newton and Mitaka
helenyao [Thu, 8 Dec 2016 10:31:49 +0000 (05:31 -0500)]
Support rally configuration for both Newton and Mitaka

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>
7 years agoMove api_check test in smoke category
Morgan Richomme [Mon, 12 Dec 2016 09:04:05 +0000 (10:04 +0100)]
Move api_check test in smoke category

Healthcheck tests are used for gating and MUST not include
negative tests

Change-Id: Ie3a6715506cbbb9a5a9e5b455f648699600bd584
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
7 years agoSnaps integration
Morgan Richomme [Fri, 9 Dec 2016 18:46:54 +0000 (19:46 +0100)]
Snaps integration

Fix testcase class name
Minor change on criteria, start_time, stop_time

Change-Id: I9ba49781c3a3212f03b7ab822f9ab311a4fafd3d
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
7 years agoAdd host aggregate / av zones util functions
George Paraskevopoulos [Thu, 8 Dec 2016 14:37:33 +0000 (16:37 +0200)]
Add host aggregate / av zones util functions

Add functionality for creating, getting and deleting host aggregates and
availability zones.

Change-Id: I6717ba865cf1e8565ca4559c71cb112d0d6a132e
Signed-off-by: George Paraskevopoulos <geopar@intracom-telecom.com>
7 years agoMerge "abstract umbrella part to make integration code simpler"
Serena Feng [Fri, 9 Dec 2016 08:54:09 +0000 (08:54 +0000)]
Merge "abstract umbrella part to make integration code simpler"

7 years agoMerge "Added test cases for running the Python Tests included with SNAPS."
Morgan Richomme [Fri, 9 Dec 2016 07:43:21 +0000 (07:43 +0000)]
Merge "Added test cases for running the Python Tests included with SNAPS."

7 years agoAdded test cases for running the Python Tests included with SNAPS.
spisarski [Sat, 3 Dec 2016 00:26:07 +0000 (17:26 -0700)]
Added test cases for running the Python Tests included with SNAPS.

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>
7 years agoUpdate the logic to support both Newton and Mitaka
helenyao [Thu, 8 Dec 2016 09:36:55 +0000 (04:36 -0500)]
Update the logic to support both Newton and Mitaka

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>
7 years agoRevert commits that handle tacker objects
Romanos Skiadas [Wed, 7 Dec 2016 08:45:34 +0000 (10:45 +0200)]
Revert commits that handle tacker objects

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>
7 years agoMerge "Get rid of easy_install in unit test"
Morgan Richomme [Wed, 7 Dec 2016 08:16:32 +0000 (08:16 +0000)]
Merge "Get rid of easy_install in unit test"

7 years agoGet rid of easy_install in unit test
helenyao [Tue, 6 Dec 2016 02:41:07 +0000 (21:41 -0500)]
Get rid of easy_install in unit test

JIRA: FUNCTEST-638

Pip is a better alternative to Easy Install for installing Python packages.
There is no need to install easy_install.

Change-Id: I3dee17a800d11907c7f0942bff251a93675978bb
Signed-off-by: helenyao <yaohelan@huawei.com>
7 years agoBugfix: fix the wrong class name
helenyao [Wed, 7 Dec 2016 07:20:56 +0000 (02:20 -0500)]
Bugfix: fix the wrong class name

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>
7 years agoabstract umbrella part to make integration code simpler
SerenaFeng [Thu, 24 Nov 2016 02:32:53 +0000 (10:32 +0800)]
abstract umbrella part to make integration code simpler

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>
7 years agoMerge "test-requirements.txt is added for unit test."
Morgan Richomme [Tue, 6 Dec 2016 18:15:08 +0000 (18:15 +0000)]
Merge "test-requirements.txt is added for unit test."

7 years agoMerge "Concatenate the RUN commands"
Morgan Richomme [Tue, 6 Dec 2016 12:38:24 +0000 (12:38 +0000)]
Merge "Concatenate the RUN commands"

7 years agoMerge "Sort multi-line arguments alphanumerically"
Morgan Richomme [Tue, 6 Dec 2016 12:38:14 +0000 (12:38 +0000)]
Merge "Sort multi-line arguments alphanumerically"

7 years agoMerge "Tacker objects in openstack snapshot"
Morgan Richomme [Tue, 6 Dec 2016 12:36:13 +0000 (12:36 +0000)]
Merge "Tacker objects in openstack snapshot"

7 years agoMerge "Tacker objects in openstack clean"
Morgan Richomme [Tue, 6 Dec 2016 12:36:08 +0000 (12:36 +0000)]
Merge "Tacker objects in openstack clean"

7 years agotest-requirements.txt is added for unit test.
helenyao [Tue, 6 Dec 2016 03:24:43 +0000 (22:24 -0500)]
test-requirements.txt is added for unit test.

JIRA: FUNCTEST-639

Some requirement packages are only needed by unit test and there is no need to include them in requirement.txt.
This is the main reason to create a test-requirements.txt to hold all packages required by unit test.

Change-Id: Iefa9f54b57666d30044ec174adfeb22d63b6b139
Signed-off-by: helenyao <yaohelan@huawei.com>