CI Test for get all interface lifecycle types
[sdc.git] / openecomp-bdd / features / ActivitySpec / TestInvalidStatusTransition.feature
1 #Feature: ActivitySpec Flow
2 #
3 #Given Default prefix "activity_spec"
4 #
5 #  Scenario: Test Invalid Status Transition for Activity Spec
6 #    #Create Activity Spec
7 #    When I want to set the input data to file "resources/json/createActivitySpec.json"
8 #    Then I want to update the input property "name" with a random value
9 #    When I want to create an ActivitySpec
10 #    Then I want to check property "id" exists
11 #    And I want to check property "versionId" exists
12 #
13 #    #Get Activity Spec and verify status
14 #    When I want to get the ActivitySpec for the current item
15 #    Then I want to check property "status" for value "Draft"
16 #
17 #    #Deprecate "Draft" activity status and verify error message
18 #    Then I want the following to fail with error message "Activity Spec is in an invalid state"
19 #    When I want to call action "DEPRECATE" on this ActivitySpec item
20 #
21 #    #Delete "Draft" activity spec and verify error code
22 #    Then I want the following to fail with error message "Activity Spec is in an invalid state"
23 #    When I want to call action "DELETE" on this ActivitySpec item
24 #
25 #    #Certify activity spec
26 #    When I want to call action "CERTIFY" on this ActivitySpec item
27 #    #Certify "certified" activity spec and verify error code
28 #    Then I want the following to fail with error message "Activity Spec is in an invalid state"
29 #    When I want to call action "CERTIFY" on this ActivitySpec item