summaryrefslogtreecommitdiffstats
path: root/etc/conf/onap-vtp_config.yml
diff options
context:
space:
mode:
Diffstat (limited to 'etc/conf/onap-vtp_config.yml')
-rw-r--r--etc/conf/onap-vtp_config.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/etc/conf/onap-vtp_config.yml b/etc/conf/onap-vtp_config.yml
new file mode 100644
index 00000000..2cfc96fc
--- /dev/null
+++ b/etc/conf/onap-vtp_config.yml
@@ -0,0 +1,39 @@
+##############################################################################
+# 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 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:
+ detach: true
+ tty: true
+ shell: '/bin/bash'
+ envs:
+ - 'OPEN_CLI_MODE=daemon'
+ - 'BUILD_TAG={{build_tag}}-{{testcase}}'
+ - 'OPEN_CLI_PRODUCT_IN_USE=onap-vtp'
+ volumes:
+ - '{{dovetail_home}}/pre_config/{{csar_file}}:/{{csar_file}}'
+ - '{{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'