talio | f2ea4a5 | 2018-04-12 13:13:24 +0300 | [diff] [blame] | 1 | Feature: Example Tosca Validation Flow |
ilanap | 637206b | 2018-02-04 17:06:22 +0200 | [diff] [blame] | 2 | |
| 3 | Background: Init |
| 4 | Given I want to create a VLM |
siddharth0905 | c0b0f61 | 2019-01-24 14:01:46 +0530 | [diff] [blame^] | 5 | Then I want to submit this VLM |
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 | 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" |