X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=heat%2FvFW_CNF_CDS%2Ftemplates%2Fhelm%2Fvsn%2Ftemplates%2Ftests%2Fping.yaml;fp=heat%2FvFW_CNF_CDS%2Ftemplates%2Fhelm%2Fvsn%2Ftemplates%2Ftests%2Fping.yaml;h=9b6a6d3eb51cc1bfc0075c4e997e9a7cfde82540;hb=547b3839f30166162dea2dc9d633e46e528c502a;hp=0000000000000000000000000000000000000000;hpb=660f9f9e9f4450f12e948b9601fa185af53a9006;p=demo.git diff --git a/heat/vFW_CNF_CDS/templates/helm/vsn/templates/tests/ping.yaml b/heat/vFW_CNF_CDS/templates/helm/vsn/templates/tests/ping.yaml new file mode 100644 index 00000000..9b6a6d3e --- /dev/null +++ b/heat/vFW_CNF_CDS/templates/helm/vsn/templates/tests/ping.yaml @@ -0,0 +1,44 @@ +--- +# Copyright © 2021 Samsung Electronics +# 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 +{{- if eq .Values.Tests.enabled "yes" }} +apiVersion: batch/v1 +kind: Job +metadata: + name: "{{ .Values.vsn_name_0 }}-test" + labels: + vnf-name: {{ .Values.vnf_name }} + vf-module-name: {{ .Values.vsn_name_0 }} + release: {{ .Release.Name }} + chart: {{ .Chart.Name }} + annotations: + "helm.sh/hook": test-success +spec: + completions: 1 + template: + metadata: + annotations: + k8s.v1.cni.cncf.io/networks: "{{ .Values.net_attachment_definition }}" + k8s.plugin.opnfv.org/nfn-network: | + { "type": "ovn4nfv", + "interface": [ + { + "name": {{ .Values.int_private2_net_id | quote }}, + "interface": "eth1" , + "defaultGateway": "false" + } + ] + } + spec: + restartPolicy: Never + containers: + - name: "ping-test-eth1" + image: busybox + command: + - /bin/sh + - -exc + - "ping -c {{ .Values.Tests.ping_count }} -I eth1 {{ .Values.vsn_int_private2_ip_0 }}" +{{- end -}}