blob: 6e09c27104f5d9288580279b4292e8014281fda8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
---
{% 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_cacert = '' %}
{% if os_insecure == 'True' %}
{% set os_cacert = ' -e OS_CACERT=False ' %}
{% endif %}
yardstick:
image_name: opnfv/yardstick
docker_tag: opnfv-5.1.0
opts: '-id --privileged=true'
envs: {{os_cacert}}
config:
dir: '/home/opnfv/userconfig'
pre_condition:
- 'echo this is pre_condition'
cmds:
- "cd /home/opnfv/repos/yardstick && source /etc/yardstick/openstack.creds &&
yardstick task start tests/opnfv/test_cases/{{validate_testcase}}.yaml
--output-file /tmp/yardstick/{{testcase}}.out
--task-args '{'file': '/home/opnfv/userconfig/pre_config/pod.yaml',
'attack_host': {{attack_host}},
'attack_process': {{attack_process}}}'"
post_condition:
- 'echo this is post_condition'
result:
dir: '/tmp/yardstick'
file_path: 'yardstick.log'
openrc: '/etc/yardstick/openstack.creds'
copy_file_in_container:
-
src_file: 'pre_config/id_rsa'
dest_file: '/root/.ssh/id_rsa'
|