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