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 |
| 5 | |
| 6 | Scenario: Full - Create and submit VSP Network Package and Create VF |
| 7 | When I want to create a VSP with onboarding type "NetworkPackage" |
| 8 | |
| 9 | Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/BASE_MUX.zip" |
| 10 | And I want to process the NetworkPackage file for this VSP |
| 11 | |
| 12 | Then I want to commit this Item |
| 13 | And I want to submit this VSP |
| 14 | And I want to package this VSP |
| 15 | |
| 16 | Then I want to make sure this Item has status "Certified" |
| 17 | |
| 18 | Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip" |
| 19 | 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" |
| 20 | |
| 21 | Then I want to create a VF for this Item |
| 22 | |
| 23 | Scenario: Full - Same flow for different HEAT file |
| 24 | When I want to create a VSP with onboarding type "NetworkPackage" |
| 25 | |
| 26 | Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/NEW_NC_with_manifest.zip" |
| 27 | And I want to process the NetworkPackage file for this VSP |
| 28 | |
| 29 | Then I want to commit this Item |
| 30 | And I want to submit this VSP |
| 31 | And I want to package this VSP |
| 32 | |
| 33 | Then I want to get the package for this Item to path "resources/downloads/VSPPackage.zip" |
| 34 | Then I want to create a VF for this Item |
| 35 | |
| 36 | Scenario: Test Validation Error |
| 37 | When I want to create a VSP with onboarding type "NetworkPackage" |
| 38 | |
| 39 | Then I want to upload a NetworkPackage for this VSP from path "resources/uploads/errorHeat.zip" |
| 40 | And I want to process the NetworkPackage file for this VSP |
| 41 | And I want to print the context data |
| 42 | |
| 43 | Then I want to check property "errors['first.env'][0].level" for value "ERROR" |
| 44 | Then I want to check property "errors['first.env'][0].message" for value "ERROR: [YML1]: Invalid YAML format Problem - [empty yaml]" |
| 45 | |
| 46 | Scenario: yaml to json |
| 47 | When I want to load the yaml content of the entry "CB_BASE.yaml" in the zip "resources/uploads/BASE_MUX.zip" to context |
| 48 | Then I want to check property "parameters.vnf_name.description" for value "Unique name for this VF instance" |