ilanap | 637206b | 2018-02-04 17:06:22 +0200 | [diff] [blame] | 1 | Feature: VSP Example File |
| 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: Create and submit VSP Network Package |
| 8 | When I want to create a VSP with onboarding type "NetworkPackage" |
| 9 | Then I want to make sure this Item has status "Draft" |
| 10 | |
| 11 | When I want to upload a NetworkPackage for this VSP from path "resources/uploads/BASE_MUX.zip" |
| 12 | And I want to process the NetworkPackage file for this VSP |
| 13 | |
| 14 | Then I want to commit this Item |
| 15 | And I want to submit this VSP |
| 16 | And I want to package this VSP |
| 17 | |
| 18 | Then I want to make sure this Item has status "Certified" |
| 19 | When I want to get the package for this Item to path "resources/downloads/VSPPackage.zip" |
| 20 | Then 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 | When I want to load the yaml content of the entry "Artifacts/CB_BASE.yaml" in the zip "resources/downloads/VSPPackage.zip" to context |
| 22 | Then I want to check property "parameters.vnf_name.description" for value "Unique name for this VF instance" |
| 23 | When I want to load the json content of the entry "Artifacts/MANIFEST.json" in the zip "resources/downloads/VSPPackage.zip" to context |
| 24 | Then I want to check property "description" for value "for testing" |
| 25 | Scenario: Create VSP Manual |
| 26 | When I want to create a VSP with onboarding type "Manual" |
| 27 | Then I want to make sure this Item has status "Draft" |
| 28 | |
| 29 | When I want to create a VSP with onboarding type "Manual" |
| 30 | Then I want to get path "/vendor-software-products/{item.id}/versions/{item.versionId}" |
| 31 | |
| 32 | When I want to get path "/vendor-software-products/{item.id}/versions/{item.versionId}/components" |
| 33 | Then I want to check property "listCount" for value 0 |
| 34 | |
| 35 | When I want to add a component |
| 36 | Then I want to get path "/vendor-software-products/{item.id}/versions/{item.versionId}/components" |
| 37 | Then I want to check property "listCount" for value 1 |
| 38 | |
| 39 | Then I want the following to fail with error code "VSP_VFC_COUNT_EXCEED" |
| 40 | When I want to add a component |
| 41 | |
| 42 | Then I want to commit this Item |
| 43 | Then I want the following to fail |
| 44 | When I want to submit this VSP |
| 45 | |
| 46 | |
| 47 | Scenario: VSP Questionnaire Examples |
| 48 | Given I want to create a VSP with onboarding type "Manual" |
| 49 | |
| 50 | When I want to get the questionnaire for this item |
| 51 | |
| 52 | When I want to add a component |
| 53 | Then I want to get path "/vendor-software-products/{item.id}/versions/{item.versionId}/components" |
| 54 | Then I want to check property "listCount" for value 1 |
| 55 | |
| 56 | Then I want to get the questionnaire for this item |
| 57 | And I want to update this questionnaire with value "15" for property "general/storageDataReplication/storageReplicationSize" |
| 58 | And I want to update this questionnaire |
| 59 | |
| 60 | When I want to get the questionnaire for this item |
| 61 | Then I want to check this questionnaire has value "15" for property "general/storageDataReplication/storageReplicationSize" |