summaryrefslogtreecommitdiffstats
path: root/etc/conf/onap-vtp_config.yml
blob: 72ebeab236c13ff0ceb77717c09e47f425490f35 (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
---

{% set validate_testcase = validate_testcase or '' %}
{% set testcase = testcase or '' %}
{% set build_tag = build_tag or '' %}
{% set csar_file = csar_file or '' %}
{% set host_url = host_url or '' %}
{% set result_dir = '/tmp/onap' %}

onap-vtp:
  image_name: nexus3.onap.org:10001/onap/cli
  docker_tag: 2.0.5
  opts: '-td '
  shell: '/bin/bash'
  envs: '-e OPEN_CLI_MODE=daemon -e BUILD_TAG={{build_tag}}-{{testcase}}
         -e OPEN_CLI_PRODUCT_IN_USE=onap-vtp'
  volumes:
    - '-v {{dovetail_home}}/pre_config/{{csar_file}}:/{{csar_file}}'
    - '-v {{dovetail_home}}/results:{{result_dir}}'
  pre_condition:
    - 'echo this is pre_condition'
  cmds:
    - "oclip vnftest-run --name {{validate_testcase}} --param csar=/{{csar_file}}
       --host-url {{host_url}} --format json > {{result_dir}}/{{testcase}}.out"
  post_condition:
    - 'echo this is post_condition'