f4b524b372e5b636bcd1467897a876c1a28bdc23
[sdc.git] / openecomp-bdd / features / Onboarding / ArchiveItem / ArchiveVlm.feature
1 Feature: Archive and Restore VLM
2
3     Scenario: Archive VLM with Draft
4         When I want to create a VLM
5         Then I want to create input data
6         Then I want to update the input property "name" with a random value
7         Then I want to update the input property "type" with value "Universal"
8         Then I want to create for path "/vendor-license-models/{item.id}/versions/{item.versionId}/license-key-groups" with the input data from the context
9         Then I want to commit this Item
10
11         Then I want to archive this item
12         Then I want to list Archived VLMs
13         Then I want to check that item exits in response
14
15     Scenario: Archive Already Archived VLM - Negative
16         When I want to create a VLM
17         Then I want to create input data
18         Then I want to update the input property "name" with a random value
19         Then I want to update the input property "type" with value "Universal"
20         Then I want to create for path "/vendor-license-models/{item.id}/versions/{item.versionId}/license-key-groups" with the input data from the context
21         Then I want to submit this VLM
22
23         Then I want to archive this item
24         Then I want to list Archived VLMs
25         Then I want to check that item exits in response
26         Then I want the following to fail with error message "Archive item failed, item {item.id} is already Archived"
27         Then I want to archive this item
28
29
30     Scenario: Archive Certified VLM
31             When I want to create a VLM
32             Then I want to create input data
33             Then I want to update the input property "name" with a random value
34             Then I want to update the input property "type" with value "Universal"
35             Then I want to create for path "/vendor-license-models/{item.id}/versions/{item.versionId}/license-key-groups" with the input data from the context
36             Then I want to submit this VLM
37
38             Then I want to archive this item
39             Then I want to list Archived VLMs
40             Then I want to check that item exits in response
41             Then I want to list Active VLMs
42             Then I want to check that item does not exits in response