summaryrefslogtreecommitdiffstats
path: root/testcases/config_functest.py
AgeCommit message (Collapse)AuthorFilesLines
2016-01-15Remove extra output if CI_DEBUG is falsejose.lausuch1-3/+9
This way we have a nicer view in Jenkins when preparing Functest Change-Id: Ie0df3aa8b07ac2fd726d11b1ab01a7291d4c2c5e Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 973c722f929eb3652d19a15911404f31a9f66216)
2016-01-15Add explicit logs when creating list of runnable testsMorgan Richomme1-2/+4
JIRA: FUNCTEST-119 Change-Id: I8d7e029c03bd24cd87c81956f246fae532d4feb9 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com> (cherry picked from commit 8bcf8ff9f7277256361cdd6d4cc557f01d64f042)
2016-01-15Fix bug ruby sig testboucherv1-1/+4
Change-Id: Ieb908e7af2365381ad576a3da9a0787f96c9efe2 Signed-off-by: boucherv <valentin.boucher@orange.com> (cherry picked from commit dee9be014293503645069ff6796f5231b3f7ae48)
2016-01-14set up mechanism to tun only runnable tests in CI based on scenarioMorgan Richomme1-0/+5
JIRA: FUNCTEST-119 Change-Id: I342c027c79fab1cc9fa65ddf8222e7b12b946af8 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com> (cherry picked from commit cdf5e6a2fd05f07a5db92175777113d732258a94)
2016-01-13Add rvm use system to bundle install for vIMSjose.lausuch1-0/+1
Change-Id: I890984f33fa1a51bb21806129b627dd7cfb8116b Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 3a64a2e319733be2898c43cec7547b344a8518e0)
2016-01-13Place config_functest.yaml outside the functest repojose.lausuch1-1/+1
If config_functest.yaml is given it will be placed in: /home/opnfv/functest/conf/config_functest.yaml If not given: copy default from repo to that location Change-Id: I816bf5ccf8e0a5b8ebde2a0ab924657533f49127 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com> (cherry picked from commit 00b51ffe114702ce207aa7ba2e40f01984c0c57c)
2016-01-06Merge "Using shared private network"Morgan Richomme1-0/+7
2016-01-05Using shared private networkViktor Tikkanen1-0/+7
Number of tempest test cases search for shared private networks and use value of fixed_network_name parameter from tempest.conf file in case when multiple shared networks are found. Private network created by functest is updated to be "shared". Added routine for network updating into functest_utils.py. Note that currently used OpenDaylight release (Lithium) doesn't support shared private networks so network updating will fail (this is however not a fatal error). Change-Id: I5a9a0f950b3ef61b6ebfda1af4345460134cc0e3 Signed-off-by: Viktor Tikkanen <viktor.tikkanen@nokia.com>
2016-01-04Bugfix : Ensure that ruby libraries was installed before running vims test-caseboucherv1-1/+1
Change-Id: I59d5a4aa1969a1b937e00fd491c4f07e00862687 Signed-off-by: boucherv <valentin.boucher@orange.com>
2016-01-04Ensure that ruby libraries was installed before running vims test-caseboucherv1-0/+9
Change-Id: Ice896c37fc28e01f260cd617ee4c38d323607bb5 Signed-off-by: boucherv <valentin.boucher@orange.com>
2016-01-04Configuring non-admin credentials for tempestViktor Tikkanen1-44/+2
Since some test cases from tempest suite require non-admin credentials, a new project and a new user with non-admin role were added to the configuration. JIRA: FUNCTEST-72 Change-Id: I573bc18292b5885bd354f4af16f7f70a7178540d Signed-off-by: Viktor Tikkanen <viktor.tikkanen@nokia.com>
2015-12-22Use repos_dir env variable in all Functest scriptsjose.lausuch1-8/+7
JIRA: FUNCTEST-90 This way, we remove the 'functest repo' input parameter on the python scripts call and we make it simpler using the available repos_dir env variable which points to /home/opnfv/repos Change-Id: I7d74bf1bc8d89f8f14397fcb9dafc22ee1482f84 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-17Add clean_openstack script call in clean functest environmentjose.lausuch1-3/+5
Reason: sometimes, if you run functest, it creates openstack stuff and fails, when you run it the second time it can fail if it tries to create the same openstack stuff Change-Id: I1825a02918f188c409398d2b6b95843d7fdd5993 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-12-09Create a common network for functest for all the testsjose.lausuch1-1/+66
Some installers provide a private network by default, if that is the case, it will not create another one. This is needed for Rally/Tempest to work. Removed from vPing test case, since it will use that network as well. Change-Id: Iaff8a9e18026fe5aba31e567a4a8d5faf4a0bb6b Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-10-29Move creation of glance image to vPingjose.lausuch1-42/+1
Since we only need the glance image in Vping test case, we create it in the vping script, and not in config_functest.py JIRA: FUNCTEST-74 Change-Id: I906ba94344d836bc7835a3dcf478933ff622bd54 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-10-22Include cirros image in the docker containerjose.lausuch1-14/+3
JIRA: FUNCTEST-73 Change-Id: Ie2ddaac3dbdbdad09832094fe31264abe4ba8118 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-10-21Removed ODL create_env from config_functest.pyjose.lausuch1-17/+0
Since create_env script in ODL suite is not longer needed for ODL tests because we have the libraries already installed in the docker container, this is not needed any more. Change-Id: I33a23c3acc0d931f6560f7b3a1d2054e5d277025 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-10-07Fix rally installation path in config yaml filejose.lausuch1-1/+1
JIRA: FUNCTEST-29 Change-Id: Id34570b9795e8447e05408364621abe2740ed457 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-10-07Dockerfile for Functestjose.lausuch1-48/+13
Includes also: - script to trigger Functest automatically within the container - common requirements file to install python modules - added new parameters in the config_functest.yaml - other small adjustements JIRA: FUNCTEST-29 Change-Id: I230631e43e5f7e14938b35903ecec1b17db0f88a Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-10-05Added configure_tempest() functionViktor Tikkanen1-3/+46
Currently there is a need to add and/or update some parameters into Tempest configuration file (tempest.conf) generated by Rally. This version of the function updates fixed_network_name parameter. JIRA: FUNCTEST-70 Change-Id: I182b687b02a4f124b6289e3cdae6f5817914d2ca Signed-off-by: Viktor Tikkanen <viktor.tikkanen@nokia.com>
2015-09-25Adapt installation of Tempest from rally with new command linejose.lausuch1-1/+1
https://review.openstack.org/#/c/225479/ Change-Id: I2d25797d02afed0e399f3f97c83b46c5e8969821 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-09-23added flag --yes to install_rally to force install dependenciesjose.lausuch1-1/+1
Change-Id: Ie199acd062633cda3ec3745ce4a506d247873780 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-09-22added yum install of needed packages on jumphostjose.lausuch1-0/+6
Change-Id: I7ee320dc9564ad144d9f1106c79a876e2d5b1bdc Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-08-24workaround order of env settings to all ODL tests to be runMorgan Richomme1-6/+6
JIRA: FUNCTEST-39 Change-Id: I9d9ad0d9916da7927dace7b968c975c99032738a Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2015-07-07Add check for ownership in ~/.cache/pipjose.lausuch1-1/+19
There are problems when Rally installs Tempest and the owner of that directory is root instead of the current user More info: https://bugs.launchpad.net/rally/+bug/1461493 JIRA: FUNCTEST-14 Change-Id: I90d0edf206ff4dcc10d95cc8a4e806021017b429 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-06-26config_functest.py: Rally installed with sudojose.lausuch1-1/+2
JIRA: FUNCTEST-19 Change-Id: Ide98accb5204ff4f57088a2dea28654adcfab80a Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-06-16modify functest config to prepare result folderMorgan Richomme1-0/+9
JIRA: FUNCTEST-9 Change-Id: I7ff1452da27dc904f349bcbefbc43a480a3e8843 Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
2015-06-03config_functest.py : bugfix: removed "sudo" from installing rally commandjose.lausuch1-3/+1
JIRA: FUNCTEST-10 Change-Id: I78af7a8dab9465aab547432b307b3ad7793f47b5 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-30Improvementsjose.lausuch1-237/+24
- Added: functest_utils.py for common util functions - Moved: a lot of functions from config_functest.py to functest_utils.py - Moved: create of functest-net from config_functest.py to vPing.py - Improvements and code cleaned JIRA: FUNCTEST-10 Change-Id: I0d3381576cbb24a999ea69e107baafea896a36e7 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-26Refactor functest environment. Bugfixes: arg dependenciesjose.lausuch1-1/+1
JIRA: FUNCTEST-10 Change-Id: I4b392a76ecbafdc5e4f1909c26a17a934796ec23 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-26Refactor functest environmentjose.lausuch1-146/+51
Depends on: https://gerrit.opnfv.org/gerrit/#/c/642/ JIRA: FUNCTEST-10 Change-Id: I08404df8b38372a40f715d9bde2347fd67ce52a9 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-18config_functest.py : added --force flag to force clean functest without ↵jose.lausuch1-13/+15
prompting. JIRA: FUNCTEST-10 Change-Id: I5798333db7e24674abaa80b9740e20fa7a29a747 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-15config_functet.py: bug while creating router and interface. Other minor ↵jose.lausuch1-33/+23
improvements. JIRA: FUNCTEST-10 Change-Id: I1c5a034b7f22e117cb9bfa119dd47fff5477f0ee Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-13config_functest.py : removed public network creatingjose.lausuch1-52/+5
JIRA: FUNCTEST-10 Change-Id: I177d1ccb888074bc3e6d5f29f964b6ae8c9bd1dc Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-12config_functest.py:jose.lausuch1-54/+93
1) Added create public network. 2) functest.yaml is now copied instead of downloaded. JIRA: FUNCTEST-10 Change-Id: Ia79cc304d4c607a8fe1fd4e02e78658b7719bf23 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-11config_functest.py: added create neutron network.jose.lausuch1-24/+213
vPing.py: some adaptations and bug fixes JIRA: FUNCTEST-1 JIRA: FUNCTEST-3 Change-Id: Ie8ee80c2ab61904bf4b5025d23034ef0265b509e Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-10config_functest.py download functest.yaml if not presentjose.lausuch1-23/+39
JIRA: FUNCTEST-1 JIRA: FUNCTEST-3 Change-Id: I0f5c14597539b78915d487d0fc10283530ac04ad Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-10Added functest.yaml to centralize the common parameters for all scripts of ↵jose.lausuch1-46/+61
functest adapted scripts to get the parameters from the yaml JIRA: FUNCTEST-1 JIRA: FUNCTEST-3 Change-Id: Id761394c3cd0efec611c9c511adfee041c3f4c58 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-06config_functest.py: added ODL config supportjose.lausuch1-48/+81
JIRA:FUNCTEST-1 Change-Id: If668cb47354e5ad08fc7ca26fcb1cf4016ad0409 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-06change path to create rally forlder and scenarios+results subfolders, change ↵morganrOL1-4/+5
image for vping to Ubuntu JIRA:FUNCTEST-1 Change-Id: Iee26d425626049e36064904064ec7187ce920b0a Signed-off-by: morganrOL <morgan.richomme@orange.com>
2015-05-06config_functest.py: improved output and error handling. Added download of ↵jose.lausuch1-18/+72
run_rally.py. JIRA: FUNCTEST-1 Change-Id: Ifb0baf3b3491b5279dae3024e5c835e7778c7f57 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-05config_functest.py: Added Rally and Robot automatic installation and ↵jose.lausuch1-26/+90
configuration JIRA:FUNCTEST-1 Change-Id: Iaa6fc4b5af80288699073b9a0c08d980816e8ade Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
2015-05-05Added first draft config_functest.py.jose.lausuch1-0/+285
JIRA:FUNCTEST-1 Note: TBD: run_rally.py will need some modifications. Change-Id: I94399cb74534cefddf7ad54bf7dd88f7d79905d7 Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>