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