Functional tests for auto resource creation

Change-Id: I2f8cde25992a33195b9bb57690bcef78b38caa9a
Closes-Bug: #1563082
This commit is contained in:
Bharath Thiruveedula
2016-04-03 00:51:08 +05:30
parent e6d787ba2a
commit 406cc781ee
4 changed files with 256 additions and 0 deletions

View File

@@ -0,0 +1,68 @@
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: Demo example
metadata:
template_name: sample-tosca-vnfd
topology_template:
node_templates:
VDU1_flavor_func:
type: tosca.nodes.nfv.VDU.Tacker
capabilities:
nfv_compute:
properties:
num_cpus: 1
disk_size: 1 GB
mem_size: 512 MB
properties:
image: cirros-0.3.4-x86_64-uec
availability_zone: nova
mgmt_driver: noop
config: |
param0: key1
param1: key2
CP1:
type: tosca.nodes.nfv.CP.Tacker
properties:
management: true
requirements:
- virtualLink:
node: VL1
- virtualBinding:
node: VDU1_flavor_func
CP2:
type: tosca.nodes.nfv.CP.Tacker
requirements:
- virtualLink:
node: VL2
- virtualBinding:
node: VDU1_flavor_func
CP3:
type: tosca.nodes.nfv.CP.Tacker
requirements:
- virtualLink:
node: VL3
- virtualBinding:
node: VDU1_flavor_func
VL1:
type: tosca.nodes.nfv.VL
properties:
network_name: net_mgmt
vendor: Tacker
VL2:
type: tosca.nodes.nfv.VL
properties:
network_name: net0
vendor: Tacker
VL3:
type: tosca.nodes.nfv.VL
properties:
network_name: net1
vendor: Tacker

View File

@@ -0,0 +1,71 @@
tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: Demo example with auto image creation
metadata:
template_name: sample-tosca-vnfd-image
topology_template:
node_templates:
VDU1_image_func:
type: tosca.nodes.nfv.VDU.Tacker
properties:
flavor: m1.tiny
availability_zone: nova
mgmt_driver: noop
config: |
param0: key1
param1: key2
artifacts:
VNFImage_image_func:
type: tosca.artifacts.Deployment.Image.VM
file: http://download.cirros-cloud.net/0.3.4/cirros-0.3.4-x86_64-uec.tar.gz
CP1:
type: tosca.nodes.nfv.CP.Tacker
properties:
management: true
anti_spoofing_protection: false
requirements:
- virtualLink:
node: VL1
- virtualBinding:
node: VDU1_image_func
CP2:
type: tosca.nodes.nfv.CP.Tacker
properties:
anti_spoofing_protection: false
requirements:
- virtualLink:
node: VL2
- virtualBinding:
node: VDU1_image_func
CP3:
type: tosca.nodes.nfv.CP.Tacker
properties:
anti_spoofing_protection: false
requirements:
- virtualLink:
node: VL3
- virtualBinding:
node: VDU1_image_func
VL1:
type: tosca.nodes.nfv.VL
properties:
network_name: net_mgmt
vendor: Tacker
VL2:
type: tosca.nodes.nfv.VL
properties:
network_name: net0
vendor: Tacker
VL3:
type: tosca.nodes.nfv.VL
properties:
network_name: net1
vendor: Tacker