blob: db5ac80923c8fd686c78fe0214773ce018bbdf59 [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
eleonorali3437fc92018-02-18 15:14:46 +02005 Given I want to set all Togglz to be "true"
ilanap637206b2018-02-04 17:06:22 +02006
7 Scenario: Full - Create and submit VSP Network Package and Create VF
8 When I want to create a VSP with onboarding type "NetworkPackage"
9
10 Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/BASE_MUX.zip"
11 And I want to process the NetworkPackage file for this VSP
12
13 Then I want to commit this Item
14 And I want to submit this VSP
15 And I want to package this VSP
16
17 Then I want to make sure this Item has status "Certified"
18
19 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
20
21 Then I want to create a VF for this Item
eleonorali87b672d2018-02-11 16:06:15 +020022
eleonorali3437fc92018-02-18 15:14:46 +020023 Scenario: Validate Input parameter - annotation was added
24
eleonorali87b672d2018-02-11 16:06:15 +020025 When I want to create a VSP with onboarding type "NetworkPackage"
26
27 Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/inputsForNestedHeat.zip"
28 And I want to process the NetworkPackage file for this VSP
29
30 Then I want to commit this Item
31 And I want to submit this VSP
32 And I want to package this VSP
33
34 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
35 When I want to load the yaml content of the entry "Definitions/MainServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
36
37 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 +020038 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 +020039 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.vf_module_label" to have length 2
40 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.vf_module_label[0]" for value "main-heat2"
41 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.vf_module_label[1]" for value "main-heat1"
42 Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.param_name" for value "pcm_flavor_name"
43
eleonorali87b672d2018-02-11 16:06:15 +020044 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 +020045 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 +020046 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.vf_module_label" to have length 1
47 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.vf_module_label[0]" for value "main-heat1"
48 Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.param_name" for value "sm_server_names"
49
50 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 +020051 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 +020052 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.vf_module_label" to have length 1
53 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.vf_module_label[0]" for value "main-heat2"
54 Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.param_name" for value "dummy_net_netmask_1"
55
eleonorali3437fc92018-02-18 15:14:46 +020056 Then I want to create a VF for this Item
57
58 Scenario: Validate Input parameter - annotation was not added
59
60 When I want to create a VSP with onboarding type "NetworkPackage"
61
62 Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/inputsForNestedHeat.zip"
63 And I want to process the NetworkPackage file for this VSP
64
65 Then I want to commit this Item
66 And I want to submit this VSP
67 And I want to package this VSP
68
69 Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
70
71 When I want to load the yaml content of the entry "Definitions/MainServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
eleonorali2f7a38f2018-02-13 14:39:39 +020072 Then I want to check property "topology_template.inputs.OS::stack_name" exists
73 Then I want to check property "topology_template.inputs.OS::stack_name.annotations" does not exist
74
eleonorali87b672d2018-02-11 16:06:15 +020075 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
76 Then I want to check property "topology_template.inputs.port_pcm_port_0_network_role.annotations" does not exist
77 Then I want to check property "topology_template.inputs.availabilityzone_name.annotations" does not exist
78 Then I want to check property "topology_template.inputs.pcm_server_name.annotations" does not exist
eleonorali3437fc92018-02-18 15:14:46 +020079 Then I want to check property "topology_template.inputs.sm_server_names.annotations" does not exist
eleonorali87b672d2018-02-11 16:06:15 +020080
81 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
82 Then I want to check property "topology_template.inputs.port_pcm_port_13_mac_requirements.annotations" does not exist
83 Then I want to check property "topology_template.inputs.availabilityzone_name.annotations" does not exist
84 Then I want to check property "topology_template.inputs.pcm_server_name.annotations" does not exist
85
86 When I want to load the yaml content of the entry "Definitions/Nested_computeServiceTemplate.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
87 Then I want to check property "topology_template.inputs.compute_compute_user_data_format.annotations" does not exist
88 Then I want to check property "topology_template.inputs.vm_image_name.annotations" does not exist
89 Then I want to check property "topology_template.inputs.compute_compute_name.annotations" does not exist
90
91 Then I want to create a VF for this Item