functest.git
8 years agoAdd security_scan in Functest CI pipeline 71/14671/3
Morgan Richomme [Wed, 25 May 2016 15:51:36 +0000 (17:51 +0200)]
Add security_scan in Functest CI pipeline

JIRA: FUNCTEST-258

Change-Id: Idbf6006910982a9a165952ca3031966855bcb29d
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
8 years agoMerge "Added 60 sec delay before launching instances in healthcheck"
Jose Lausuch [Wed, 25 May 2016 15:26:49 +0000 (15:26 +0000)]
Merge "Added 60 sec delay before launching instances in healthcheck"

8 years agoPush results if INSTALLER_TYPE and NODE_NAME are defined 53/14653/2
Cédric Ollivier [Wed, 25 May 2016 09:22:31 +0000 (11:22 +0200)]
Push results if INSTALLER_TYPE and NODE_NAME are defined

INSTALLER_TYPE and NODE_NAME are also checked before pushing ODL
results in DB

Change-Id: If92c8b50d3ae7618475aeb25ab732c6dddb08019
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
8 years agoAllow unknown ci_installer or ci_scenario in is_compatible 51/14651/2
Cédric Ollivier [Wed, 25 May 2016 08:19:12 +0000 (10:19 +0200)]
Allow unknown ci_installer or ci_scenario in is_compatible

ci_installer and ci_scenario are only tested if they are set. At least one of
theses variables must be set to get dependencies

It modifies the previous logic introduced by the first implementation of
tier_handler.py [1]

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

Change-Id: Icc9663a620f0b18f502b3eff7c0ce0d71e4e5910
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
8 years agoAdded 60 sec delay before launching instances in healthcheck 57/14657/1
vitikkan [Wed, 25 May 2016 12:03:52 +0000 (15:03 +0300)]
Added 60 sec delay before launching instances in healthcheck

This delay should be removed after resolving Jira case APEX-149.
The purpose is to give some time to populate openflow rules
by SDN controller in case of odl_l2 scenario.

Change-Id: I05c0b82a7544e934d82f1fa37e2f146aab03f7b9
Signed-off-by: vitikkan <viktor.tikkanen@nokia.com>
8 years agoJoin Rally_full and Tempest_full in the same Tier 57/14557/2
jose.lausuch [Tue, 24 May 2016 08:23:09 +0000 (10:23 +0200)]
Join Rally_full and Tempest_full in the same Tier

JIRA: FUNCTEST-190

Change-Id: Ib82c59e0a68ed73caba79a0d5b2000861ee31552
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoPush bgpvpn_api results into Test DB 35/14435/1
Morgan Richomme [Fri, 20 May 2016 12:29:51 +0000 (14:29 +0200)]
Push bgpvpn_api results into Test DB

JIRA: FUNCTEST-234

Change-Id: I0494043bff6a37dc94724dfee1a718a1ab9fbcf3
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
8 years agoPreserving Nova instances from os_defaults.yaml 59/14359/4
vitikkan [Thu, 19 May 2016 11:08:47 +0000 (14:08 +0300)]
Preserving Nova instances from os_defaults.yaml

Previously clean_openstack deleted all the existing instances
even if they were included into os_defaults.yaml.

Change-Id: Id7c17ec86a5616c44bd2965844a4a8545054358b
Signed-off-by: vitikkan <viktor.tikkanen@nokia.com>
8 years agoFix path for vping.sh and exit if SCP fails 63/14363/2
jose.lausuch [Thu, 19 May 2016 11:24:35 +0000 (13:24 +0200)]
Fix path for vping.sh and exit if SCP fails

Change-Id: I28b394071ae739af60f7e7007cc54e96f13d39db
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agofix vPing paths post refactoring effect 45/14345/1
Morgan Richomme [Thu, 19 May 2016 06:25:36 +0000 (08:25 +0200)]
fix vPing paths post refactoring effect

Change-Id: I24e961965db5103af1625418e7f5ae977bcabf54
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
8 years agoChange 'testcases' directory structure 63/14263/2
jose.lausuch [Tue, 17 May 2016 19:36:56 +0000 (21:36 +0200)]
Change 'testcases' directory structure

JIRA: FUNCTEST-226

- Remove all 'CI' subdirs
- Remove VIM dir and have OpenStack dir within /testcases/
- Split rally and tempest in 2 different dirs

Change-Id: Icfc76d18a84f7a18d93ae1a5ec7dc7a560bb7ce9
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoMerge "BGPVPN test case refactored"
Morgan Richomme [Tue, 17 May 2016 13:27:40 +0000 (13:27 +0000)]
Merge "BGPVPN test case refactored"

8 years agoMerge "Catch TypeError exceptions in ci/tier_handler.py"
Jose Lausuch [Tue, 17 May 2016 08:19:49 +0000 (08:19 +0000)]
Merge "Catch TypeError exceptions in ci/tier_handler.py"

8 years agoBGPVPN test case refactored 81/14181/3
vitikkan [Mon, 16 May 2016 05:05:45 +0000 (08:05 +0300)]
BGPVPN test case refactored

BGPVPN test case is refactored and moved into bgpvpn.py module.

JIRA: FUNCTEST-234

Change-Id: Ib0dd6e11f3c568470d9c3837ca192da767c64843
Signed-off-by: vitikkan <viktor.tikkanen@nokia.com>
8 years agoRefactor ODL vars in ci/exec_test.sh 95/14095/1
Cédric Ollivier [Fri, 13 May 2016 12:41:00 +0000 (14:41 +0200)]
Refactor ODL vars in ci/exec_test.sh

neutron_ip is set equal to neutron public endpoint and odl_ip to
neutron_ip or SDN_CONTROLLER according to INSTALLER_TYPE.
It also doesn't exit if INSTALLER_TYPE is unset.

Change-Id: I9ffa9f2837216ba88645d9bdfeeedd7a86a50b84
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
8 years agoReplace error in ci/exec_test.sh 91/14091/1
Cédric Ollivier [Fri, 13 May 2016 12:02:14 +0000 (14:02 +0200)]
Replace error in ci/exec_test.sh

error undefined in ci/exec_test.sh is now replaced by echo $msg >&2

Change-Id: I90fc44d94680206a2b0e85f9dfa5c48dadf6ac04
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
8 years agoCatch TypeError exceptions in ci/tier_handler.py 83/14083/1
Cédric Ollivier [Fri, 13 May 2016 09:01:52 +0000 (11:01 +0200)]
Catch TypeError exceptions in ci/tier_handler.py

If INSTALLER_TYPE is unset, is_compatible returns False instead of
raising an ErrorType exception.

Change-Id: I55c219808851907a19e2aa0124eb13d53a5e685d
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
8 years agoMerge "Added handling of blacklist for tempest"
Jose Lausuch [Fri, 13 May 2016 08:48:07 +0000 (08:48 +0000)]
Merge "Added handling of blacklist for tempest"

8 years agoAdded handling of blacklist for tempest 75/14075/2
vitikkan [Fri, 13 May 2016 06:57:21 +0000 (09:57 +0300)]
Added handling of blacklist for tempest

It is now possible to exclude some specific test cases ("black list")
from the test case suites.

JIRA: FUNCTEST-197

Change-Id: I2946a010793da0a3d3ef1d96aa0ca0840e8a761d
Signed-off-by: vitikkan <viktor.tikkanen@nokia.com>
8 years agoAdd protections if INSTALLER_TYPE is unset 49/14049/1
Cédric Ollivier [Thu, 12 May 2016 15:05:42 +0000 (17:05 +0200)]
Add protections if INSTALLER_TYPE is unset

It avoids unary operator expected errors.

Change-Id: Ie717631b651b258d9bf62706f09c6f6b7c534620
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
8 years agoMerge "Fix typos in testcases.yaml"
Jose Lausuch [Thu, 12 May 2016 13:46:11 +0000 (13:46 +0000)]
Merge "Fix typos in testcases.yaml"

8 years agoFix typos in testcases.yaml 35/13935/1
Cédric Ollivier [Wed, 11 May 2016 15:34:57 +0000 (17:34 +0200)]
Fix typos in testcases.yaml

Change-Id: I7b014c55b626a06c0b4aaba006691f726f88acac
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
8 years agoRespect multiline syntax in Dockerfile 25/13925/1
Cédric Ollivier [Wed, 11 May 2016 12:58:56 +0000 (14:58 +0200)]
Respect multiline syntax in Dockerfile

It fixes errors in /home/opnfv/.bashrc induced by [1].

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

Change-Id: I07ff6504ee8fee7428b700553419d1208e639379
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
8 years agoFix a few nits in prepare_env and dockerfile 17/13917/1
jose.lausuch [Wed, 11 May 2016 10:15:20 +0000 (12:15 +0200)]
Fix a few nits in prepare_env and dockerfile

Change-Id: Idb407ab80a41be0838c35d79819f8953885ba668
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoSpecify the field id in neutron arguments 15/13915/3
Cédric Ollivier [Wed, 11 May 2016 09:52:08 +0000 (11:52 +0200)]
Specify the field id in neutron arguments

It fixes the parsing error when 2 subnets are created on a specific
network.

Change-Id: I46154a65d0e916387faea5b506ae6a93240c6726
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
8 years agoRemoved obsolete modules 13/13913/1
vitikkan [Wed, 11 May 2016 09:48:10 +0000 (12:48 +0300)]
Removed obsolete modules

testcases/VIM/OpenStack/CI/libraries/check_os.sh
testcases/VIM/OpenStack/CI/libraries/os_defaults.yaml

Change-Id: I835bfbdc9aa43903ca2ad6041a38216fd68263a5
Signed-off-by: vitikkan <viktor.tikkanen@nokia.com>
8 years agoSplit tempest into smoke and full modes 01/13901/2
vitikkan [Wed, 11 May 2016 07:28:18 +0000 (10:28 +0300)]
Split tempest into smoke and full modes

"tempest_smoke_serial" and "tempest_full_parallel" test cases
replace the original "tempest" case.

Corrected fetching tempest results from "rally verify list"
output (last result is taken instead of the first one). This
correction is needed when "rally verify start" is run multiple
times.

JIRA: FUNCTEST-242

Change-Id: I544a22081655af819dbaaaafc0ba0fa6eae1e4ea
Signed-off-by: vitikkan <viktor.tikkanen@nokia.com>
8 years agoEnable sanity mode of Rally test for the CI runs 51/13851/1
Juha Kosonen [Tue, 10 May 2016 14:25:38 +0000 (14:25 +0000)]
Enable sanity mode of Rally test for the CI runs

JIRA: FUNCTEST-241

Change-Id: Ie37657bf9e8c01ae4126c1c45146d8aadb2c5775
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
8 years agoAdapt tiers to run depending on WEEKLY/DAILY 85/13785/4
jose.lausuch [Mon, 9 May 2016 13:08:41 +0000 (15:08 +0200)]
Adapt tiers to run depending on WEEKLY/DAILY

JIRA: FUNCTEST-244

Change-Id: I11bf28baff52b75b0f6c58845edc22f266dfcbe8
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoMerge "CLI implementation"
jose.lausuch [Tue, 10 May 2016 11:51:18 +0000 (11:51 +0000)]
Merge "CLI implementation"

8 years agoCreate a private shared network for Rally 23/13823/2
Juha Kosonen [Tue, 10 May 2016 07:24:26 +0000 (07:24 +0000)]
Create a private shared network for Rally

Since functest-net will be obsolete, own private network, subnet and
router is created for Rally tests.

JIRA: FUNCTEST-240

Change-Id: I8a30e2b4fe12238dba526c21188c85f75bacc0b8
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
8 years agoCreating private network for Tempest 17/13817/4
vitikkan [Tue, 10 May 2016 05:58:00 +0000 (08:58 +0300)]
Creating private network for Tempest

Since functest-net will be obsolete, own private network,
subnet and router is taken into use for Tempest test.

JIRA: FUNCTEST-239

Change-Id: I2b9f6aae74dc36decf305a4531fe0a071031aca3
Signed-off-by: vitikkan <viktor.tikkanen@nokia.com>
8 years agoCLI implementation 99/13699/10
jose.lausuch [Thu, 5 May 2016 23:36:30 +0000 (01:36 +0200)]
CLI implementation

JIRA: FUNCTEST-243

Change-Id: Ibf0ef9bcc5f3aeda96b050827b954ce060317613
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoGeneric Function to create a private network 81/13781/3
jose.lausuch [Mon, 9 May 2016 09:30:21 +0000 (11:30 +0200)]
Generic Function to create a private network

This is to be used by all the tests which need a private network to work,
for example Tempest, Rally, vPing, ssh..

Added example for vPing and promise scripts.

Change-Id: I5d79e7b60b81b0f34230ea3ef2f3076697a1958c
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoFix shebang of python scripts 69/13769/1
Juha Kosonen [Mon, 9 May 2016 08:10:00 +0000 (08:10 +0000)]
Fix shebang of python scripts

Change-Id: I8a05fd6fbb0d392a27f354a6b8cacf33073bf17f
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
8 years agoAdd results dir to Dockerfile 87/13687/1
jose.lausuch [Thu, 5 May 2016 17:48:21 +0000 (19:48 +0200)]
Add results dir to Dockerfile

This will allow to create the functest.log used by logger in
/home/opnfv/functest/results/functest.log

Change-Id: Iebc1130942c4e4a5f592cfa247e7ba7403559a59
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoDon't exit on error when destroying rally deployment 83/13683/1
jose.lausuch [Thu, 5 May 2016 12:36:03 +0000 (14:36 +0200)]
Don't exit on error when destroying rally deployment

Also, some improvements in execute_command function

Change-Id: I8271d55202b8859701275d5f7322a7bd4894e475
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoFix bug config_functest.yaml location 77/13677/2
jose.lausuch [Thu, 5 May 2016 10:18:33 +0000 (12:18 +0200)]
Fix bug config_functest.yaml location

Change-Id: I3b28eb7015f6f1418ef04ca91103e313f71f74e3
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoRefactor, add logger handler to collect all the logs to a file as well 67/13667/3
jose.lausuch [Wed, 4 May 2016 14:57:36 +0000 (16:57 +0200)]
Refactor, add logger handler to collect all the logs to a file as well

JIRA: FUNCTEST-190

Also:
- remove old code that are not used any more
- improve execute_command function
- fix logger output for run_tempest

Change-Id: Ib268738ada1b9de2a418ef01e684a90e6f4e02ed
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoRefactor improvements 49/13649/8
jose.lausuch [Wed, 4 May 2016 09:47:40 +0000 (11:47 +0200)]
Refactor improvements

JIRA: FUNCTEST-190

- Deleted unnecessary old scripts
- Fixed healtcheck logging
- Moved config_functest.yaml to /ci/
- Created env var CONFIG_FUNCTEST_YAML pointing to that new location
- Modified all scripts which open config_functest.yaml using the new env var

Change-Id: Ic4f0e40a70c02ac08287a1d621956f602bdee177
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoMerge "Create CLI template for Functest"
Morgan Richomme [Tue, 3 May 2016 09:56:22 +0000 (09:56 +0000)]
Merge "Create CLI template for Functest"

8 years agoAdd command to execute the actual tests 09/13609/3
jose.lausuch [Mon, 2 May 2016 17:05:54 +0000 (19:05 +0200)]
Add command to execute the actual tests

JIRA: FUNCTEST-190

Run_tests was generating the tests cases to be executed, but
not actually running them.
This patch also includes a small enhancement to avoid too much
output when showing which tiers to be tested.

Change-Id: Id70cfe44a8263ce7f598386668a33c67a8961b42
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoEnhance output when showing tiers and testcases info 81/13481/2
jose.lausuch [Mon, 2 May 2016 07:01:50 +0000 (09:01 +0200)]
Enhance output when showing tiers and testcases info

JIRA: FUNCTEST-190

Change-Id: I43e26700ee3c92be64d79243c6762a3ccd5d42d3
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoCreate CLI template for Functest 55/13455/2
jose.lausuch [Fri, 29 Apr 2016 15:58:37 +0000 (17:58 +0200)]
Create CLI template for Functest

JIRA: FUNCTEST-235

Change-Id: I235a53781fbcde91ccf15d15ea52c96ee2ee9433
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoSource the credentials in run_tests.py 87/13487/3
jose.lausuch [Mon, 2 May 2016 09:21:34 +0000 (11:21 +0200)]
Source the credentials in run_tests.py

JIRA: FUNCTEST-227
JIRA: FUNCTEST-190

OpenStack clean was failing due to this.

Change-Id: Ia4dcf084becb532f157c0924baf44bb2441f6379
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoFunctest - documentation small corrections 45/13445/1
David Blaisonneau [Fri, 29 Apr 2016 14:58:25 +0000 (16:58 +0200)]
Functest - documentation small corrections

Signed-off-by: David Blaisonneau <david.blaisonneau@orange.com>
8 years agoMerge "Add a step to enable docker run without sudo"
Morgan Richomme [Fri, 29 Apr 2016 14:45:23 +0000 (14:45 +0000)]
Merge "Add a step to enable docker run without sudo"

8 years agoExecute successive scenarios after task failure 35/13435/1
Juha Kosonen [Fri, 29 Apr 2016 13:23:12 +0000 (13:23 +0000)]
Execute successive scenarios after task failure

Log the result of task validation and proceed executing next rally
scenario when the current task start-up fails.

JIRA: FUNCTEST-230

Change-Id: I5544a9559636f671035578f9cc5cf6f934bcbcd8
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
8 years agoMerge "Create run_test.py using the tier mechanism to run the tests"
jose.lausuch [Fri, 29 Apr 2016 09:20:34 +0000 (09:20 +0000)]
Merge "Create run_test.py using the tier mechanism to run the tests"

8 years agoAdd a step to enable docker run without sudo 19/13419/1
David Blaisonneau [Fri, 29 Apr 2016 08:00:43 +0000 (10:00 +0200)]
Add a step to enable docker run without sudo

Signed-off-by: David Blaisonneau <david.blaisonneau@orange.com>
8 years agoCreate run_test.py using the tier mechanism to run the tests 75/13375/5
jose.lausuch [Wed, 27 Apr 2016 22:08:26 +0000 (00:08 +0200)]
Create run_test.py using the tier mechanism to run the tests

JIRA: FUNCTEST-227
JIRA: FUNCTEST-190

Change-Id: I5445ad36ec65e62d48c8f5b16352caea2e51e3c9
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoMerge "Replace all the loggers by the functest logger module"
Morgan Richomme [Wed, 27 Apr 2016 16:15:37 +0000 (16:15 +0000)]
Merge "Replace all the loggers by the functest logger module"

8 years agoMerge "Prepare Brahmaputra 3.0 release"
Morgan Richomme [Wed, 27 Apr 2016 15:59:03 +0000 (15:59 +0000)]
Merge "Prepare Brahmaputra 3.0 release"

8 years agoPrepare Brahmaputra 3.0 release 81/12681/8
Morgan Richomme [Tue, 26 Apr 2016 16:35:16 +0000 (18:35 +0200)]
Prepare Brahmaputra 3.0 release

Change-Id: I12530573ff6cac7764e169225e130d46455ce54f
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
8 years agoReplace all the loggers by the functest logger module 29/12729/2
jose.lausuch [Wed, 27 Apr 2016 14:28:55 +0000 (16:28 +0200)]
Replace all the loggers by the functest logger module

JIRA: FUNCTEST-228

Change-Id: If7a3c8cb08e9fbdf155fc5eff5330f79e5f8d234
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoCreate prepare_env.py from prepare_env.sh and config_functest.py 41/12641/11
jose.lausuch [Mon, 25 Apr 2016 16:08:22 +0000 (18:08 +0200)]
Create prepare_env.py from prepare_env.sh and config_functest.py

JIRA: FUNCTEST-227

Change-Id: I1aa890b9f91ec524c766ba3c460666ed227f2126
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoCorrected path for clean_openstack.py 93/13393/1
vitikkan [Wed, 27 Apr 2016 11:15:08 +0000 (14:15 +0300)]
Corrected path for clean_openstack.py

Signed-off-by: vitikkan <viktor.tikkanen@nokia.com>
8 years agoMove functest_utils and openstack_utils to directory /utils 69/12669/1
jose.lausuch [Tue, 26 Apr 2016 11:35:00 +0000 (13:35 +0200)]
Move functest_utils and openstack_utils to directory /utils

JIRA: FUNCTEST-226

Change-Id: I74d09f6322844b25ab45a02156317ae76ab40d8a
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoMerge "Add Functest Logger centralized Class"
jose.lausuch [Tue, 26 Apr 2016 11:00:28 +0000 (11:00 +0000)]
Merge "Add Functest Logger centralized Class"

8 years agoAdd Functest Logger centralized Class 65/12665/4
jose.lausuch [Tue, 26 Apr 2016 09:50:58 +0000 (11:50 +0200)]
Add Functest Logger centralized Class

JIRA: FUNCTEST-228

This is to be used by all the scripts using logging mechanisms.
Usage:

  import functest_logger as fl
  logger = fl.Logger("<script_name>").getLogger()

  # treat it as a normal logger object, as before:
  logger.info("message to be shown with - INFO - ")
  logger.debug("message to be shown with - DEBUG -")

Change-Id: I94e248523bc9bc148c9d171c978804b5d1865dd9
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoCorrected logging.Formatter parameters 63/12663/1
vitikkan [Tue, 26 Apr 2016 08:23:08 +0000 (11:23 +0300)]
Corrected logging.Formatter parameters

Signed-off-by: vitikkan <viktor.tikkanen@nokia.com>
8 years agoMerge "Add untracked files to ignore"
Jose Lausuch [Mon, 25 Apr 2016 13:39:19 +0000 (13:39 +0000)]
Merge "Add untracked files to ignore"

8 years agoCorrected if statement for clean_openstack 35/12635/2
vitikkan [Mon, 25 Apr 2016 11:43:57 +0000 (14:43 +0300)]
Corrected if statement for clean_openstack

Change-Id: I3d8c0cb81dc4906ea989bd36dc8c29bf9f1f6396
Signed-off-by: vitikkan <viktor.tikkanen@nokia.com>
8 years agoRemove backslashs for line continuation 23/12623/4
Cédric Ollivier [Mon, 25 Apr 2016 07:27:21 +0000 (09:27 +0200)]
Remove backslashs for line continuation

JIRA: FUNCTEST-213

Change-Id: Ia50521cf8fcf60a847aa44fe0ea59b6e64830e92
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
8 years agoAdd untracked files to ignore 27/12627/1
Cédric Ollivier [Mon, 25 Apr 2016 08:54:11 +0000 (10:54 +0200)]
Add untracked files to ignore

.gitignore also lists pyc, .project and .pydevproject files

Change-Id: Ica9997b54476108f2fcea865e10f3faef831a852
Signed-off-by: Cédric Ollivier <cedric.ollivier@orange.com>
8 years agoAdd tier_handler and tier_builder 79/12579/7
jose.lausuch [Fri, 22 Apr 2016 13:34:49 +0000 (15:34 +0200)]
Add tier_handler and tier_builder

tier_handler: defines the classes for Tier,TestCase and Dependency
tier_builder: reads the testcases.yaml and creates a list of objects
              that will be used later on to execute the tests

JIRA: FUNCTEST-190

Change-Id: Iabef344aff036ad3b525088af59fb21b16b02fc8
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoConfigParser is used for tempest.conf updating 21/12621/1
vitikkan [Mon, 25 Apr 2016 07:43:29 +0000 (10:43 +0300)]
ConfigParser is used for tempest.conf updating

Bash commands are replaced with python's ConfigParser routines
for configuration file reading/updating.

Removed updating of ssh_user_regex parameter since it is now
into upstream Rally code.

JIRA: FUNCTEST-198

Change-Id: I95f926948a395993e28e993bf7ea2872d6b5c969
Signed-off-by: vitikkan <viktor.tikkanen@nokia.com>
8 years agoMerge "Introduce a sanity test mode for Rally test"
Morgan Richomme [Fri, 22 Apr 2016 15:46:31 +0000 (15:46 +0000)]
Merge "Introduce a sanity test mode for Rally test"

8 years agoIntroduce a sanity test mode for Rally test 57/12557/4
Juha Kosonen [Fri, 22 Apr 2016 07:21:29 +0000 (07:21 +0000)]
Introduce a sanity test mode for Rally test

In a sanity test mode the number of iterations is reduced and only
a subset of tests is executed.

JIRA: FUNCTEST-220

Change-Id: I722f12b8cc6df29bfcb81b8798d8d0802b207d94
Signed-off-by: Juha Kosonen <juha.kosonen@nokia.com>
8 years agoFix regex to exclude vPing_ssh and vIMS for scenario dealing with bgpvpn 73/12573/1
Morgan Richomme [Fri, 22 Apr 2016 12:12:24 +0000 (14:12 +0200)]
Fix regex to exclude vPing_ssh and vIMS for scenario dealing with bgpvpn

previous regex was excluding most of the scenario

Change-Id: I7dd9e2b3a844eab232a2b44af382202fca2253ca
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
8 years agoAffect version field in results for all the testcases 65/12565/12
Morgan Richomme [Fri, 22 Apr 2016 09:18:36 +0000 (11:18 +0200)]
Affect version field in results for all the testcases

Previously version was scenario

JIRA: FUNCTEST-225

Change-Id: Ia86f83dbe98ad5f9dbced60c46e57f58eccba7e9
Signed-off-by: Morgan Richomme <morgan.richomme@orange.com>
8 years agoEnable PYTHONPATH env variable inside the container 59/12559/2
jose.lausuch [Fri, 22 Apr 2016 07:44:01 +0000 (09:44 +0200)]
Enable PYTHONPATH env variable inside the container

JIRA: FUNCTEST-224

Change-Id: Ib10dc312a761b06fe36174c5c19a0165f746593e
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoprepare_env CI_DEBUG when calling generate_defaults.py 39/12539/1
jose.lausuch [Thu, 21 Apr 2016 11:56:41 +0000 (13:56 +0200)]
prepare_env CI_DEBUG when calling generate_defaults.py

JIRA: FUNCTEST-205

Change-Id: I3887f5ab408667437675e12c9247c7075080f0f8
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoRemove cleanup from vPing scripts, and use the existing cleanup script 27/12527/2
jose.lausuch [Thu, 21 Apr 2016 08:39:19 +0000 (10:39 +0200)]
Remove cleanup from vPing scripts, and use the existing cleanup script

JIRA: FUNCTEST-215

Change-Id: I1ec494097a9b70de142da9f90136256535af5100
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoFix Flake8 Violations in the Functest scripts 85/12485/18
jose.lausuch [Wed, 20 Apr 2016 14:03:44 +0000 (16:03 +0200)]
Fix Flake8 Violations in the Functest scripts

JIRA: FUNCTEST-213

Change-Id: I66c02dd6ff12ffb9798ebe44a4cfe7bfc73e76c3
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoAdd Tier scripts handlers and list of test cases yaml 65/12165/5
jose.lausuch [Mon, 11 Apr 2016 21:27:56 +0000 (23:27 +0200)]
Add Tier scripts handlers and list of test cases yaml

JIRA: FUNCTEST-190

Change-Id: If63034be36e5a7a5d8b3f549444d53fb9ce28b55
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoPrint openstack info only if CI_DEBUG==true 71/12471/1
jose.lausuch [Wed, 20 Apr 2016 08:07:13 +0000 (10:07 +0200)]
Print openstack info only if CI_DEBUG==true

JIRA: FUNCTEST-205

Change-Id: I550d26ba1fddcedf5697dadd38a85148ecef2d44
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoRemove RALLY_REPO in config_functest since it is not used 57/12457/1
jose.lausuch [Tue, 19 Apr 2016 22:52:59 +0000 (00:52 +0200)]
Remove RALLY_REPO in config_functest since it is not used

Change-Id: Ifb3b338543b4ce3b961564a6e9cb1e943634af3d
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoDockerfile, fix typo in git clone command 55/12455/1
jose.lausuch [Tue, 19 Apr 2016 20:47:55 +0000 (22:47 +0200)]
Dockerfile, fix typo in git clone command

Change-Id: Ic14f81362357d0a653bf174b1ccdc859bd7cea5e
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoSmall adaptations in prepare_env,run_tests and common 41/12441/2
jose.lausuch [Tue, 19 Apr 2016 11:13:11 +0000 (13:13 +0200)]
Small adaptations in prepare_env,run_tests and common

Change-Id: I5f31392b04b168247e332bc2ea97efeb733cdf97
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoAdapt Functest output to the env variable CI_DEBUG 19/12419/4
jose.lausuch [Mon, 18 Apr 2016 14:26:10 +0000 (16:26 +0200)]
Adapt Functest output to the env variable CI_DEBUG

JIRA: FUNCTEST-205

Apply CI_DEBUG environment variable in the call to the scripts

Change-Id: Ia8da993de8a60517b475f763c22ce06e9ce35b3e
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoMerge "Quote missing"
Morgan Richomme [Tue, 19 Apr 2016 09:10:15 +0000 (09:10 +0000)]
Merge "Quote missing"

8 years agoQuote missing 29/12429/2
Tim Rozet [Mon, 18 Apr 2016 18:03:13 +0000 (14:03 -0400)]
Quote missing

The missing " was causing some problems, like the REPOS_DIR variable missing

Previous:
Fixes unset REPOS_DIR var

REPOS_DIR never gets set in the script, and it looks like it should be
/home/opnfv/repos according to what is in the container.  This patch
defaults it to that location.

Change-Id: I739f7df52f4a0f3506fd77d72dfb09a4658f06c0
Signed-off-by: Tim Rozet <trozet@redhat.com>
8 years agoMerge "Author: Luke Hinds <lhinds@redhat.com> Date: Mon 18 Apr 11:48:27 2016 +0100"
Morgan Richomme [Mon, 18 Apr 2016 15:54:55 +0000 (15:54 +0000)]
Merge "Author: Luke Hinds <lhinds@redhat.com> Date:   Mon 18 Apr 11:48:27 2016 +0100"

8 years agoMerge "Generating test lists for tempest"
Morgan Richomme [Mon, 18 Apr 2016 15:53:57 +0000 (15:53 +0000)]
Merge "Generating test lists for tempest"

8 years agoRemove all the repo handling in prepare_env 17/12417/2
jose.lausuch [Mon, 18 Apr 2016 13:32:51 +0000 (15:32 +0200)]
Remove all the repo handling in prepare_env

JIRA: FUNCTEST-203

Since almost all the repos always pull from master and latest,
this is about saving some time and to avoid needing internet
to pull or checkout the repos. The needed repos content has to be
present in the docker image.

Change-Id: Ia6e1ed2b5d5b2aff8661a38eb64a081cc8016019
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoAllow rally to use existing glance image 83/12283/2
Ciprian Barbu [Thu, 14 Apr 2016 12:06:58 +0000 (15:06 +0300)]
Allow rally to use existing glance image

This allows to use a prebuilt glance image without deleting it after the test.
For ARM platforms this is especially helpful because the test image is
three-part and can be created before running any tests.

Change-Id: Ia79f519d10fc9155ab2fb44a3e427ae3bb1ce399
Signed-off-by: Ciprian Barbu <ciprian.barbu@enea.com>
8 years agoAuthor: Luke Hinds <lhinds@redhat.com> 11/12411/4
lukehinds [Mon, 18 Apr 2016 10:46:58 +0000 (11:46 +0100)]
Author: Luke Hinds <lhinds@redhat.com>
Date:   Mon 18 Apr 11:48:27 2016 +0100

    JIRA: FUNCTEST-169 Inital commit of security test code

    The following code peforms NFVi based SCAP security scans.
    This code is still pending integration with functest scripts,
    for when flashtest development is complete.

    Amend: Removed pyc file, requirements.txt and fixed flake8

Change-Id: Ie182ae5c21d36218f5c9b389c4b6e63ecbf1d151
Signed-off-by: lukehinds <lukehinds@gmail.com>
8 years agoGenerating test lists for tempest 79/12279/3
vitikkan [Thu, 14 Apr 2016 11:56:32 +0000 (14:56 +0300)]
Generating test lists for tempest

'testr list-tests' command is now used for generating smoke and full
test case lists for tempest.

test_list.txt file is replaced by defcore_req.txt file which contains
latest (2016.01) DefCore test case for possible references.

Partly implements JIRA: FUNCTEST-196

Change-Id: I993aa8a3919b97d50f081725ced686dbe6ffc4b7
Signed-off-by: vitikkan <viktor.tikkanen@nokia.com>
8 years agoAdd healthcheck test case to test_exec_priority 07/12407/2
jose.lausuch [Mon, 18 Apr 2016 09:38:24 +0000 (11:38 +0200)]
Add healthcheck test case to test_exec_priority

JIRA: FUNCTEST-199

Change-Id: I7ced0a78a93387d94709501fbbaba1c67c93c1cb
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoUpdate python-openstackclient to version 2.3.0 45/12345/1
jose.lausuch [Fri, 15 Apr 2016 13:32:45 +0000 (15:32 +0200)]
Update python-openstackclient to version 2.3.0

Change-Id: Ic9e68ade15e93f76d17db715c5790eaa31b49209
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years ago[BGPVPN] Exclude vims and vping_ssh from testlist 23/12323/3
Nikolas Hermanns [Fri, 15 Apr 2016 09:54:40 +0000 (11:54 +0200)]
[BGPVPN] Exclude vims and vping_ssh from testlist

Since vims and vping_ssh are meant to fail for
bgpvpn scenario we will exclude them
from testlist.

Change-Id: Id9da6fdd3d9a1d7c1fb5c7fb1379c13720af34af

8 years agoMerge "[BGPVPN] Use system wide installation of tempest"
Jose Lausuch [Fri, 15 Apr 2016 11:58:27 +0000 (11:58 +0000)]
Merge "[BGPVPN] Use system wide installation of tempest"

8 years ago[BGPVPN] Use system wide installation of tempest 35/12335/1
Nikolas Hermanns [Fri, 15 Apr 2016 11:19:39 +0000 (13:19 +0200)]
[BGPVPN] Use system wide installation of tempest

Since rally setup tempest system-wide now
we do not integrate with the virtual env
of tempest anymore.

Change-Id: Ia5f132371c4eb0b67ac84bf044b349480195f633

8 years agoRevert "[BGPVPN] Rally create the v-env which is needed" 33/12333/1
Nikolas Hermanns [Fri, 15 Apr 2016 11:53:02 +0000 (11:53 +0000)]
Revert "[BGPVPN] Rally create the v-env which is needed"

This reverts commit 07beceb07f8cf8d6e86d2c188b3ad81688a9827f.

Change-Id: I22c9e3726abee28db3fa311aae8e273e8b353402

8 years ago[BGPVPN] Rally create the v-env which is needed 31/12331/2
Nikolas Hermanns [Fri, 15 Apr 2016 10:42:52 +0000 (12:42 +0200)]
[BGPVPN] Rally create the v-env which is needed

Since we rely on the v-env which is created
by rally we run bgpvpn testcases after rally.

Change-Id: Ie54e3332c9130dc337303855a4b5c36df4e3d1fb

8 years agoAdding Apex able to run BGPVPN tests 17/12317/1
Nikolas Hermanns [Fri, 15 Apr 2016 07:37:03 +0000 (09:37 +0200)]
Adding Apex able to run BGPVPN tests

Change-Id: Ia346f5843fc4a1242c9a60f4dbe07e54c4920f46

8 years agoAdd healthcheck test case to config_functest.yaml 09/12309/2
jose.lausuch [Thu, 14 Apr 2016 21:21:13 +0000 (23:21 +0200)]
Add healthcheck test case to config_functest.yaml

JIRA: FUNCTEST-199

Change-Id: I82fa45eafd078490162e275877673e263479bb8f
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoCreate health check test case 63/12263/2
jose.lausuch [Wed, 13 Apr 2016 21:35:29 +0000 (23:35 +0200)]
Create health check test case

JIRA: FUNCTEST-199

Change-Id: Iee40f182cdbe848d0f87619b7dd06fbce34d0440
Signed-off-by: jose.lausuch <jose.lausuch@ericsson.com>
8 years agoMerge "add bash script to config pip and easy_install"
Jose Lausuch [Wed, 13 Apr 2016 07:59:30 +0000 (07:59 +0000)]
Merge "add bash script to config pip and easy_install"