blob: 2757381d9104e131170f9b01b9967706219dbe28 [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"
36 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.vf_module_label" to have length 2
37 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.vf_module_label[0]" for value "main-heat2"
38 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.vf_module_label[1]" for value "main-heat1"
39 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.param_name" for value "pcm_flavor_name"
40
41
42 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.type" for value "org.openecomp.annotations.Source"
43 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.vf_module_label" to have length 1
44 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.vf_module_label[0]" for value "main-heat1"
45 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.param_name" for value "sm_server_names"
46
47 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.type" for value "org.openecomp.annotations.Source"
48 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.vf_module_label" to have length 1
49 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.vf_module_label[0]" for value "main-heat2"
50 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.param_name" for value "dummy_net_netmask_1"
51
52 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
53 Then I want to check property "topology_template.inputs.port_pcm_port_0_network_role.annotations" does not exist
54 Then I want to check property "topology_template.inputs.availabilityzone_name.annotations" does not exist
55 Then I want to check property "topology_template.inputs.pcm_server_name.annotations" does not exist
56
57 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
58 Then I want to check property "topology_template.inputs.port_pcm_port_13_mac_requirements.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_computeServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
63 Then I want to check property "topology_template.inputs.compute_compute_user_data_format.annotations" does not exist
64 Then I want to check property "topology_template.inputs.vm_image_name.annotations" does not exist
65 Then I want to check property "topology_template.inputs.compute_compute_name.annotations" does not exist
66
67 Then I want to create a VF for this Item