blob: df1699cf9fe656b37c9131919094d77c35bc3219 [file] [log] [blame]
katy.rotman0f75bea2018-02-26 11:48:50 +02001Feature: Tosca Validation 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: 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: 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 """