blob: 2cc057469f0404605546fbed155402338094d860 [file] [log] [blame]
ayalaben705fc2b2018-03-15 15:59:25 +02001Feature: Archive and Restore VSP
2
3 Background: Init
4 Given I want to create a VLM
5
6 Scenario: Archive VSP with Draft
7 When I want to create a VSP with onboarding type "NetworkPackage"
8 When I want to upload a NetworkPackage for this VSP from path "resources/uploads/BASE_MUX.zip"
9 And I want to process the NetworkPackage file for this VSP
10
11 Then I want to commit this Item
12 Then I want to get path "/items/{item.id}/versions"
13 Then I want to check property "listCount" for value 1
14 Then I want to make sure this Item has status "Draft"
15
16 Then I want to archive this item
17 Then I want to list Archived VSPs
18 Then I want to check that item exits in response
19 Then I want to list Active VSPs
20 Then I want to check that item does not exits in response
21
22 Scenario: Archive Already Archived VSP - Negative
23 When I want to create a VSP with onboarding type "NetworkPackage"
24 When I want to upload a NetworkPackage for this VSP from path "resources/uploads/BASE_MUX.zip"
25 And I want to process the NetworkPackage file for this VSP
26 Then I want to commit this Item
27
28 Then I want to archive this item
29 Then I want to list Archived VSPs
30 Then I want to check that item exits in response
31 Then I want to list Active VSPs
32 Then I want to check that item does not exits in response
33
34 Then I want the following to fail with error message "Archive item failed, item {item.id} is already Archived"
35 Then I want to archive this item
36
37
38 Scenario: Archive Certified VSP
39 When I want to create a VSP with onboarding type "NetworkPackage"
40 Then I want to make sure this Item has status "Draft"
41 When I want to upload a NetworkPackage for this VSP from path "resources/uploads/BASE_MUX.zip"
42 And I want to process the NetworkPackage file for this VSP
43
44 Then I want to commit this Item
45 Then I want to get path "/items/{item.id}/versions"
46 Then I want to check property "listCount" for value 1
47 Then I want to make sure this Item has status "Draft"
48
49 When I want to submit this VSP
50 Then I want to make sure this Item has status "Certified"
51 Then I want to get path "/items/{item.id}/versions"
52 Then I want to check property "listCount" for value 1
53
54 Then I want to archive this item
55 Then I want to list Archived VSPs
56 Then I want to check that item exits in response
57 Then I want to list Active VSPs
58 Then I want to check that item does not exits in response