From de65a5105f62c56371249d9128e7b9a28759b40f Mon Sep 17 00:00:00 2001 From: Radek Zetik Date: Thu, 12 Nov 2015 20:07:40 +0000 Subject: Results: Integrate with opnfv_test_dashboard All the test projects generate results in different format. The goal of a testing dashboard is to provide a consistent view of the different tests from the different projects. We need to enable the data collection for VSPERF, in other words VSPERF pushes data using a REST API. The feature is enabled by --opnfvpod parameter on vsperf command line. The value of the parameter sets POD name. Example: --opnfvpod or --opnfvpod= You need to specify installer name. It can be set in conf-file default value: OPNFV_INSTALLER = "Fuel" JIRA: VSPERF-112 Change-Id: I37255414eebcc2ff0c12109c508dcd984663a830 Signed-off-by: Radek Zetik Reviewed-by: Maryam Tahhan Reviewed-by: Brian Castelli --- vsperf | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'vsperf') diff --git a/vsperf b/vsperf index e220e246..f6ddc637 100755 --- a/vsperf +++ b/vsperf @@ -34,6 +34,7 @@ from core.loader import Loader from testcases import TestCase from tools import tasks from tools.pkt_gen import trafficgen +from tools.opnfvdashboard import opnfvdashboard VERBOSITY_LEVELS = { 'debug': logging.DEBUG, @@ -153,6 +154,7 @@ def parse_arguments(): help='csv list of test parameters: key=val; e.g.' 'including pkt_sizes=x,y; duration=x; ' 'rfc2544_trials=x ...') + group.add_argument('--opnfvpod', help='name of POD in opnfv') args = vars(parser.parse_args()) @@ -428,6 +430,20 @@ def main(): output=settings.getValue('XUNIT_DIR'), outsuffix="", verbosity=0).run(suite) + if args['opnfvpod']: + pod_name = args['opnfvpod'] + installer_name = settings.getValue('OPNFV_INSTALLER') + + int_data = {'cuse': False, + 'vanilla': False, + 'pod': pod_name, + 'installer': installer_name} + if settings.getValue('VSWITCH').endswith('Vanilla'): + int_data['vanilla'] = True + if settings.getValue('VNF').endswith('Cuse'): + int_data['cuse'] = True + opnfvdashboard.results2opnfv_dashboard(results_path, int_data) + #remove directory if no result files were created. if os.path.exists(results_path): files_list = os.listdir(results_path) -- cgit 1.2.3-korg