aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-bdd/resources/yaml
diff options
context:
space:
mode:
authorilanap <ilanap@amdocs.com>2018-02-04 17:06:22 +0200
committerAvi Gaffa <avi.gaffa@amdocs.com>2018-02-08 09:30:17 +0000
commit637206b5e05910cc3bdd64bbd35d296ce282524c (patch)
treecec62c6939197229fd69fde997f9ed8d27d654e4 /openecomp-bdd/resources/yaml
parent20074c4e75e926977b25d57bebf841f44ada12a0 (diff)
Adding BDD cucumber testing component
Change-Id: I4fd7eb798cbc7cad85562453fb0a6f74fd12ff5b Issue-ID: SDC-990 Signed-off-by: ilanap <ilanap@amdocs.com>
Diffstat (limited to 'openecomp-bdd/resources/yaml')
-rw-r--r--openecomp-bdd/resources/yaml/CB_BASE.yaml91
-rw-r--r--openecomp-bdd/resources/yaml/Nested_FSB1ServiceTemplate.yaml306
2 files changed, 397 insertions, 0 deletions
diff --git a/openecomp-bdd/resources/yaml/CB_BASE.yaml b/openecomp-bdd/resources/yaml/CB_BASE.yaml
new file mode 100644
index 0000000000..4aef40b270
--- /dev/null
+++ b/openecomp-bdd/resources/yaml/CB_BASE.yaml
@@ -0,0 +1,91 @@
+heat_template_version: 2013-05-23
+
+description: >
+ BASE TEMPLATE
+
+parameters:
+ vnf_name:
+ type: string
+ description: Unique name for this VF instance
+
+ vnf_id:
+ type: string
+ description: Unique ID for this VF instance
+
+ network_in_cidr:
+ type: string
+ description: IN network address (CIDR notation)
+
+ network_out_cidr:
+ type: string
+ description: MUX out network address (CIDR notation)
+
+ network_in_gw_ip:
+ type: string
+ description: IN network gw address
+
+ network_out_gw_ip:
+ type: string
+ description: MUX out network gw address
+
+resources:
+
+ random-str:
+ type: OS::Heat::RandomString
+ properties:
+ length: 4
+
+ CB_IN_Net:
+ type: OS::Neutron::Net
+ properties:
+ name:
+ str_replace:
+ template: CB_IN_Net_rand
+ params:
+ rand: { get_resource: random-str }
+
+ CB_IN_Subnet:
+ type: OS::Neutron::Subnet
+ properties:
+ name:
+ str_replace:
+ template: CB_IN_Net_rand
+ params:
+ rand: { get_resource: random-str }
+ network_id: { get_resource: CB_IN_Net }
+ cidr: { get_param: network_in_cidr }
+ gateway_ip: { get_param: network_in_gw_ip }
+
+ CB_OUT_Net:
+ type: OS::Neutron::Net
+ properties:
+ name:
+ str_replace:
+ template: CB_OUT_Net_rand
+ params:
+ rand: { get_resource: random-str }
+
+ CB_OUT_Subnet:
+ type: OS::Neutron::Subnet
+ properties:
+ network_id: { get_resource: CB_OUT_Net }
+ cidr: { get_param: network_out_cidr }
+ gateway_ip: { get_param: network_out_gw_ip }
+
+outputs:
+
+ CB_IN_Net:
+ description: ID of the customer facing network
+ value: { get_resource: CB_IN_Net }
+
+ CB_IN_Subnet:
+ description: ID of the customer facing subnet
+ value: { get_resource: CB_IN_Subnet }
+
+ CB_OUT_Net:
+ description: ID of the Internet Facing network
+ value: { get_resource: CB_OUT_Net }
+
+ CB_OUT_Subnet:
+ description: ID of the Internet Facing subnet
+ value: { get_resource: CB_OUT_Subnet }
diff --git a/openecomp-bdd/resources/yaml/Nested_FSB1ServiceTemplate.yaml b/openecomp-bdd/resources/yaml/Nested_FSB1ServiceTemplate.yaml
new file mode 100644
index 0000000000..b41b5ea5e2
--- /dev/null
+++ b/openecomp-bdd/resources/yaml/Nested_FSB1ServiceTemplate.yaml
@@ -0,0 +1,306 @@
+tosca_definitions_version: tosca_simple_yaml_1_0_0
+metadata:
+ template_name: Nested_FSB1
+imports:
+- openecomp_heat_index:
+ file: openecomp-heat/_index.yml
+- GlobalSubstitutionTypes:
+ file: GlobalSubstitutionTypesServiceTemplate.yaml
+- openecomp_index:
+ file: openecomp/_index.yml
+node_types:
+ org.openecomp.resource.vfc.compute.nodes.heat.FSB1:
+ derived_from: org.openecomp.resource.vfc.nodes.heat.nova.Server
+topology_template:
+ inputs:
+ port_FSB1_OAM_subnetpoolid:
+ type: string
+ required: true
+ compute_FSB1_availability_zone:
+ type: list
+ required: true
+ entry_schema:
+ type: string
+ index_value:
+ type: integer
+ description: Index value of this substitution service template runtime instance
+ required: false
+ default: 0
+ constraints:
+ - greater_or_equal: 0
+ port_FSB1_OAM_order:
+ type: integer
+ required: true
+ port_FSB1_OAM_exCP_naming:
+ type: org.openecomp.datatypes.Naming
+ required: true
+ port_FSB1_OAM_ip_requirements:
+ type: list
+ required: true
+ entry_schema:
+ type: org.openecomp.datatypes.network.IpRequirements
+ vm_flavor_name:
+ type: string
+ required: true
+ port_FSB1_OAM_network:
+ type: list
+ required: true
+ entry_schema:
+ type: string
+ port_FSB1_OAM_network_role:
+ type: string
+ required: true
+ port_FSB1_OAM_vlan_requirements:
+ type: list
+ required: true
+ entry_schema:
+ type: org.openecomp.datatypes.network.VlanRequirements
+ port_FSB1_OAM_network_role_tag:
+ type: string
+ required: true
+ compute_FSB1_name:
+ type: list
+ required: true
+ entry_schema:
+ type: string
+ port_FSB1_OAM_fixed_ips:
+ type: list
+ required: true
+ entry_schema:
+ type: org.openecomp.datatypes.heat.neutron.port.FixedIps
+ port_FSB1_OAM_mac_requirements:
+ type: org.openecomp.datatypes.network.MacRequirements
+ required: true
+ node_templates:
+ FSB1_FSB1_OAM:
+ type: org.openecomp.resource.cp.v2.extNeutronCP
+ properties:
+ ip_requirements:
+ get_input: port_FSB1_OAM_ip_requirements
+ network_role:
+ get_input: port_FSB1_OAM_network_role
+ fixed_ips:
+ get_input:
+ - port_FSB1_OAM_fixed_ips
+ - index_value
+ subnetpoolid:
+ get_input: port_FSB1_OAM_subnetpoolid
+ mac_requirements:
+ get_input: port_FSB1_OAM_mac_requirements
+ exCP_naming:
+ get_input: port_FSB1_OAM_exCP_naming
+ vlan_requirements:
+ get_input: port_FSB1_OAM_vlan_requirements
+ network_role_tag:
+ get_input: port_FSB1_OAM_network_role_tag
+ order:
+ get_input: port_FSB1_OAM_order
+ network:
+ get_input:
+ - port_FSB1_OAM_network
+ - index_value
+ requirements:
+ - binding:
+ capability: tosca.capabilities.network.Bindable
+ node: FSB1
+ relationship: tosca.relationships.network.BindsTo
+ capabilities:
+ port_mirroring:
+ properties:
+ connection_point:
+ nf_type: ''
+ nfc_type: FSB1
+ network_role:
+ get_input: port_FSB1_OAM_network_role
+ pps_capacity: ''
+ FSB1:
+ type: org.openecomp.resource.vfc.compute.nodes.heat.FSB1
+ properties:
+ availability_zone:
+ get_input:
+ - compute_FSB1_availability_zone
+ - index_value
+ flavor:
+ get_input: vm_flavor_name
+ name:
+ get_input:
+ - compute_FSB1_name
+ - index_value
+ substitution_mappings:
+ node_type: org.openecomp.resource.abstract.nodes.FSB1
+ capabilities:
+ network.incoming.bytes.rate_FSB1_FSB1_OAM:
+ - FSB1_FSB1_OAM
+ - network.incoming.bytes.rate
+ network.outgoing.bytes_FSB1_FSB1_OAM:
+ - FSB1_FSB1_OAM
+ - network.outgoing.bytes
+ disk.capacity_FSB1:
+ - FSB1
+ - disk.capacity
+ disk.read.bytes.rate_FSB1:
+ - FSB1
+ - disk.read.bytes.rate
+ disk.device.latency_FSB1:
+ - FSB1
+ - disk.device.latency
+ disk.allocation_FSB1:
+ - FSB1
+ - disk.allocation
+ disk.read.bytes_FSB1:
+ - FSB1
+ - disk.read.bytes
+ disk.device.capacity_FSB1:
+ - FSB1
+ - disk.device.capacity
+ cpu_util_FSB1:
+ - FSB1
+ - cpu_util
+ disk.device.write.requests.rate_FSB1:
+ - FSB1
+ - disk.device.write.requests.rate
+ network.outgoing.bytes.rate_FSB1_FSB1_OAM:
+ - FSB1_FSB1_OAM
+ - network.outgoing.bytes.rate
+ disk.root.size_FSB1:
+ - FSB1
+ - disk.root.size
+ feature_FSB1:
+ - FSB1
+ - feature
+ forwarder_FSB1_FSB1_OAM:
+ - FSB1_FSB1_OAM
+ - forwarder
+ memory.resident_FSB1:
+ - FSB1
+ - memory.resident
+ network.incoming.packets.rate_FSB1_FSB1_OAM:
+ - FSB1_FSB1_OAM
+ - network.incoming.packets.rate
+ cpu_FSB1:
+ - FSB1
+ - cpu
+ disk.write.requests.rate_FSB1:
+ - FSB1
+ - disk.write.requests.rate
+ feature_FSB1_FSB1_OAM:
+ - FSB1_FSB1_OAM
+ - feature
+ instance_FSB1:
+ - FSB1
+ - instance
+ disk.device.read.bytes.rate_FSB1:
+ - FSB1
+ - disk.device.read.bytes.rate
+ cpu.delta_FSB1:
+ - FSB1
+ - cpu.delta
+ disk.write.bytes_FSB1:
+ - FSB1
+ - disk.write.bytes
+ disk.device.read.requests.rate_FSB1:
+ - FSB1
+ - disk.device.read.requests.rate
+ disk.device.read.requests_FSB1:
+ - FSB1
+ - disk.device.read.requests
+ disk.ephemeral.size_FSB1:
+ - FSB1
+ - disk.ephemeral.size
+ binding_FSB1:
+ - FSB1
+ - binding
+ disk.device.write.bytes_FSB1:
+ - FSB1
+ - disk.device.write.bytes
+ network.outgoing.packets.rate_FSB1_FSB1_OAM:
+ - FSB1_FSB1_OAM
+ - network.outgoing.packets.rate
+ binding_FSB1_FSB1_OAM:
+ - FSB1_FSB1_OAM
+ - binding
+ attachment_FSB1_FSB1_OAM:
+ - FSB1_FSB1_OAM
+ - attachment
+ network.incoming.bytes_FSB1_FSB1_OAM:
+ - FSB1_FSB1_OAM
+ - network.incoming.bytes
+ memory_FSB1:
+ - FSB1
+ - memory
+ network.incoming.packets_FSB1_FSB1_OAM:
+ - FSB1_FSB1_OAM
+ - network.incoming.packets
+ disk.device.read.bytes_FSB1:
+ - FSB1
+ - disk.device.read.bytes
+ disk.device.usage_FSB1:
+ - FSB1
+ - disk.device.usage
+ disk.write.bytes.rate_FSB1:
+ - FSB1
+ - disk.write.bytes.rate
+ scalable_FSB1:
+ - FSB1
+ - scalable
+ disk.usage_FSB1:
+ - FSB1
+ - disk.usage
+ network.outpoing.packets_FSB1_FSB1_OAM:
+ - FSB1_FSB1_OAM
+ - network.outpoing.packets
+ host_FSB1:
+ - FSB1
+ - host
+ disk.device.allocation_FSB1:
+ - FSB1
+ - disk.device.allocation
+ os_FSB1:
+ - FSB1
+ - os
+ vcpus_FSB1:
+ - FSB1
+ - vcpus
+ disk.write.requests_FSB1:
+ - FSB1
+ - disk.write.requests
+ disk.device.write.bytes.rate_FSB1:
+ - FSB1
+ - disk.device.write.bytes.rate
+ endpoint_FSB1:
+ - FSB1
+ - endpoint
+ disk.latency_FSB1:
+ - FSB1
+ - disk.latency
+ memory.usage_FSB1:
+ - FSB1
+ - memory.usage
+ disk.read.requests_FSB1:
+ - FSB1
+ - disk.read.requests
+ disk.device.write.requests_FSB1:
+ - FSB1
+ - disk.device.write.requests
+ disk.iops_FSB1:
+ - FSB1
+ - disk.iops
+ disk.device.iops_FSB1:
+ - FSB1
+ - disk.device.iops
+ port_mirroring_FSB1_FSB1_OAM:
+ - FSB1_FSB1_OAM
+ - port_mirroring
+ requirements:
+ link_FSB1_FSB1_OAM:
+ - FSB1_FSB1_OAM
+ - link
+ dependency_FSB1_FSB1_OAM:
+ - FSB1_FSB1_OAM
+ - dependency
+ dependency_FSB1:
+ - FSB1
+ - dependency
+ local_storage_FSB1:
+ - FSB1
+ - local_storage