functest-xtesting.git
7 years agoMerge "Bugfix: delete the wrong path in functest_constants.py"
Morgan Richomme [Thu, 19 Jan 2017 09:34:08 +0000 (09:34 +0000)]
Merge "Bugfix: delete the wrong path in functest_constants.py"

7 years agoMerge "write test results to a local file"
Morgan Richomme [Thu, 19 Jan 2017 09:25:45 +0000 (09:25 +0000)]
Merge "write test results to a local file"

7 years agoMerge "Use 8081 for apex's restconfport robot variable"
Morgan Richomme [Thu, 19 Jan 2017 08:49:15 +0000 (08:49 +0000)]
Merge "Use 8081 for apex's restconfport robot variable"

7 years agoBugfix: delete the wrong path in functest_constants.py
Linda Wang [Thu, 19 Jan 2017 08:33:54 +0000 (08:33 +0000)]
Bugfix: delete the wrong path in functest_constants.py

Fix the bug patch: https://gerrit.opnfv.org/gerrit/#/c/26769

Change-Id: I9ef5adeabb98ed3abfd67d23b78672a719c45225
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoMerge "Bugfix: fix the execution way in copper"
Morgan Richomme [Thu, 19 Jan 2017 07:17:28 +0000 (07:17 +0000)]
Merge "Bugfix: fix the execution way in copper"

7 years agoBugfix: fix wrong path to vims-test repo
helenyao [Thu, 19 Jan 2017 03:01:56 +0000 (22:01 -0500)]
Bugfix: fix wrong path to vims-test repo

JIRA: FUNCTEST-697

Fix the bug of patch: https://gerrit.opnfv.org/gerrit/#/c/26769

Change-Id: Ib5356f1098d292b7a774ff11bbbe6cda8ecf51c3
Signed-off-by: helenyao <yaohelan@huawei.com>
7 years agoUse 8081 for apex's restconfport robot variable
Jamo Luhrsen [Tue, 17 Jan 2017 17:07:55 +0000 (09:07 -0800)]
Use 8081 for apex's restconfport robot variable

Change-Id: Ie3579254b8f09eda3707fbc4b8d098a292f52a93
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
7 years agoMerge "Add VnfOnBoarding Abstraction"
Jose Lausuch [Wed, 18 Jan 2017 16:45:13 +0000 (16:45 +0000)]
Merge "Add VnfOnBoarding Abstraction"

7 years agoAdd VnfOnBoarding Abstraction
Morgan Richomme [Fri, 6 Jan 2017 15:16:20 +0000 (16:16 +0100)]
Add VnfOnBoarding Abstraction

JIRA: FUNCTEST-535

Change-Id: Idfa3dfd64554472aaac3f26a504e1f74d2f42926
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
7 years agoMerge "Rally keystone test scenarios for v3"
Morgan Richomme [Wed, 18 Jan 2017 09:29:05 +0000 (09:29 +0000)]
Merge "Rally keystone test scenarios for v3"

7 years agoBugfix: fix the execution way in copper
Linda Wang [Wed, 18 Jan 2017 02:16:36 +0000 (02:16 +0000)]
Bugfix: fix the execution way in copper

JIRA: FUNCTEST-691

Change-Id: I35371133619fb2cc6b42f3b0bd49c4473058d353
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoMerge "Refactoring of args and parser variable in ci/run_tests, prepare_env"
Morgan Richomme [Tue, 17 Jan 2017 13:23:11 +0000 (13:23 +0000)]
Merge "Refactoring of args and parser variable in ci/run_tests, prepare_env"

7 years agowrite test results to a local file
wu.zhihui [Wed, 21 Dec 2016 01:49:19 +0000 (09:49 +0800)]
write test results to a local file

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>
7 years agoRally keystone test scenarios for v3
helenyao [Fri, 6 Jan 2017 12:22:18 +0000 (07:22 -0500)]
Rally keystone test scenarios for v3

JIRA: FUNCTEST-652

1. Updated the Rally repository to master
the keystone test scenarios of TAG= 0.7.0 cannot run on Newton
also, 0.7.0 is the last tag that exists
2. Update the Tempest installation with updated rally command
Rally team said "there was no possibility to do it in backward
compatible way(rally verify re-design)"
3. The `rally show` was deprecated[1] in the master and corresponding
logic is updated
4. Update rally commands

[1]
https://github.com/openstack/rally/commit/f2fc3015beb4cfd8053db728765714500db6eeb2

Change-Id: Ief9e36a16dd92e4449c0f76579e7191a93aa3e21
Signed-off-by: helenyao <yaohelan@huawei.com>
7 years agoMerge "Fixes ODL rest port for Apex"
Jose Lausuch [Sun, 15 Jan 2017 23:50:16 +0000 (23:50 +0000)]
Merge "Fixes ODL rest port for Apex"

7 years agoSetting level to the Functest logger's parent logger to ensure log output from
spisarski [Tue, 13 Dec 2016 20:24:41 +0000 (13:24 -0700)]
Setting level to the Functest logger's parent logger to ensure log output from
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>
7 years agoFixes ODL rest port for Apex
Tim Rozet [Fri, 13 Jan 2017 16:51:18 +0000 (11:51 -0500)]
Fixes ODL rest port for Apex

Apex has enabled tripleo firewall in deployments which block access to
port 8181.  Only port 8081 is exposed on the admin network now.

Change-Id: I58e5eaf16cfc0738c248e1468b2d59cc9f542ddd
Signed-off-by: Tim Rozet <trozet@redhat.com>
7 years agoMerge "Added unit tests for utils/openstack_utils.py"
Jose Lausuch [Thu, 12 Jan 2017 16:07:22 +0000 (16:07 +0000)]
Merge "Added unit tests for utils/openstack_utils.py"

7 years agoMerge "[Netvirt-pipeline] Exclude unwanted testcases"
Jose Lausuch [Thu, 12 Jan 2017 15:55:41 +0000 (15:55 +0000)]
Merge "[Netvirt-pipeline] Exclude unwanted testcases"

7 years ago[Netvirt-pipeline] Exclude unwanted testcases
Nikolas Hermanns [Thu, 12 Jan 2017 13:34:55 +0000 (14:34 +0100)]
[Netvirt-pipeline] Exclude unwanted testcases

For Netvirt pipeline only specialist testcases shall be executed.

Change-Id: I9b658e28526e4d833442d3aac601e794566ca4be
Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
7 years agoBugfix: fix the wrong return code
helenyao [Thu, 12 Jan 2017 11:12:04 +0000 (06:12 -0500)]
Bugfix: fix the wrong return code

The bug was introduced by patch[1]
[1] https://gerrit.opnfv.org/gerrit/#/c/24619/

Change-Id: Icf6c267aba26fcb5b129a611423dcf2200f95277
Signed-off-by: helenyao <yaohelan@huawei.com>
7 years agoMerge "Bugfix: fix the wrong path in copper"
Morgan Richomme [Thu, 12 Jan 2017 08:59:32 +0000 (08:59 +0000)]
Merge "Bugfix: fix the wrong path in copper"

7 years agoMerge "Remove cmd to OpenStack, use python client"
Morgan Richomme [Thu, 12 Jan 2017 08:59:16 +0000 (08:59 +0000)]
Merge "Remove cmd to OpenStack, use python client"

7 years agoMerge "Tests added for utils."
Morgan Richomme [Thu, 12 Jan 2017 08:58:13 +0000 (08:58 +0000)]
Merge "Tests added for utils."

7 years agoMerge "[FUNCTEST] Correct right ip is used for public endpoint"
Jose Lausuch [Wed, 11 Jan 2017 13:06:56 +0000 (13:06 +0000)]
Merge "[FUNCTEST] Correct right ip is used for public endpoint"

7 years ago[FUNCTEST] Correct right ip is used for public endpoint
Nikolas Hermanns [Wed, 11 Jan 2017 12:18:57 +0000 (13:18 +0100)]
[FUNCTEST] Correct right ip is used for public endpoint

At the moment it was done in a fishy way to grep for
the public ip. This commit fixes it.

Change-Id: If14488c18c67cd66e885a7376e1c50a3a28e17f7
Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
7 years agoMerge "Set flavor's page size to support dpdk enabled vms"
Morgan Richomme [Wed, 11 Jan 2017 10:15:48 +0000 (10:15 +0000)]
Merge "Set flavor's page size to support dpdk enabled vms"

7 years agoBugfix: fix the wrong path in copper
Linda Wang [Wed, 11 Jan 2017 03:36:01 +0000 (03:36 +0000)]
Bugfix: fix the wrong path in copper

JIRA: FUNCTEST-691

Change-Id: Iad8d5aa14642b3b3bf673faf032c7f3ba9dc28d8
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoRemove cmd to OpenStack, use python client
Morgan Richomme [Tue, 10 Jan 2017 15:20:01 +0000 (16:20 +0100)]
Remove cmd to OpenStack, use python client

JIRA: FUNCTEST-503

Change-Id: Ie92051ec128ad4857862e6125628dac24ce99a2a
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
7 years agoMerge "Tackerclient added in test-requirement."
Morgan Richomme [Tue, 10 Jan 2017 07:45:47 +0000 (07:45 +0000)]
Merge "Tackerclient added in test-requirement."

7 years agoAdded unit tests for utils/openstack_utils.py
ashishk1994 [Thu, 5 Jan 2017 10:26:18 +0000 (15:56 +0530)]
Added unit tests for utils/openstack_utils.py

JIRA: FUNCTEST-683

Change-Id: I0e4b27d3fab093d5f3a086df739c1fb6bc6a0939
Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com>
7 years agoRefactoring of args and parser variable in ci/run_tests, prepare_env
ashishk1994 [Thu, 29 Dec 2016 14:41:28 +0000 (20:11 +0530)]
Refactoring of args and parser variable in ci/run_tests, prepare_env

Can't import run_tests in test_run_tests.py (new unit test file).
It is throwing error: nosetests: error: unrecognized arguments

It is because of declaration of parser and args which are global
in file, So to allow safe import of this file,
we need to declare it into __main__ branch.

Change-Id: Ie11ebcfd8a1b8e692bd8bf4260a54f752b67fd5e
Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com>
7 years agoTests added for utils.
ashishk1994 [Mon, 2 Jan 2017 15:32:53 +0000 (21:02 +0530)]
Tests added for utils.

Tests added for:
utils/openstack_clean
utils/openstack_snapshot
utils/openstack_tacker

JIRA: FUNCTEST-683

Change-Id: I2d510e70fae73daf35c24b2935ab99bbb241f1f5
Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com>
7 years agoMerge changes from topics 'cover_parse_results', 'fix_test_show_credentials', 'remove...
Cedric Ollivier [Mon, 9 Jan 2017 08:12:35 +0000 (08:12 +0000)]
Merge changes from topics 'cover_parse_results', 'fix_test_show_credentials', 'remove_clean_results_dir', 'cover_argparse', 're.sub', 'mock_open', 'patch_filehandler'

* changes:
  Cover ODLTests.parse_results()
  Switch to assert_any_call in test_show_credentials
  Remove clean_results_dir
  Create ODLParser to parse sys.argv
  Fully cover set_robotframework_vars
  Use mock_open() to prevent stdout.txt
  Patch logging.FileHandler

7 years agoMerge "Adapt Domino to FeatureBase"
Morgan Richomme [Thu, 5 Jan 2017 11:01:30 +0000 (11:01 +0000)]
Merge "Adapt Domino to FeatureBase"

7 years agoCover ODLTests.parse_results()
Cédric Ollivier [Thu, 5 Jan 2017 10:46:46 +0000 (11:46 +0100)]
Cover ODLTests.parse_results()

The ODL testcase is now fully covered by unit tests.

Change-Id: I856a40138739b148babcfa96e82da05bb83e63e1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoSwitch to assert_any_call in test_show_credentials
Cédric Ollivier [Thu, 5 Jan 2017 08:00:04 +0000 (09:00 +0100)]
Switch to assert_any_call in test_show_credentials

The previous test can be false if users set OS_ env vars.

Change-Id: If517582d77aa1373bf253d7e23731e2e896d26ac
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoRemove clean_results_dir
Cédric Ollivier [Wed, 4 Jan 2017 15:58:10 +0000 (16:58 +0100)]
Remove clean_results_dir

clean_results_dir is now useless [1]

[1] https://gerrit.opnfv.org/gerrit/#/c/26661/

Change-Id: I7ec02798696d4cbc4930bf2d8aa9cb35ce99b7aa
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoCreate ODLParser to parse sys.argv
Cédric Ollivier [Wed, 4 Jan 2017 15:32:08 +0000 (16:32 +0100)]
Create ODLParser to parse sys.argv

It helps covering lines about args parsing without calling main.
It also excludes 'if __name__ == .__main__.:' from coverage.
The related unit tests are added too.

Change-Id: I8e001a9d35081000977e0e546ae505f7cf2870e6
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoFully cover set_robotframework_vars
Cédric Ollivier [Tue, 3 Jan 2017 16:36:43 +0000 (17:36 +0100)]
Fully cover set_robotframework_vars

re.sub() is now tested.

Change-Id: I83cf69b66cd1407f5e4439d8c545338c5fb0bde7
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoUse mock_open() to prevent stdout.txt
Cédric Ollivier [Tue, 3 Jan 2017 09:38:53 +0000 (10:38 +0100)]
Use mock_open() to prevent stdout.txt

/home/opnfv is no longer required.

Change-Id: Iefb8faf3a7d548f3ae7d4076005d7b0bb93e63e1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoPatch logging.FileHandler
Cédric Ollivier [Tue, 3 Jan 2017 07:30:51 +0000 (08:30 +0100)]
Patch logging.FileHandler

It avoids creating a dummy functest.log for unit testing.

Change-Id: Ib163d5d58284822b1904444fb60b08e92ee0ab9b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Added unit tests for utils/functest_utils.py."
Morgan Richomme [Wed, 4 Jan 2017 13:11:05 +0000 (13:11 +0000)]
Merge "Added unit tests for utils/functest_utils.py."

7 years agoAdded Unit Tests for cli.
ashishk1994 [Sat, 17 Dec 2016 18:15:31 +0000 (23:45 +0530)]
Added Unit Tests for cli.

JIRA: FUNCTEST-590

Change-Id: I5e28145cae742598927e8edbe65091fedb533a4d
Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com>
7 years agoMerge "use working zmail rather than private gmail"
Morgan Richomme [Tue, 3 Jan 2017 14:56:51 +0000 (14:56 +0000)]
Merge "use working zmail rather than private gmail"

7 years agoTackerclient added in test-requirement.
ashishk1994 [Mon, 2 Jan 2017 15:56:25 +0000 (21:26 +0530)]
Tackerclient added in test-requirement.

Unit tests for utils/openstack_tacker requires
Tackerclient.

Change-Id: Iff49fcc4da445a6c490dc1306506d23016de2020
Signed-off-by: ashishk1994 <ashishk.iiit@gmail.com>
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 agouse working zmail rather than private gmail
SerenaFeng [Thu, 29 Dec 2016 05:48:29 +0000 (13:48 +0800)]
use working zmail rather than private gmail

Change-Id: If0eacde5ead9db27668e52ea8cb5b87f3d9be02a
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
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 agoSet flavor's page size to support dpdk enabled vms
Michael Polenchuk [Tue, 27 Dec 2016 16:51:04 +0000 (20:51 +0400)]
Set flavor's page size to support dpdk enabled vms

Set flavor's page size to ANY so libvirt driver might
try to find large pages for guest RAM (either 2Mb or 1Gb),
otherwise fallback to small pages.

JIRA: FUNCTEST-684
Change-Id: I40f415ca9487c4f20416d45462eddc769df0cb9c
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
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>