2 # Copyright © 2021 Samsung Electronics
3 # All rights reserved. This program and the accompanying materials
4 # are made available under the terms of the Apache License, Version 2.0
5 # which accompanies this distribution, and is available at
6 # http://www.apache.org/licenses/LICENSE-2.0
7 {{- if eq .Values.Tests.enabled "yes" }}
11 name: "{{ .Values.vfw_name_0 }}-test"
13 vnf-name: {{ .Values.vnf_name }}
14 vf-module-name: {{ .Values.vfw_name_0 }}
15 release: {{ .Release.Name }}
16 chart: {{ .Chart.Name }}
18 "helm.sh/hook": test-success
24 k8s.v1.cni.cncf.io/networks: "{{ .Values.net_attachment_definition }}"
25 k8s.plugin.opnfv.org/nfn-network: |
29 "name": {{ .Values.int_private1_net_id | quote }},
31 "defaultGateway": "false"
34 "name": {{ .Values.int_private2_net_id | quote }},
36 "defaultGateway": "false"
43 - name: "ping-test-eth1"
48 - "ping -c {{ .Values.Tests.ping_count }} -I eth1 {{ .Values.vfw_int_private1_ip_0 }}"
49 - name: "ping-test-eth2"
54 - "ping -c {{ .Values.Tests.ping_count }} -I eth2 {{ .Values.vfw_int_private2_ip_0 }}"