Automate a testcase with parameterization with new tosca template.
sample template: tosca_definitions_version: tosca_simple_profile_for_nfv_1_0_0
description: VNF TOSCA template with input parameters
metadata: template_name: sample-tosca-vnfd
topology_template: inputs: image_name: type: string description: Image Name
flavor: type: string description: Flavor Information
zone: type: string description: Zone Information
network: type: string description: Zone Information
management: type: string description: Zone Information
pkt_in_network: type: string description: Zone Information
pkt_out_network: type: string description: Zone Information
vendor: type: string description: Zone Information
node_templates: VDU1: type: tosca.nodes.nfv.VDU.Tacker properties: image: { get_input: image_name} flavor: {get_input: flavor} availability_zone: { get_input: zone } mgmt_driver: noop config: | param0: key1 param1: key2
CP1: type: tosca.nodes.nfv.CP.Tacker properties: management: { get_input: management } anti_spoofing_protection: false requirements: - virtualLink: node: VL1 - virtualBinding: node: VDU1
CP2: type: tosca.nodes.nfv.CP.Tacker properties: anti_spoofing_protection: false requirements: - virtualLink: node: VL2 - virtualBinding: node: VDU1
CP3: type: tosca.nodes.nfv.CP.Tacker properties: anti_spoofing_protection: false requirements: - virtualLink: node: VL3 - virtualBinding: node: VDU1
VL1: type: tosca.nodes.nfv.VL properties: network_name: { get_input: network } vendor: {get_input: vendor}
VL2: type: tosca.nodes.nfv.VL properties: network_name: { get_input: pkt_in_network } vendor: {get_input: vendor}
VL3: type: tosca.nodes.nfv.VL properties: network_name: { get_input: pkt_out_network } vendor: {get_input: vendor}
Fix proposed to branch: master Review: https://review.openstack.org/332097
Fix proposed to branch: master Review: https://review.openstack.org/344512
Change abandoned by Santosh Kodicherla (<email address hidden>) on branch: master Review: https://review.openstack.org/332097 Reason: Duplicate
Reviewed: https://review.openstack.org/344512 Committed: https://git.openstack.org/cgit/openstack/tacker/commit/?id=86d848eacff225a89f2e80acd33e32e56b855553 Submitter: Jenkins Branch: master
commit 86d848eacff225a89f2e80acd33e32e56b855553 Author: OpenStack Proposal Bot <email address hidden> Date: Mon Jul 18 18:16:36 2016 +0000
Adding Tacker functional tests with parameterization using tosca template
Closes-bug: #1594599 Depends-On: I8f7c36333ae26a88f52fe06883a9bfe8efdcf731
Change-Id: I16339b9107bb45bca6afb933b8d74963a32e8510
This issue was fixed in the openstack/tacker 0.4.0 release.
Bug watches keep track of this bug in other bug trackers.
sample template: ns_version: tosca_simple_ profile_ for_nfv_ 1_0_0
tosca_definitio
description: VNF TOSCA template with input parameters
metadata:
template_name: sample-tosca-vnfd
topology_template:
inputs:
image_name:
type: string
description: Image Name
flavor:
type: string
description: Flavor Information
zone:
type: string
description: Zone Information
network:
type: string
description: Zone Information
management:
type: string
description: Zone Information
pkt_in_network:
type: string
description: Zone Information
pkt_ out_network:
type: string
description: Zone Information
vendor:
type: string
description: Zone Information
node_templates: nfv.VDU. Tacker
availability_ zone: { get_input: zone }
mgmt_driver: noop
VDU1:
type: tosca.nodes.
properties:
image: { get_input: image_name}
flavor: {get_input: flavor}
config: |
param0: key1
param1: key2
CP1: nfv.CP. Tacker
anti_spoofing_ protection: false
type: tosca.nodes.
properties:
management: { get_input: management }
requirements:
- virtualLink:
node: VL1
- virtualBinding:
node: VDU1
CP2: nfv.CP. Tacker
anti_spoofing_ protection: false
type: tosca.nodes.
properties:
requirements:
- virtualLink:
node: VL2
- virtualBinding:
node: VDU1
CP3: nfv.CP. Tacker
anti_spoofing_ protection: false
type: tosca.nodes.
properties:
requirements:
- virtualLink:
node: VL3
- virtualBinding:
node: VDU1
VL1:
network_ name: { get_input: network }
type: tosca.nodes.nfv.VL
properties:
vendor: {get_input: vendor}
VL2:
network_ name: { get_input: pkt_in_network }
type: tosca.nodes.nfv.VL
properties:
vendor: {get_input: vendor}
VL3:
network_ name: { get_input: pkt_out_network }
type: tosca.nodes.nfv.VL
properties:
vendor: {get_input: vendor}