diff options
author | Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com> | 2015-10-29 16:16:36 +0100 |
---|---|---|
committer | Jörgen Karlsson <jorgen.w.karlsson@ericsson.com> | 2015-11-04 19:04:51 +0000 |
commit | 7209b9b3f9aedaba4ed1ae91c78641a29d84ba0c (patch) | |
tree | 92d7138f328cebeb2e587f48a6f9f3efe77dde8d /yardstick/dispatcher | |
parent | be4f044fcf1cddea84bb5786546a3387112dc2fc (diff) |
Docker container for Yardstick CI part 2
Added test suit selection and an option to use
the HTTP Result API.
Part 1: https://gerrit.opnfv.org/gerrit/#/c/2201/
Change-Id: I1c25d07e46cd44e25f448706ff2dfc3b31cd7208
JIRA:-
Signed-off-by: Jo¶rgen Karlsson <jorgen.w.karlsson@ericsson.com>
Diffstat (limited to 'yardstick/dispatcher')
-rw-r--r-- | yardstick/dispatcher/http.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/yardstick/dispatcher/http.py b/yardstick/dispatcher/http.py index af9ace469..de29588e2 100644 --- a/yardstick/dispatcher/http.py +++ b/yardstick/dispatcher/http.py @@ -7,6 +7,7 @@ # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## +import os import json import logging import requests @@ -45,13 +46,12 @@ class HttpDispatcher(DispatchBase): self.timeout = CONF.dispatcher_http.timeout self.target = CONF.dispatcher_http.target self.raw_result = [] - # TODO set pod_name, installer, version based on pod info self.result = { "project_name": "yardstick", "description": "yardstick test cases result", - "pod_name": "opnfv-jump-2", - "installer": "compass", - "version": "Brahmaputra-dev" + "pod_name": os.environ.get('POD_NAME', 'unknown'), + "installer": os.environ.get('INSTALLER_TYPE', 'unknown'), + "version": os.environ.get('YARDSTICK_VERSION', 'unknown') } def record_result_data(self, data): |