functest-xtesting.git
7 years agoRemove module references __file__
Cédric Ollivier [Sun, 18 Jun 2017 07:10:19 +0000 (09:10 +0200)]
Remove module references __file__

It allows functest to be run directly from a zip file [1].

[1] https://setuptools.readthedocs.io/en/latest/setuptools.html#setting-the-zip-safe-flag

Change-Id: I596a71e8cf2bed6dd79655bd5beeb047876a188c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Update Suite details pushed to DB"
Morgan Richomme [Thu, 15 Jun 2017 01:49:03 +0000 (01:49 +0000)]
Merge "Update Suite details pushed to DB"

7 years agoMerge "Update (test-)requirements.txt"
Jose Lausuch [Wed, 14 Jun 2017 10:22:51 +0000 (10:22 +0000)]
Merge "Update (test-)requirements.txt"

7 years agoUpdate Suite details pushed to DB
Cédric Ollivier [Tue, 13 Jun 2017 22:14:59 +0000 (00:14 +0200)]
Update Suite details pushed to DB

It now reports stats and dumps stream into details.
By the way, it fixes a bug when serializing the former details.

Change-Id: Idd388708071ca3185e5a07bc7e977f2d9837dc95
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Refactor core VNF class"
valentin boucher [Tue, 13 Jun 2017 08:20:56 +0000 (08:20 +0000)]
Merge "Refactor core VNF class"

7 years agoUpdate (test-)requirements.txt
Cédric Ollivier [Mon, 12 Jun 2017 06:30:23 +0000 (08:30 +0200)]
Update (test-)requirements.txt

It updates requirements.txt and test-requirements.txt according to
OpenStack stable/ocata. It removes useless copyrights.

Change-Id: I603b3030df231f210af47232f20aef85a08e20ba
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Leverage on pbr (Python Build Reasonableness)"
Jose Lausuch [Thu, 8 Jun 2017 13:18:25 +0000 (13:18 +0000)]
Merge "Leverage on pbr (Python Build Reasonableness)"

7 years agoMerge "Configure the param auth_version in tempest.conf"
Cedric Ollivier [Wed, 7 Jun 2017 13:21:03 +0000 (13:21 +0000)]
Merge "Configure the param auth_version in tempest.conf"

7 years agoBugfix: fix the return value
Linda Wang [Wed, 7 Jun 2017 01:55:41 +0000 (01:55 +0000)]
Bugfix: fix the return value

openstack_snapshot and openstack_clean should return 0 when they are run
successfully.

JIRA: FUNCTEST-835

Change-Id: I3fcc24ab985de382e0e59b129cb467d66a9a0de2
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoLeverage on pbr (Python Build Reasonableness)
Cédric Ollivier [Sun, 4 Jun 2017 18:05:50 +0000 (20:05 +0200)]
Leverage on pbr (Python Build Reasonableness)

pbr can inject requirements into the install_requires, tests_require
and/or dependency_links arguments to setup. They were previously
falsy unset.

It also supports conditional dependencies which can be added to the
requirements (e.g. subprocess32; python_version=='2.7').
Then requirements.py3.txt is removed.

It also removes functest/cli/setup.py which seems false and obsolete.

Dockerfile is updated as well. One temporarily link is created because
of several hardcoded paths in Functest.

Change-Id: I14b3b25e07fbac490dd1d5ce943ec02c5b11f242
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoConfigure the param auth_version in tempest.conf
Linda Wang [Wed, 7 Jun 2017 02:19:32 +0000 (02:19 +0000)]
Configure the param auth_version in tempest.conf

1. If the auth_url is "https://192.168.31.222:443/identity-admin/v3", the
   auth_version in tempest.conf is supposed to be "v3", not "id".
2. For rally 0.8.1. it is a bug when obtaining the auth_version, please see
   [1], which has been fixed in rally master.

[1]: https://review.openstack.org/#/c/468599/

Change-Id: Ia7474938a741a0954f17f7c7650544dbc0a28853
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoMerge "Remove call to fetch_os_creds.sh"
Jose Lausuch [Tue, 6 Jun 2017 13:36:06 +0000 (13:36 +0000)]
Merge "Remove call to fetch_os_creds.sh"

7 years agoMerge "Make tempest user_password more complicated"
Jose Lausuch [Tue, 6 Jun 2017 13:20:57 +0000 (13:20 +0000)]
Merge "Make tempest user_password more complicated"

7 years agoMerge "Remove a former action listed in framework.md"
Jose Lausuch [Tue, 6 Jun 2017 13:16:50 +0000 (13:16 +0000)]
Merge "Remove a former action listed in framework.md"

7 years agoMerge "Add the copyright header to decorators.py"
Jose Lausuch [Tue, 6 Jun 2017 13:16:21 +0000 (13:16 +0000)]
Merge "Add the copyright header to decorators.py"

7 years agoMerge "Use PrettyTable to show functest env"
Jose Lausuch [Tue, 6 Jun 2017 13:16:07 +0000 (13:16 +0000)]
Merge "Use PrettyTable to show functest env"

7 years agoMerge "Update setuptools version to 30.0.0"
Jose Lausuch [Tue, 6 Jun 2017 13:14:51 +0000 (13:14 +0000)]
Merge "Update setuptools version to 30.0.0"

7 years agoRemove call to fetch_os_creds.sh
jose.lausuch [Wed, 31 May 2017 15:17:44 +0000 (17:17 +0200)]
Remove call to fetch_os_creds.sh

After [1], the openstack credentials
are provided to Functest as a volume
directly from CI. The same has to be
done manually.
Functest doesn't need the script
fetch_os_creds.sh any longer.

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

Change-Id: I0883ad7b248526cfe9df3fde984345bd41869e82
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoUpdate setuptools version to 30.0.0
Jose Lausuch [Tue, 6 Jun 2017 10:17:58 +0000 (10:17 +0000)]
Update setuptools version to 30.0.0

Change-Id: I318446a873a7362a1b7e53b00e9e4daf658c3abb
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
7 years agoRefactor core VNF class
Morgan Richomme [Wed, 24 May 2017 15:00:49 +0000 (17:00 +0200)]
Refactor core VNF class

- Simplify processing
- Implement run method to inherit testcase methods
- Add unit tests
- Fix all pylint issues

It also obliges vnf and its uts to be rated 10/10 by pylint.

JIRA: FUNCTEST-830

Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com>
Change-Id: I8dd24eea55089277c9e5b2b51fb14dc377f2fcaf
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Update setuptools version to 35.0.2"
Jose Lausuch [Tue, 6 Jun 2017 08:55:55 +0000 (08:55 +0000)]
Merge "Update setuptools version to 35.0.2"

7 years agoMerge "Enable tempest offline by use_custom_images=True"
valentin boucher [Tue, 6 Jun 2017 07:28:28 +0000 (07:28 +0000)]
Merge "Enable tempest offline by use_custom_images=True"

7 years agoRemove a former action listed in framework.md
Cédric Ollivier [Mon, 5 Jun 2017 16:23:10 +0000 (18:23 +0200)]
Remove a former action listed in framework.md

This documentation was already updated to take criteria into account.

Change-Id: I5d795e6dcbda6dec15b03debb3f3b8bce073d474
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoAdd the copyright header to decorators.py
Cédric Ollivier [Mon, 5 Jun 2017 15:25:56 +0000 (17:25 +0200)]
Add the copyright header to decorators.py

Change-Id: Ie7c60b8ca174c9c95920d0b7ef73b8eff60ae7e1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoUse PrettyTable to show functest env
Cédric Ollivier [Sun, 4 Jun 2017 07:20:14 +0000 (09:20 +0200)]
Use PrettyTable to show functest env

Change-Id: I64800ae7738e0f4215c4c2948967cf60c005032e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoUse constants in odl
Linda Wang [Sat, 20 May 2017 04:06:06 +0000 (04:06 +0000)]
Use constants in odl

Change-Id: I134b0efd3dd0faec389087a4dac59de09eae087e
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoMake tempest user_password more complicated
Linda Wang [Fri, 2 Jun 2017 02:36:15 +0000 (02:36 +0000)]
Make tempest user_password more complicated

For some SUTs, the password for creating user is required to contain
at least 8 characters and three types of characters for security.

Change-Id: Iea770397fc6781d24fbfd0798e2da6bd65293866
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoUpdate setuptools version to 35.0.2
Linda Wang [Fri, 2 Jun 2017 07:09:21 +0000 (07:09 +0000)]
Update setuptools version to 35.0.2

Docker build failed in CI due to the low version of setuptools(3.3)

Change-Id: I5e9b15f59e2cc5e78f5ab1b30fd1525b667f09fb
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoMerge "Use CONST to retrieve db_url rather than getter function"
Jose Lausuch [Fri, 2 Jun 2017 08:19:12 +0000 (08:19 +0000)]
Merge "Use CONST to retrieve db_url rather than getter function"

7 years agoMerge "Added unit tests for the connection_check test case."
Morgan Richomme [Thu, 1 Jun 2017 12:27:37 +0000 (12:27 +0000)]
Merge "Added unit tests for the connection_check test case."

7 years agoUse CONST to retrieve db_url rather than getter function
Linda Wang [Fri, 31 Mar 2017 02:46:48 +0000 (02:46 +0000)]
Use CONST to retrieve db_url rather than getter function

1. Remove get_db_url()
2. If TEST_DB_URL declared in env, update test_db_url in
   config_functest.yaml file during env preparation
3. No matter TEST_DB_URL declared in env or not,
   Result_DB = CONST.__getattribute__("results_test_db_url")

JIRA: FUNCTEST-763

Change-Id: I20da7ef98bbcc56731e0ff7061b05c1dde6cbfc3
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoAdded unit tests for the connection_check test case.
spisarski [Fri, 26 May 2017 15:05:35 +0000 (09:05 -0600)]
Added unit tests for the connection_check test case.

JIRA: FUNCTEST-813

Change-Id: Ib851a3942e181b1a91cad695504613868a340d15
Signed-off-by: spisarski <s.pisarski@cablelabs.com>
7 years agoReturn pylint status code for modules rated 10/10
Cédric Ollivier [Wed, 31 May 2017 12:21:12 +0000 (14:21 +0200)]
Return pylint status code for modules rated 10/10

It ensures that no pylint errors or warnings can be introduced by a
new change. The first pylint call (to report issues) will be safely
removed when all pylint errors and warnings are fixed in functest.

Change-Id: I9ff7b7d5a7738c3d6d769267a78c28828c3e4523
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoEnable tempest offline by use_custom_images=True
Linda Wang [Tue, 30 May 2017 10:21:06 +0000 (10:21 +0000)]
Enable tempest offline by use_custom_images=True

1. The image cirros or testvm is required for tempest.conf to run
   tempest testcases.
2. If no images are created in openstack, which just match the
   img_name_regex (default="^.*(cirros|testvm).*$"), it is needed to
   download cirros image online.

Change-Id: Ib5a38a0135b3dd80ad685e33ed35b7b6135b9c87
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoFix a typo in framework.md
Cédric Ollivier [Tue, 30 May 2017 17:59:57 +0000 (19:59 +0200)]
Fix a typo in framework.md

It completes [1].

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

Change-Id: I7b12cf48d9f47665f5d6a005d3cb8d448946409d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoFix a typo in docstring
Cédric Ollivier [Tue, 30 May 2017 17:32:26 +0000 (19:32 +0200)]
Fix a typo in docstring

Change-Id: Ie03004474658bd3317a9be8a6b00f5bda1133f2c
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Define create_snapshot() and clean() in TestCase"
Cedric Ollivier [Tue, 30 May 2017 15:02:06 +0000 (15:02 +0000)]
Merge "Define create_snapshot() and clean() in TestCase"

7 years agoMerge "vping&snaps_xxx support not_hugepage_supported pod"
Serena Feng [Tue, 30 May 2017 12:18:07 +0000 (12:18 +0000)]
Merge "vping&snaps_xxx support not_hugepage_supported pod"

7 years agoDefine create_snapshot() and clean() in TestCase
Cédric Ollivier [Tue, 23 May 2017 18:58:42 +0000 (20:58 +0200)]
Define create_snapshot() and clean() in TestCase

They replace the former calls in run_tests which are not suitable for all
test cases. Now any test case can define how to clean its resources.

If the snapshot cannot be created, the test case is considered as
failed. Only a message is printed if any failure during cleaning.

It also defines a new class called OSGCTestCase useful for test cases
which don't clean their OpenStack resources.
All test cases located in opnfv_tests/openstack inherit from it to
keep the global behavior unchanged.

It also deletes exit instructions in openstack_clean and
openstack_snapshot, removes clean flags in testcases.yaml and updates
the related utils.

All Docs are modified as well.

JIRA: FUNCTEST-438

Change-Id: I8938e6255708012380389763a24059ace4ce45d8
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Chmod 755 functest/ci/download_images.sh"
Cedric Ollivier [Tue, 30 May 2017 07:11:55 +0000 (07:11 +0000)]
Merge "Chmod 755 functest/ci/download_images.sh"

7 years agoMerge "Fix one email address in INFO"
Cedric Ollivier [Tue, 30 May 2017 07:11:41 +0000 (07:11 +0000)]
Merge "Fix one email address in INFO"

7 years agoMerge "Switch shebangs to /usr/bin/env python"
Cedric Ollivier [Tue, 30 May 2017 07:11:32 +0000 (07:11 +0000)]
Merge "Switch shebangs to /usr/bin/env python"

7 years agoMerge "Export the Pylint results via pylint.out"
Cedric Ollivier [Tue, 30 May 2017 07:11:22 +0000 (07:11 +0000)]
Merge "Export the Pylint results via pylint.out"

7 years agoMerge "Rename framework.html to index.html"
valentin boucher [Tue, 30 May 2017 07:06:29 +0000 (07:06 +0000)]
Merge "Rename framework.html to index.html"

7 years agoChmod 755 functest/ci/download_images.sh
Cédric Ollivier [Mon, 29 May 2017 15:33:12 +0000 (17:33 +0200)]
Chmod 755 functest/ci/download_images.sh

It's designed to be called via Jenkins and was fixed by the next rule:

$ find ${FUNCTEST_REPO_DIR} -name "*.sh" \
  |xargs grep \#\! |cut -d\: -f 1 |xargs chmod -c 755

Change-Id: I186aa9c3227dbac4e80f9a463632efdb2512020e
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoFix one email address in INFO
Cédric Ollivier [Mon, 29 May 2017 14:39:00 +0000 (16:39 +0200)]
Fix one email address in INFO

Change-Id: I0ae2f2aaca547f47fa30dd2bf67f5e348c202ce7
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Move api out of the docs directory"
Cedric Ollivier [Mon, 29 May 2017 14:08:33 +0000 (14:08 +0000)]
Merge "Move api out of the docs directory"

7 years agoRename framework.html to index.html
Cédric Ollivier [Mon, 29 May 2017 12:18:25 +0000 (14:18 +0200)]
Rename framework.html to index.html

It simplifies the url of the presentation.

Change-Id: I23c449d98d5efcbeb27802a62f607f55ec658ebf
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMove api out of the docs directory
Cédric Ollivier [Mon, 29 May 2017 12:08:14 +0000 (14:08 +0200)]
Move api out of the docs directory

The docs directory can only contain static documentation.
All generated html files should be pushed as artifacts at the end of
functest-verify-master.

Change-Id: I17aeab5687b9eb0c7aaf21cbc6b41e8f321c2e63
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoRename logger to __logger in unit.py
Cédric Ollivier [Tue, 23 May 2017 17:20:20 +0000 (19:20 +0200)]
Rename logger to __logger in unit.py

This mangling ensures that all info messages printed from core packages.

Change-Id: I77ac1c80360d45ef19ed7c3fa05a894804c92216
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoProtect against self.suite = None
Cédric Ollivier [Tue, 23 May 2017 17:07:52 +0000 (19:07 +0200)]
Protect against self.suite = None

Change-Id: Ie3370ebfdd51b9aff707e50b754ca52796e49fbf
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Re-Enable Promise testcases"
Morgan Richomme [Mon, 29 May 2017 09:22:30 +0000 (09:22 +0000)]
Merge "Re-Enable Promise testcases"

7 years agoMerge "Fix some pylint errors in onos package"
Morgan Richomme [Mon, 29 May 2017 08:58:45 +0000 (08:58 +0000)]
Merge "Fix some pylint errors in onos package"

7 years agoSwitch shebangs to /usr/bin/env python
Cédric Ollivier [Sun, 28 May 2017 10:51:22 +0000 (12:51 +0200)]
Switch shebangs to /usr/bin/env python

It modified the shebang to /usr/bin/env which is considered as more
flexible.

Change-Id: I9c8cdb4243d41a83d524499cc91060d3700e008b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoExport the Pylint results via pylint.out
Cédric Ollivier [Sun, 28 May 2017 08:43:02 +0000 (10:43 +0200)]
Export the Pylint results via pylint.out

It allows integrating Pylint with Jenkins (pylint.out can be defined
as the "XML filename pattern" after installing the Violations plugin
[1]).

It's considered as fine to locally disable warnings such as docstrings
in unit tests. No pylint rcfile is defined for only two options.

Tox still prints the partial results in console to be interpreted by
users. The persistent flag is removed to conform with nosetests args.

[1] https://wiki.jenkins-ci.org/display/JENKINS/Violations

Change-Id: I21662b27c8e4b61e65c4c3f5aab968e3e7dd6d90
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agovping&snaps_xxx support not_hugepage_supported pod
SerenaFeng [Tue, 23 May 2017 07:55:58 +0000 (15:55 +0800)]
vping&snaps_xxx support not_hugepage_supported pod

if flavor_metadata is set to {'hw:mem_page_size': 'any'}, it means
hugepage must be support by pod. but actually hugepage is not supported
by all pods

Change-Id: Ib0b716ecedacf7eeba2c0d0080be2707b1a87e73
Signed-off-by: SerenaFeng <feng.xiaowei@zte.com.cn>
7 years agoMerge "Stop printing in console when testing functest_utils.py"
Jose Lausuch [Wed, 24 May 2017 17:35:19 +0000 (17:35 +0000)]
Merge "Stop printing in console when testing functest_utils.py"

7 years agoMerge "Add docstrings in unit"
valentin boucher [Wed, 24 May 2017 09:21:58 +0000 (09:21 +0000)]
Merge "Add docstrings in unit"

7 years agoMerge "Rename the class TestSuiteRunner to Suite"
valentin boucher [Wed, 24 May 2017 09:21:12 +0000 (09:21 +0000)]
Merge "Rename the class TestSuiteRunner to Suite"

7 years agoMerge "Rename test_pytest_suite_runner.py to test_unit.py"
valentin boucher [Wed, 24 May 2017 09:20:29 +0000 (09:20 +0000)]
Merge "Rename test_pytest_suite_runner.py to test_unit.py"

7 years agoMerge "Rename pytest_suite_runner.py to unit.py"
valentin boucher [Wed, 24 May 2017 09:20:18 +0000 (09:20 +0000)]
Merge "Rename pytest_suite_runner.py to unit.py"

7 years agoFix some pylint errors in onos package
Linda Wang [Sat, 20 May 2017 01:56:57 +0000 (01:56 +0000)]
Fix some pylint errors in onos package

Directories affected:
 - functest/opnfv_tests/sdn/onos/

JIRA: FUNCTEST-796

Change-Id: Iffbb0e9a021d31a32d940128435a9f6ed43a504f
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoStop printing in console when testing functest_utils.py
Cédric Ollivier [Tue, 23 May 2017 18:58:42 +0000 (20:58 +0200)]
Stop printing in console when testing functest_utils.py

Change-Id: I6fa0f6f449270199cc4d5b2c88e171091bf92773
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoAdd docstrings in unit
Cédric Ollivier [Tue, 23 May 2017 16:45:27 +0000 (18:45 +0200)]
Add docstrings in unit

It also adds shebang and conforms the copyright header with the related
OPNFV template.

Change-Id: Iacb0cc8629e3021181eef2e8cb76daf48601abf4
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoRename the class TestSuiteRunner to Suite
Cédric Ollivier [Tue, 23 May 2017 16:06:47 +0000 (18:06 +0200)]
Rename the class TestSuiteRunner to Suite

It conforms with [1].

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

Change-Id: I11bbdcd63a1691835fb7c6198549edbaf6b758a1
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoRename test_pytest_suite_runner.py to test_unit.py
Cédric Ollivier [Tue, 23 May 2017 14:54:14 +0000 (16:54 +0200)]
Rename test_pytest_suite_runner.py to test_unit.py

It conforms with [1].

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

Change-Id: Ife7a161970997cf6cd74e86c343d4879f87b5cf4
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoMerge "Bugfix: fix two typos"
valentin boucher [Tue, 23 May 2017 14:51:17 +0000 (14:51 +0000)]
Merge "Bugfix: fix two typos"

7 years agoRename pytest_suite_runner.py to unit.py
Cédric Ollivier [Tue, 23 May 2017 14:37:04 +0000 (16:37 +0200)]
Rename pytest_suite_runner.py to unit.py

It also adds the rst files to include this module in apidoc.

Change-Id: Iabbb17bc8601265bd9436c75d1afc0b470df1eb4
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoCall fetch_os_creds.sh from $PATH
Linda Wang [Tue, 23 May 2017 02:39:25 +0000 (02:39 +0000)]
Call fetch_os_creds.sh from $PATH

Now it's defined as script in releng/modules' setup.py [1]

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

Co-Authored-By: Cédric Ollivier <cedric.ollivier@orange.com>
Depends-On: Ic77f4e46d6d3396f9891b73105a0eb7aa037754f
JIRA: FUNCTEST-829

Change-Id: Ief821b7326e0a6c2bbcab31bb21629455e4bc9ea
Signed-off-by: Linda Wang <wangwulin@huawei.com>
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoBugfix: fix two typos
Linda Wang [Tue, 23 May 2017 02:42:18 +0000 (02:42 +0000)]
Bugfix: fix two typos

1. In run_tests.py, test case name is shown before running:
   logger.error(kwargs['test']) -> logger.info(kwargs['test'])
2. In tempest.py, Verication -> Verification

Change-Id: I117838cdb4b0f920c4cf855645d910e623e06868
Signed-off-by: Linda Wang <wangwulin@huawei.com>
7 years agoMerge "Bugfix: fix the errors of onos_sfc"
Morgan Richomme [Mon, 22 May 2017 20:03:44 +0000 (20:03 +0000)]
Merge "Bugfix: fix the errors of onos_sfc"

7 years agoMerge "Update test_vnf.py to support py3"
valentin boucher [Mon, 22 May 2017 16:28:47 +0000 (16:28 +0000)]
Merge "Update test_vnf.py to support py3"

7 years agoMerge "Remove former run_unit_tests.sh"
valentin boucher [Mon, 22 May 2017 16:28:18 +0000 (16:28 +0000)]
Merge "Remove former run_unit_tests.sh"

7 years agoMerge "Test decorators.py in testenv:py35"
Cedric Ollivier [Mon, 22 May 2017 15:56:52 +0000 (15:56 +0000)]
Merge "Test decorators.py in testenv:py35"

7 years agoMerge "Turn Sphinx warnings into errors"
Cedric Ollivier [Mon, 22 May 2017 15:56:33 +0000 (15:56 +0000)]
Merge "Turn Sphinx warnings into errors"

7 years agoMerge "Check python3 support when running tox"
valentin boucher [Mon, 22 May 2017 13:12:55 +0000 (13:12 +0000)]
Merge "Check python3 support when running tox"

7 years agoMerge "Generate api doc when running tox"
valentin boucher [Mon, 22 May 2017 13:12:46 +0000 (13:12 +0000)]
Merge "Generate api doc when running tox"

7 years agoMerge "Update apidoc to conform with vnf module"
valentin boucher [Mon, 22 May 2017 13:12:19 +0000 (13:12 +0000)]
Merge "Update apidoc to conform with vnf module"

7 years agoMerge "Analyse code when running tox"
valentin boucher [Mon, 22 May 2017 13:11:45 +0000 (13:11 +0000)]
Merge "Analyse code when running tox"

7 years agoMerge "Check style when running tox"
valentin boucher [Mon, 22 May 2017 13:11:37 +0000 (13:11 +0000)]
Merge "Check style when running tox"

7 years agoMerge "Delete line breaks before binary operator"
valentin boucher [Mon, 22 May 2017 13:11:04 +0000 (13:11 +0000)]
Merge "Delete line breaks before binary operator"

7 years agoMerge "Sort keys when dumping json"
valentin boucher [Mon, 22 May 2017 13:09:56 +0000 (13:09 +0000)]
Merge "Sort keys when dumping json"

7 years agoMerge "Ignore .tox"
valentin boucher [Mon, 22 May 2017 13:09:50 +0000 (13:09 +0000)]
Merge "Ignore .tox"

7 years agoMerge "Tox utility to run unit tests"
valentin boucher [Mon, 22 May 2017 13:09:23 +0000 (13:09 +0000)]
Merge "Tox utility to run unit tests"

7 years agoMerge "Update requests as defined in releng"
valentin boucher [Mon, 22 May 2017 13:09:12 +0000 (13:09 +0000)]
Merge "Update requests as defined in releng"

7 years agoMerge "Add baro_tests as requirements"
valentin boucher [Mon, 22 May 2017 13:09:00 +0000 (13:09 +0000)]
Merge "Add baro_tests as requirements"

7 years agoMerge "Install releng via requirements.txt"
valentin boucher [Mon, 22 May 2017 13:08:51 +0000 (13:08 +0000)]
Merge "Install releng via requirements.txt"

7 years agoMerge "Set default value for CONFIG_FUNCTEST_YAML"
valentin boucher [Mon, 22 May 2017 13:08:45 +0000 (13:08 +0000)]
Merge "Set default value for CONFIG_FUNCTEST_YAML"

7 years agoMerge "Fully cover pytest_suite_runner.py"
valentin boucher [Mon, 22 May 2017 13:07:52 +0000 (13:07 +0000)]
Merge "Fully cover pytest_suite_runner.py"

7 years agoMerge "Precise self.result in pytest_suite_runner.py"
valentin boucher [Mon, 22 May 2017 13:07:45 +0000 (13:07 +0000)]
Merge "Precise self.result in pytest_suite_runner.py"

7 years agoMerge "Print stack when catching exceptions in run_tests.py"
valentin boucher [Mon, 22 May 2017 12:43:36 +0000 (12:43 +0000)]
Merge "Print stack when catching exceptions in run_tests.py"

7 years agoMerge "Replace CONST.* by getattribute/setattr for refstack"
Morgan Richomme [Mon, 22 May 2017 07:08:13 +0000 (07:08 +0000)]
Merge "Replace CONST.* by getattribute/setattr for refstack"

7 years agoUpdate test_vnf.py to support py3
Cédric Ollivier [Mon, 22 May 2017 02:04:06 +0000 (04:04 +0200)]
Update test_vnf.py to support py3

Change-Id: I86dc83b1fc9205f7b8209d63e18439a7e05c646b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoTest decorators.py in testenv:py35
Cédric Ollivier [Mon, 22 May 2017 01:47:21 +0000 (03:47 +0200)]
Test decorators.py in testenv:py35

Change-Id: I91d5b04f105cf41bef799eccdaabf89cb0440747
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoTurn Sphinx warnings into errors
Cédric Ollivier [Mon, 22 May 2017 01:37:13 +0000 (03:37 +0200)]
Turn Sphinx warnings into errors

Change-Id: Iefc223a9fa6dbc4e9476aca84b3df4304058862b
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoRemove former run_unit_tests.sh
Cédric Ollivier [Sun, 21 May 2017 13:23:38 +0000 (15:23 +0200)]
Remove former run_unit_tests.sh

Depends-On: I934f4ac739d99d0cb29bea8c6aac6d6780b30901

Change-Id: I67c8a25a2e712babf99e32fb4c049b0acfd2e44d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoCheck python3 support when running tox
Cédric Ollivier [Sun, 21 May 2017 13:16:31 +0000 (15:16 +0200)]
Check python3 support when running tox

It only tests testcase, feature and odl which supports python3.
It creates a temporary requirements.py3.txt which will be safely removed
when we stop using subprocess32 [1] and robotframework-sshlibrary.

[1] https://jira.opnfv.org/browse/FUNCTEST-827

Change-Id: I92021dcb4aca03f64e2441e3bcff34675a3ae879
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoGenerate api doc when running tox
Cédric Ollivier [Sun, 21 May 2017 10:27:24 +0000 (12:27 +0200)]
Generate api doc when running tox

Change-Id: I78b18981d9f916e6174d44c6280706e404c7c9f2
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoUpdate apidoc to conform with vnf module
Cédric Ollivier [Sun, 21 May 2017 10:01:43 +0000 (12:01 +0200)]
Update apidoc to conform with vnf module

It completes [1].

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

Change-Id: Ia4a850b740764774b926d5cdb92c8813bc93f9e4
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
7 years agoAnalyse code when running tox
Cédric Ollivier [Sun, 21 May 2017 09:50:56 +0000 (11:50 +0200)]
Analyse code when running tox

It filters all messages to ease reading the report.

Change-Id: Iab55bc71cb6026edde29fb9f084a07b2dedf564f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>