blob: b11227f52d14c1901a0929007811d24f97a30823 [file] [log] [blame]
taliof2ea4a52018-04-12 13:13:24 +03001Feature: Example Tosca Validation Flow
ilanap637206b2018-02-04 17:06:22 +02002
3 Background: Init
4 Given I want to create a VLM
siddharth0905c0b0f612019-01-24 14:01:46 +05305 Then I want to submit this VLM
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 And I want to compare the content of the entry "Artifacts/CB_BASE.yaml" in the zip "resources/downloads/VSPPackage.zip" with file "resources/yaml/CB_BASE.yaml"
21
22 Then I want to create a VF for this Item
23
24 Scenario: Full - Same flow for different HEAT file
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/NEW_NC_with_manifest.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 Then I want to create a VF for this Item
36
37 Scenario: Test Validation Error
38 When I want to create a VSP with onboarding type "NetworkPackage"
39
40 Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/errorHeat.zip"
41 And I want to process the NetworkPackage file for this VSP
42 And I want to print the context data
43
44 Then I want to check property "errors['first.env'][0].level" for value "ERROR"
45 Then I want to check property "errors['first.env'][0].message" for value "ERROR: [YML1]: Invalid YAML format Problem - [empty yaml]"
46
47 Scenario: yaml to json
48 When I want to load the yaml content of the entry "CB_BASE.yaml" in the zip "resources/uploads/BASE_MUX.zip" to context
49 Then I want to check property "parameters.vnf_name.description" for value "Unique name for this VF instance"