aboutsummaryrefslogtreecommitdiffstats
path: root/cucumber-js-test-apis-ci/features/Example_VSP.feature
blob: ade2ef467bedafc80dee97b68739e449349c65c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Feature: VSP Example File

  Background: Init
    Given I want to create a VLM
    Then I want to submit this VLM

  Scenario: Create and submit VSP Network Package
    When I want to create a VSP with onboarding type "NetworkPackage"
    Then I want to make sure this Item has status "Draft"

    When I want to upload a NetworkPackage for this VSP from path "resources/uploads/BASE_MUX.zip"
    And I want to process the NetworkPackage file for this VSP

    Then I want to commit this Item
    And I want to submit this VSP
    And I want to package this VSP

    Then I want to make sure this Item has status "Certified"
    When I want to get the package for this Item to path "resources/downloads/VSPPackage.zip"
    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"
    When I want to load the yaml content of the entry "Artifacts/CB_BASE.yaml" in the zip "resources/downloads/VSPPackage.zip" to context
    Then I want to check property "parameters.vnf_name.description" for value "Unique name for this VF instance"
    When I want to load the json content of the entry "Artifacts/MANIFEST.json" in the zip "resources/downloads/VSPPackage.zip" to context
    Then I want to check property "description" for value "for testing"
  Scenario: Create VSP Manual
    When I want to create a VSP with onboarding type "Manual"
    Then I want to make sure this Item has status "Draft"

    When I want to create a VSP with onboarding type "Manual"
    Then I want to get path "/vendor-software-products/{item.id}/versions/{item.versionId}"

    When I want to get path "/vendor-software-products/{item.id}/versions/{item.versionId}/components"
    Then I want to check property "listCount" for value 0

    When I want to add a component
    Then I want to get path "/vendor-software-products/{item.id}/versions/{item.versionId}/components"
    Then I want to check property "listCount" for value 1

    Then I want the following to fail with error code "VSP_VFC_COUNT_EXCEED"
    When I want to add a component

    Then I want to commit this Item
    Then I want the following to fail
    When I want to submit this VSP


  Scenario: VSP Questionnaire Examples
    Given I want to create a VSP with onboarding type "Manual"

    When I want to get the questionnaire for this item

    When I want to add a component
    Then I want to get path "/vendor-software-products/{item.id}/versions/{item.versionId}/components"
    Then I want to check property "listCount" for value 1

    Then I want to get the questionnaire for this item
    And I want to update this questionnaire with value "15" for property "general/storageDataReplication/storageReplicationSize"
    And I want to update this questionnaire

    When I want to get the questionnaire for this item
    Then I want to check this questionnaire has value "15" for property "general/storageDataReplication/storageReplicationSize"