Jamo Luhrsen [Tue, 17 Jan 2017 17:12:55 +0000 (09:12 -0800)]
Add ODL netvirt connectivity suites to list of robot tests
Change-Id: I9eb543b18d7646c7746caeec43d610be52a1af65
Signed-off-by: Jamo Luhrsen <jluhrsen@redhat.com>
Nikolas Hermanns [Tue, 24 Jan 2017 13:43:51 +0000 (14:43 +0100)]
Add netvirt to odl tests
For the odl test the default odl port is 8080. In netvirt this is the
same as apex.
Change-Id: I949510e4f7fb57bcf8ec01f69f7941c5d55c98e7
Signed-off-by: Nikolas Hermanns <nikolas.hermanns@ericsson.com>
Morgan Richomme [Fri, 3 Feb 2017 07:49:46 +0000 (07:49 +0000)]
Merge "Add flavor creation in functest env prepare"
Jose Lausuch [Thu, 2 Feb 2017 22:58:43 +0000 (22:58 +0000)]
Merge changes from topic 'convert_unix_format'
* changes:
Change permissions of python files
Convert files to Unix format
Jose Lausuch [Thu, 2 Feb 2017 22:58:29 +0000 (22:58 +0000)]
Merge "Allow multiple sets of suites in ODL"
Jose Lausuch [Thu, 2 Feb 2017 22:58:20 +0000 (22:58 +0000)]
Merge "Define how to pass args to TestcaseBase.run"
Cédric Ollivier [Thu, 2 Feb 2017 17:25:43 +0000 (18:25 +0100)]
Allow multiple sets of suites in ODL
ODLTests can manage multiple sets of suites passing as run args.
It avoids duplicating odl.py according to ODL features installed (e.g.
netvirt).
Change-Id: Ibb0697ef9441506c3f33627e13a0845cc482e23f
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
jose.lausuch [Thu, 2 Feb 2017 16:33:44 +0000 (17:33 +0100)]
Add flavor creation in functest env prepare
So far, healthcheck.sh was creating m1.tiny flavor.
We are planning to remove that script and replace it by
SNAPS api and connection check.
Althought, a better approach to this would be that all
the tests create the flavor if needed, but these are the
tests that rely on this flavor:
- vping ssh
- vping userdata
- rally
- tempest
- onos_sfc
Change-Id: I537f68a55d733b24b6b15f5cf3710bca40fbc622
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Jose Lausuch [Thu, 2 Feb 2017 15:56:48 +0000 (15:56 +0000)]
Merge "Bugfix: multisite test case fails"
Juha Kosonen [Thu, 2 Feb 2017 15:27:34 +0000 (17:27 +0200)]
Bugfix: multisite test case fails
Ensure the target directory for tempest config file exists.
JIRA: FUNCTEST-715
Change-Id: I7bfaab1faa3e664d84813cdbf9a830b0b56a1f60
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
Morgan Richomme [Thu, 2 Feb 2017 14:01:10 +0000 (15:01 +0100)]
Exclude Copper until copper/installer integration completed
JIRA: FUNCTEST-34
Change-Id: I70d551904a429b25947f914aa67f6f13f9e5b6ef
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Morgan Richomme [Thu, 2 Feb 2017 13:52:28 +0000 (13:52 +0000)]
Merge "Adapt Promise to new framework"
Juha Kosonen [Thu, 2 Feb 2017 10:47:37 +0000 (12:47 +0200)]
Add tempest test details to results report
JIRA: FUNCTEST-711
Change-Id: Ib89ad63f0f97ff27e62fd6af200a15b9eed646c6
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
Cédric Ollivier [Thu, 2 Feb 2017 09:25:16 +0000 (10:25 +0100)]
Change permissions of python files
Change-Id: I21826594ffa9b06a70664aa3512f0b5df8b546cd
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Cédric Ollivier [Thu, 2 Feb 2017 09:21:18 +0000 (10:21 +0100)]
Convert files to Unix format
Change-Id: I8faa0c9f4185e2d71b9c5d22a6a25830aacd8114
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Morgan Richomme [Thu, 2 Feb 2017 09:06:59 +0000 (10:06 +0100)]
bug fix: no status returned at the end of a Tempest/Rally run
the return shall only deal with test executed or not
it shall not return the criteria through a return statement
the criteria is managed with the criteria field
previous patch https://gerrit.opnfv.org/gerrit/#/c/27807
corrected the fact that we should not return the status of the test
which was preventing Failed results to be pushed
but it removed the return needed statement
JIRA: FUNCTEST-714
Change-Id: I3d4c609467837e4ce2353c67c0b8ea95e21ebd84
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Cédric Ollivier [Thu, 2 Feb 2017 08:19:03 +0000 (09:19 +0100)]
Define how to pass args to TestcaseBase.run
Here is an exemple of functest/ci/testcases.yaml
run:
module: 'functest.opnfv_tests.sdn.odl.odl'
class: 'ODLTests'
args:
suites:
- /home/opnfv/repos/odl_test/csit/suites/integration/basic
- /home/opnfv/repos/odl_test/csit/suites/openstack/neutron
Change-Id: I37b0ffa18f626bd8bb52ed460ae38053bd12c8ee
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
Morgan Richomme [Wed, 1 Feb 2017 13:54:08 +0000 (14:54 +0100)]
Adapt Promise to new framework
JIRA: FUNCTEST-549
Change-Id: I01018bc10f5b1717af217457018a5d56f86d60cd
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Morgan Richomme [Wed, 1 Feb 2017 13:19:25 +0000 (13:19 +0000)]
Merge "[rally] Get keystone auth endpoint as request_url"
Morgan Richomme [Wed, 1 Feb 2017 13:18:34 +0000 (13:18 +0000)]
Merge "First update of dev guide for dnaube"
Morgan Richomme [Wed, 1 Feb 2017 13:18:25 +0000 (13:18 +0000)]
Merge "Update Configuration guide"
Michael Polenchuk [Wed, 1 Feb 2017 09:40:08 +0000 (13:40 +0400)]
[rally] Get keystone auth endpoint as request_url
JIRA: FUNCTEST-685
Change-Id: Id0d0bcf55451832d9aeb22c3e6b9c21aea4e0911
Signed-off-by: Michael Polenchuk <mpolenchuk@mirantis.com>
Jose Lausuch [Wed, 1 Feb 2017 09:11:57 +0000 (09:11 +0000)]
Merge "Extract util functions from tempest.py to conf_utils"
Morgan Richomme [Fri, 27 Jan 2017 13:30:33 +0000 (14:30 +0100)]
First update of dev guide for dnaube
JIRA: FUNCTEST-561
Change-Id: I2ce04883e09a1700cbcceac18e7bc1c01497633a
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Morgan Richomme [Thu, 19 Jan 2017 14:25:04 +0000 (15:25 +0100)]
Update Configuration guide
JIRA: FUNCTEST-559
Change-Id: I592ec574f4703d0b0ad7ee9941e487e3bb528d5d
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Morgan Richomme [Wed, 1 Feb 2017 07:25:14 +0000 (07:25 +0000)]
Merge "Adapt doctor test case to the FeatureBase framework"
Morgan Richomme [Wed, 1 Feb 2017 07:24:10 +0000 (07:24 +0000)]
Merge "Tempest and SNAPS not pushing results to DB in case of FAIL"
Morgan Richomme [Wed, 1 Feb 2017 07:24:01 +0000 (07:24 +0000)]
Merge "First update of Functest user guide for Danube"
jose.lausuch [Mon, 30 Jan 2017 17:04:44 +0000 (18:04 +0100)]
Extract util functions from tempest.py to conf_utils
These functions are useful for other test cases trying
to run tempest. For example BGPVPN tests cases located
in SDNVPN repo.
Change-Id: I67e671f4e9b0a2d81a3ab0d1957ce144fb1a0432
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Morgan Richomme [Tue, 31 Jan 2017 17:05:48 +0000 (18:05 +0100)]
Tempest and SNAPS not pushing results to DB in case of FAIL
this problem was due to the fact that we add exit condition
EX_ERROR when the result was FAIL
EX_ERROR shall be used as exit condition when there is an
execution error, i.e the test case cannot be run
if it can be run, there is no execution error
the result can be PASS or FAIL, but from the CI, execution is OK
JIRA: FUNCTEST-714
Change-Id: Id434bb9aa88b50277c40c717259304f26f7b3966
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
Morgan Richomme [Mon, 23 Jan 2017 14:49:14 +0000 (15:49 +0100)]
First update of Functest user guide for Danube
JIRA: FUNCTEST-560
Change-Id: I90d7c3447dfb15b880704cb25da080221cb7b063
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
h-hayashi [Mon, 30 Jan 2017 08:15:41 +0000 (17:15 +0900)]
Adapt doctor test case to the FeatureBase framework
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>
Morgan Richomme [Tue, 31 Jan 2017 07:20:48 +0000 (07:20 +0000)]
Merge "Make sure we have installed python_novaclient==6.0.0"
jose.lausuch [Mon, 30 Jan 2017 16:46:33 +0000 (17:46 +0100)]
Make sure we have installed python_novaclient==6.0.0
Some requirements install novaclient 7.0.0 which belongs
to Ocata. It shows some warnings that are not relevant.
This will force to install the version for Newton.
Change-Id: Ic9c6b3e9558ef59475099fa41316f56a8a3192a0
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
Michael Polenchuk [Mon, 30 Jan 2017 11:06:28 +0000 (15:06 +0400)]
Support newton in tempest
* 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>
Ryota MIBU [Mon, 30 Jan 2017 03:47:57 +0000 (03:47 +0000)]
[doctor] allow testing with fuel and joid
Change-Id: Ib128c5f9f7de550fb288580fd36fb03fd49f7d8b
Signed-off-by: Ryota MIBU <r-mibu@cq.jp.nec.com>
Morgan Richomme [Fri, 27 Jan 2017 09:55:26 +0000 (09:55 +0000)]
Merge "Bugfix: fix the error of no sh file"
Morgan Richomme [Wed, 25 Jan 2017 13:07:35 +0000 (13:07 +0000)]
Merge "Refactor Rally to adopt OO"
helenyao [Mon, 23 Jan 2017 01:51:25 +0000 (20:51 -0500)]
Refactor Rally to adopt OO
JIRA: FUNCTEST-541
Change-Id: Ife04f58dc31ca9ba6316cc31577f81a6bf0e0405
Signed-off-by: helenyao <yaohelan@huawei.com>
Linda Wang [Tue, 24 Jan 2017 05:16:10 +0000 (05:16 +0000)]
Bugfix: fix the error of no sh file
Three shell scripts (dmz.sh, smtp_ingress.sh and reserved_subnet.sh)
are needed when executing "run.sh" where relative path of the three scripts
is specified. Those three shell scripts are also located in /home/opnfv/copper/tests,
so it is necessary to change to this dir before executing "run.sh".
JIRA: FUNCTEST-691
Change-Id: I8571e3403d31e9eede8c4eab79b49f721199cdf9
Signed-off-by: Linda Wang <wangwulin@huawei.com>
Morgan Richomme [Mon, 23 Jan 2017 13:19:05 +0000 (13:19 +0000)]
Merge "Fix for opnfv onos-sfc scripts"
sathishkumarmurugesan [Thu, 19 Jan 2017 06:29:54 +0000 (11:59 +0530)]
Fix for opnfv onos-sfc scripts
Change-Id: I676885b364e81e2266e72defd7fb21bbc96b093d
Signed-off-by: sathishkumarmurugesan <sathishkumar@huawei.com>
Helen Yao [Mon, 23 Jan 2017 09:05:25 +0000 (09:05 +0000)]
Merge "Leverage logging config and refactor the logger"
Helen Yao [Sun, 22 Jan 2017 02:39:53 +0000 (02:39 +0000)]
Merge "Reverted the file permission"
Morgan Richomme [Fri, 20 Jan 2017 09:51:50 +0000 (10:51 +0100)]
bug fix case name for VNFonboarding
the case paramter was not provided to the anstraction class
Change-Id: I42ba63a3b4fd20f6d076f20369fed56715237640
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
boucherv [Fri, 20 Jan 2017 09:56:26 +0000 (10:56 +0100)]
VNF_BASE - fix quota update failed
JIRA: FUNCTEST-702
Change-Id: Ia831d35079f9286f924d0b407a64bf376b1cff21
Signed-off-by: boucherv <valentin.boucher@orange.com>
helenyao [Thu, 5 Jan 2017 06:57:01 +0000 (01:57 -0500)]
Leverage logging config and refactor the logger
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>
Morgan Richomme [Thu, 19 Jan 2017 09:34:08 +0000 (09:34 +0000)]
Merge "Bugfix: delete the wrong path in functest_constants.py"
Morgan Richomme [Thu, 19 Jan 2017 09:25:45 +0000 (09:25 +0000)]
Merge "write test results to a local file"
Morgan Richomme [Thu, 19 Jan 2017 08:49:15 +0000 (08:49 +0000)]
Merge "Use 8081 for apex's restconfport robot variable"
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>
Morgan Richomme [Thu, 19 Jan 2017 07:17:28 +0000 (07:17 +0000)]
Merge "Bugfix: fix the execution way in copper"
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>
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>
Jose Lausuch [Wed, 18 Jan 2017 16:45:13 +0000 (16:45 +0000)]
Merge "Add 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>
Morgan Richomme [Wed, 18 Jan 2017 09:29:05 +0000 (09:29 +0000)]
Merge "Rally keystone test scenarios for v3"
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>
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"
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>
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>
Jose Lausuch [Sun, 15 Jan 2017 23:50:16 +0000 (23:50 +0000)]
Merge "Fixes ODL rest port for Apex"
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>
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>
Jose Lausuch [Thu, 12 Jan 2017 16:07:22 +0000 (16:07 +0000)]
Merge "Added unit tests for utils/openstack_utils.py"
Jose Lausuch [Thu, 12 Jan 2017 15:55:41 +0000 (15:55 +0000)]
Merge "[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>
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>
Morgan Richomme [Thu, 12 Jan 2017 08:59:32 +0000 (08:59 +0000)]
Merge "Bugfix: fix the wrong path in copper"
Morgan Richomme [Thu, 12 Jan 2017 08:59:16 +0000 (08:59 +0000)]
Merge "Remove cmd to OpenStack, use python client"
Morgan Richomme [Thu, 12 Jan 2017 08:58:13 +0000 (08:58 +0000)]
Merge "Tests added for utils."
Jose Lausuch [Wed, 11 Jan 2017 13:06:56 +0000 (13:06 +0000)]
Merge "[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>
Morgan Richomme [Wed, 11 Jan 2017 10:15:48 +0000 (10:15 +0000)]
Merge "Set flavor's page size to support dpdk enabled vms"
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>
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>
Morgan Richomme [Tue, 10 Jan 2017 07:45:47 +0000 (07:45 +0000)]
Merge "Tackerclient added in test-requirement."
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>
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>
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>
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
Morgan Richomme [Thu, 5 Jan 2017 11:01:30 +0000 (11:01 +0000)]
Merge "Adapt Domino to FeatureBase"
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>
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>
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>
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>
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>
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>
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>
Morgan Richomme [Wed, 4 Jan 2017 13:11:05 +0000 (13:11 +0000)]
Merge "Added unit tests for utils/functest_utils.py."
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>
helenyao [Wed, 21 Dec 2016 07:01:34 +0000 (02:01 -0500)]
Reverted the file permission
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>
Morgan Richomme [Tue, 3 Jan 2017 14:56:51 +0000 (14:56 +0000)]
Merge "use working zmail rather than private gmail"
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>
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>
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>
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>
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"
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>
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>