CI Test for get all interface lifecycle types
[sdc.git] / cucumber-js-test-apis-ci / features / InterfaceOperation / TestResourceInterfaceOperation.feature
1 Feature: Interface Operation Feature
2
3  Background: Init
4   Given I want to create a VF
5
6  Scenario: Test InterfaceOperation CRUD
7     #Create Operations
8   When I want to create an Operation
9   Then I want to check property "uniqueId" exists
10   And  I want to create an Operation with workflow
11   Then I want to check property "uniqueId" exists
12   And  I want to create an Operation
13   Then I want to check property "uniqueId" exists
14   When I want to create an Operation with input output
15   Then I want to check property "uniqueId" exists
16
17    #List All Operations
18   When I want to list Operations
19
20     #Get Operation By OperationId
21   When I want to get an Operation by Id
22   Then I want to check property "uniqueId" exists
23    #Update Operation
24   When I want to update an Operation
25   Then I want to check property "uniqueId" exists
26
27    #Delete Operation
28   When I want to delete an Operation
29
30   #Checkin
31   When I want to checkin this component
32   Then I want to check property "lifecycleState" for value "NOT_CERTIFIED_CHECKIN"
33
34   #Certify
35   Then I want to certify this component
36   And I want to check property "lifecycleState" for value "CERTIFIED"
37
38  Scenario: Test InterfaceOperation CREATE
39   #Create Operations
40   When I want to create an Operation
41   Then I want to check property "uniqueId" exists
42   And  I want to create an Operation
43   Then I want to check property "uniqueId" exists
44   And  I want to create an Operation
45   Then I want to check property "uniqueId" exists
46
47  #List All Operations
48   When I want to list Operations
49
50 #Checkin
51   When I want to checkin this component
52   Then I want to check property "lifecycleState" for value "NOT_CERTIFIED_CHECKIN"
53
54 #Certify
55   Then I want to certify this component
56   And I want to check property "lifecycleState" for value "CERTIFIED"
57
58
59  Scenario: Test InterfaceOperation UPDATE
60     #Create Operation
61   When I want to create an Operation
62   Then I want to check property "uniqueId" exists
63
64     #Get Operation By OperationId
65   When I want to get an Operation by Id
66   Then I want to check property "uniqueId" exists
67    #Update Operation
68   When I want to update an Operation
69   Then I want to check property "uniqueId" exists
70
71   #Checkin
72   When I want to checkin this component
73   Then I want to check property "lifecycleState" for value "NOT_CERTIFIED_CHECKIN"
74
75   #Certify
76   Then I want to certify this component
77   And I want to check property "lifecycleState" for value "CERTIFIED"
78
79
80  Scenario: Test InterfaceOperation DELETE
81     #Create Operation
82   When I want to create an Operation
83   Then I want to check property "uniqueId" exists
84
85     #Get Operation By OperationId
86   When I want to get an Operation by Id
87   Then I want to check property "uniqueId" exists
88
89    #Delete Operation
90   When I want to delete an Operation
91
92   #Checkin
93   When I want to checkin this component
94   Then I want to check property "lifecycleState" for value "NOT_CERTIFIED_CHECKIN"
95
96   #certify
97   Then I want to certify this component
98   And I want to check property "lifecycleState" for value "CERTIFIED"