[VVP] adding list support for non-server-name uniqueness
[vvp/validation-scripts.git] / ice_validator / tests / fixtures / test_non_server_name / pass / pass0.yaml
index ff96331..267d0b2 100644 (file)
@@ -2,7 +2,7 @@
 # ============LICENSE_START====================================================
 # org.onap.vvp/validation-scripts
 # ===================================================================
-# Copyright © 2017 AT&T Intellectual Property. All rights reserved.
+# Copyright © 2019 AT&T Intellectual Property. All rights reserved.
 # ===================================================================
 #
 # Unless otherwise specified, all software contained herein is licensed
@@ -35,9 +35,8 @@
 #
 # ============LICENSE_END============================================
 #
-# ECOMP is a trademark and service mark of AT&T Intellectual Property.
 #
-# VERSION: '1.0.0'
+# VERSION: '1.2.0'
 
 ---
 parameters:
@@ -53,15 +52,37 @@ parameters:
 
 resources:
 
+  testr0:
+    type: testr
+    properties:
+      name:
+        str_replace:
+          template: vnfname_param
+          params:
+            vnfname: { get_param: vnf_name }
+            param: { get_param: [params, 0]}
+
+  testr1:
+    type: testr
+    properties:
+      name:
+        str_replace:
+          template: vnfname_param
+          params:
+            vnfname: { get_param: vnf_name }
+            param: { get_param: [params, 1]}
+
   vm_typeX_0_bialy_port_2:
     type: OS::Neutron::Port
     properties:
       name:
         str_replace:
-          template: mynameisok_port2
+          template: mynameisok_myindex
           params:
             mynameisok:
               get_param: vnf_name
+            myindex:
+              get_param: 0
       network: { get_param: int_intranet_net_name }
       fixed_ips:
         - ip_address: { get_param: lb_1_int_intranet_floating_ip }
@@ -81,10 +102,12 @@ resources:
     properties:
       name:
         str_replace:
-          template: mynameisok_port2
+          template: mynameisok_myindex
           params:
             mynameisok:
               get_param: vnf_name
+            myindex:
+              get_param: 1
       network: { get_param: int_intranet_net_id }
       fixed_ips:
         - ip_address: { get_param: lb_2_int_intranet_floating_v6_ip }