ilanap | 637206b | 2018-02-04 17:06:22 +0200 | [diff] [blame] | 1 | Feature: Tosca Validation Flow |
| 2 | |
| 3 | Background: Init |
| 4 | Given I want to create a VLM |
eleonorali | 3437fc9 | 2018-02-18 15:14:46 +0200 | [diff] [blame^] | 5 | Given I want to set all Togglz to be "true" |
ilanap | 637206b | 2018-02-04 17:06:22 +0200 | [diff] [blame] | 6 | |
| 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 |
eleonorali | 87b672d | 2018-02-11 16:06:15 +0200 | [diff] [blame] | 22 | |
eleonorali | 3437fc9 | 2018-02-18 15:14:46 +0200 | [diff] [blame^] | 23 | Scenario: Validate Input parameter - annotation was added |
| 24 | |
eleonorali | 87b672d | 2018-02-11 16:06:15 +0200 | [diff] [blame] | 25 | 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" |
eleonorali | 2f7a38f | 2018-02-13 14:39:39 +0200 | [diff] [blame] | 38 | Then I want to check property "topology_template.inputs.pcm_flavor_name.annotations.source.properties.source_type" for value "HEAT" |
eleonorali | 87b672d | 2018-02-11 16:06:15 +0200 | [diff] [blame] | 39 | 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 | |
eleonorali | 87b672d | 2018-02-11 16:06:15 +0200 | [diff] [blame] | 44 | Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.type" for value "org.openecomp.annotations.Source" |
eleonorali | 2f7a38f | 2018-02-13 14:39:39 +0200 | [diff] [blame] | 45 | Then I want to check property "topology_template.inputs.sm_server_names.annotations.source.properties.source_type" for value "HEAT" |
eleonorali | 87b672d | 2018-02-11 16:06:15 +0200 | [diff] [blame] | 46 | 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" |
eleonorali | 2f7a38f | 2018-02-13 14:39:39 +0200 | [diff] [blame] | 51 | Then I want to check property "topology_template.inputs.dummy_net_netmask_1.annotations.source.properties.source_type" for value "HEAT" |
eleonorali | 87b672d | 2018-02-11 16:06:15 +0200 | [diff] [blame] | 52 | 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 | |
eleonorali | 3437fc9 | 2018-02-18 15:14:46 +0200 | [diff] [blame^] | 56 | 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 |
eleonorali | 2f7a38f | 2018-02-13 14:39:39 +0200 | [diff] [blame] | 72 | 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 | |
eleonorali | 87b672d | 2018-02-11 16:06:15 +0200 | [diff] [blame] | 75 | 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 |
eleonorali | 3437fc9 | 2018-02-18 15:14:46 +0200 | [diff] [blame^] | 79 | Then I want to check property "topology_template.inputs.sm_server_names.annotations" does not exist |
eleonorali | 87b672d | 2018-02-11 16:06:15 +0200 | [diff] [blame] | 80 | |
| 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 |