3cf52f6527d0259457933cd1f862c3b103c44d7b
[sdc.git] / openecomp-bdd / features / TOSCA / VirtualMachineInterfaceValidationHeatResourceMissingProperties.feature
1 Feature: Tosca VMI Flow
2
3   Background: Init
4     Given I want to create a VLM
5     Given I want to set all Togglz to be "true"
6
7   Scenario: VirtualMachineInterface Validation Flow - Missing Refs Element Validation Error
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/refs_missing.zip"
11     And I want to process the NetworkPackage file for this VSP
12     And I want to print the context data
13
14     Then I want to check property "errors['nested.yml'][0].level" for value "WARNING"
15     Then I want to check property "errors['nested.yml'][0].message" for value:
16     """
17     WARNING: [VLAN2]: Parent port property virtual_machine_interface_refs is missing in VLAN Resource ID [template_Vlan_2]
18     """
19
20   Scenario: VirtualMachineInterface Validation Flow - Missing Tag Validation Error
21     When I want to create a VSP with onboarding type "NetworkPackage"
22
23     Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/tag_missing.zip"
24     And I want to process the NetworkPackage file for this VSP
25     And I want to print the context data
26
27     Then I want to check property "errors['nested.yml'][0].level" for value "WARNING"
28     Then I want to check property "errors['nested.yml'][0].message" for value:
29     """
30     WARNING: [VLAN2]: VLAN Tag property virtual_machine_interface_properties_sub_interface_vlan_tag is missing in VLAN Resource ID [template_Vlan_2]
31     """