blob: f4fa9d4423c15ac1db993420fde45025d5355d3e [file] [log] [blame]
ayalabenaad27812018-02-18 10:03:22 +02001Feature: Delete VSP Draft
2
3 Background: Init
siddharth0905c0b0f612019-01-24 14:01:46 +05304 Given I want to create a VLM
5 Then I want to submit this VLM
ayalabenaad27812018-02-18 10:03:22 +02006
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