blob: 6915e7b374a426012146b28b68f1d28dc34a29d5 [file] [log] [blame]
ilanap637206b2018-02-04 17:06:22 +02001Feature: Tosca Validation Flow
2
3 Background: Init
4 Given I want to create a VLM
5
6 Scenario: Full - Create and submit VSP Network Package and Create VF
7 When I want to create a VSP with onboarding type "NetworkPackage"
8
9 Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/BASE_MUX.zip"
10 And I want to process the NetworkPackage file for this VSP
11
12 Then I want to commit this Item
13 And I want to submit this VSP
14 And I want to package this VSP
15
16 Then I want to make sure this Item has status "Certified"
17
18 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
19
20 Then I want to create a VF for this Item
eleonorali87b672d2018-02-11 16:06:15 +020021
22 Scenario: Full - Input parameter annotation validation.
23 When I want to create a VSP with onboarding type "NetworkPackage"
24
25 Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/inputsForNestedHeat.zip"
26 And I want to process the NetworkPackage file for this VSP
27
28 Then I want to commit this Item
29 And I want to submit this VSP
30 And I want to package this VSP
31
32 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
33 When I want to load the yaml content of the entry "Definitions/MainServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
34
35 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.type" for value "org.openecomp.annotations.Source"
eleonorali2f7a38f2018-02-13 14:39:39 +020036 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.source_type" for value "HEAT"
eleonorali87b672d2018-02-11 16:06:15 +020037 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.vf_module_label" to have length 2
38 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.vf_module_label[0]" for value "main-heat2"
39 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.vf_module_label[1]" for value "main-heat1"
40 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.param_name" for value "pcm_flavor_name"
41
eleonorali87b672d2018-02-11 16:06:15 +020042 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.type" for value "org.openecomp.annotations.Source"
eleonorali2f7a38f2018-02-13 14:39:39 +020043 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.source_type" for value "HEAT"
eleonorali87b672d2018-02-11 16:06:15 +020044 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.vf_module_label" to have length 1
45 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.vf_module_label[0]" for value "main-heat1"
46 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.param_name" for value "sm_server_names"
47
48 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.type" for value "org.openecomp.annotations.Source"
eleonorali2f7a38f2018-02-13 14:39:39 +020049 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.source_type" for value "HEAT"
eleonorali87b672d2018-02-11 16:06:15 +020050 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.vf_module_label" to have length 1
51 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.vf_module_label[0]" for value "main-heat2"
52 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.param_name" for value "dummy_net_netmask_1"
53
eleonorali2f7a38f2018-02-13 14:39:39 +020054 Then I want to check property "topology_template.inputs.OS::stack_name" exists
55 Then I want to check property "topology_template.inputs.OS::stack_name.annotations" does not exist
56
eleonorali87b672d2018-02-11 16:06:15 +020057 When I want to load the yaml content of the entry "Definitions/nested-pcm_v0.1ServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
58 Then I want to check property "topology_template.inputs.port_pcm_port_0_network_role.annotations" does not exist
59 Then I want to check property "topology_template.inputs.availabilityzone_name.annotations" does not exist
60 Then I want to check property "topology_template.inputs.pcm_server_name.annotations" does not exist
61
62 When I want to load the yaml content of the entry "Definitions/nested-pcm_v0.2ServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
63 Then I want to check property "topology_template.inputs.port_pcm_port_13_mac_requirements.annotations" does not exist
64 Then I want to check property "topology_template.inputs.availabilityzone_name.annotations" does not exist
65 Then I want to check property "topology_template.inputs.pcm_server_name.annotations" does not exist
66
67 When I want to load the yaml content of the entry "Definitions/Nested_computeServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
68 Then I want to check property "topology_template.inputs.compute_compute_user_data_format.annotations" does not exist
69 Then I want to check property "topology_template.inputs.vm_image_name.annotations" does not exist
70 Then I want to check property "topology_template.inputs.compute_compute_name.annotations" does not exist
71
72 Then I want to create a VF for this Item