--- {% 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 = ' -e OS_VERIFY= ' %} {% endif %} yardstick: image_name: opnfv/yardstick docker_tag: stable opts: '-id --privileged=true' envs: "{{os_verify}} -e YARDSTICK_BRANCH=fraser" 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' openrc: '/etc/yardstick/openstack.creds'