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