1 Feature: VSP Example File
4 Given I want to create a VLM
5 Then I want to submit this VLM
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"
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
14 Then I want to commit this Item
15 And I want to submit this VSP
16 And I want to package this VSP
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"
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}"
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
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
39 Then I want the following to fail with error code "VSP_VFC_COUNT_EXCEED"
40 When I want to add a component
42 Then I want to commit this Item
43 Then I want the following to fail
44 When I want to submit this VSP
47 Scenario: VSP Questionnaire Examples
48 Given I want to create a VSP with onboarding type "Manual"
50 When I want to get the questionnaire for this item
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
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
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"