summaryrefslogtreecommitdiffstats
path: root/etc/conf/yardstick_config.yml
diff options
context:
space:
mode:
Diffstat (limited to 'etc/conf/yardstick_config.yml')
-rw-r--r--etc/conf/yardstick_config.yml64
1 files changed, 47 insertions, 17 deletions
diff --git a/etc/conf/yardstick_config.yml b/etc/conf/yardstick_config.yml
index 1b924d85..3c4273f8 100644
--- a/etc/conf/yardstick_config.yml
+++ b/etc/conf/yardstick_config.yml
@@ -1,34 +1,64 @@
+##############################################################################
+# Copyright (c) 2019 opnfv.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+
---
{% set attack_host = attack_host or '' %}
{% set attack_process = attack_process or '' %}
{% set validate_testcase = validate_testcase or '' %}
{% set testcase = testcase or '' %}
+{% set os_insecure = os_insecure or 'False' %}
+{% set os_verify = '' %}
+{% if os_insecure == 'True' %}
+ {% set os_verify = 'OS_VERIFY=' %}
+{% endif %}
+{% set dovetail_home = dovetail_home or '' %}
+{% set debug = debug or 'false' %}
+{% set build_tag = build_tag or '' %}
+{% set cacert_volume = '' %}
+{% if cacert %}
+ {% set cacert_volume = 'source=' + cacert + ',target=' + cacert %}
+{% endif %}
+{% set openrc_file = '/etc/yardstick/openstack.creds' %}
+{% set pod_file = '/etc/yardstick/pod.yaml' %}
+{% set result_dir = '/tmp/yardstick' %}
yardstick:
image_name: opnfv/yardstick
- docker_tag: opnfv-5.1.0
- opts: '-id --privileged=true'
- config:
- dir: '/home/opnfv/userconfig'
+ docker_tag: opnfv-8.0.0
+ opts:
+ detach: true
+ stdin_open: true
+ privileged: true
+ shell: '/bin/bash'
+ envs:
+ - {{os_verify}}
+ - 'YARDSTICK_BRANCH=fraser'
+ - 'CI_DEBUG={{debug}}'
+ - 'BUILD_TAG={{build_tag}}-{{testcase}}"'
+ volumes:
+ - '{{dovetail_home}}/images:/home/opnfv/images'
+ - '{{dovetail_home}}/results:{{result_dir}}'
+ mounts:
+ - 'source={{dovetail_home}}/pre_config,target={{dovetail_home}}/pre_config'
+ - 'source={{dovetail_home}}/pre_config/env_config.sh,target={{openrc_file}}'
+ - 'source={{dovetail_home}}/pre_config/pod.yaml,target={{pod_file}}'
+ - {{cacert_volume}}
pre_condition:
- 'echo this is pre_condition'
cmds:
- - 'mkdir -p /home/opnfv/yardstick/results/'
- - "cd /home/opnfv/repos/yardstick && source /etc/yardstick/openstack.creds &&
+ - "cd /home/opnfv/repos/yardstick && source {{openrc_file}} &&
yardstick task start tests/opnfv/test_cases/{{validate_testcase}}.yaml
- --output-file /home/opnfv/yardstick/results/{{testcase}}.out
- --task-args '{'file': '/home/opnfv/userconfig/pre_config/pod.yaml',
+ --output-file {{result_dir}}/{{testcase}}.out
+ --task-args '{'file': '{{pod_file}}',
'attack_host': {{attack_host}},
'attack_process': {{attack_process}}}'"
post_condition:
- 'echo this is post_condition'
- result:
- dir: '/home/opnfv/yardstick/results'
- log: '/tmp/yardstick'
- file_path: 'yardstick.log'
- key_path: '/root/.ssh/id_rsa'
- openrc: '/etc/yardstick/openstack.creds'
- yard_conf:
- src_file: '/home/opnfv/repos/yardstick/etc/yardstick/yardstick.conf.sample'
- dest_file: '/etc/yardstick/yardstick.conf'
+ openrc: {{openrc_file}}