ayalaben | aad2781 | 2018-02-18 10:03:22 +0200 | [diff] [blame] | 1 | Feature: Delete VSP Draft |
| 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 | aad2781 | 2018-02-18 10:03:22 +0200 | [diff] [blame] | 6 | |
| 7 | Scenario: Delete VSP with only draft |
| 8 | When I want to create a VSP with onboarding type "NetworkPackage" |
| 9 | Then I want to make sure this Item has status "Draft" |
| 10 | |
| 11 | When I want to upload a NetworkPackage for this VSP from path "resources/uploads/BASE_MUX.zip" |
| 12 | And I want to process the NetworkPackage file for this VSP |
| 13 | |
| 14 | Then I want to commit this Item |
| 15 | |
| 16 | Then I want to get path "/items/{item.id}/versions" |
| 17 | Then I want to check property "listCount" for value 1 |
| 18 | Then I want to make sure this Item has status "Draft" |
| 19 | |
| 20 | When I want to submit this VSP |
| 21 | Then I want to make sure this Item has status "Certified" |
| 22 | Then I want to get path "/items/{item.id}/versions" |
| 23 | Then I want to check property "listCount" for value 1 |
| 24 | |
| 25 | Then I want the following to fail with error message "VSP has been certified and cannot be deleted." |
| 26 | Then I want to delete this VSP |
| 27 | |
| 28 | Then I want to get path "/items/{item.id}/versions" |
| 29 | Then I want to check property "listCount" for value 1 |
| 30 | |