Entitlement Pool - Support Type Field
[sdc.git] / cucumber-js-test-apis-ci / features / UserFeedback / TestMRN.feature
1 # Copyright © 2018 European Support Limited
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 #      http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 Feature: User Feedback - Enhance EP to include MRN and Type
16
17   Scenario: Test Feature Group and Entitlement Pool
18
19     Then I want to create a VLM
20     Then I want to make sure this Item has status "Draft"
21
22     When I want to get path "/items/{item.id}/versions/{item.versionId}/revisions"
23     Then I want to check property "listCount" for value 1
24
25     Then I want to create input data
26     Then I want to update the input property "name" with value "FG_01"
27     Then I want to update the input property "description" with value "FG"
28     Then I want to update the input property "partNumber" with value "999"
29     Then I want to create for path "/vendor-license-models/{item.id}/versions/{item.versionId}/feature-groups" with the input data from the context
30
31     When I want to create input data
32     Then I want to update the input property "name" with value "EP_01"
33     Then I want to update the input property "type" with value "Universal"
34     Then I want to update the input property "description" with value "EP without MRN"
35     Then I want the following to fail
36     Then I want to create for path "/vendor-license-models/{item.id}/versions/{item.versionId}/entitlement-pools" with the input data from the context
37
38     When I want to create input data
39     Then I want to update the input property "name" with value "EP_02"
40     Then I want to update the input property "manufacturerReferenceNumber" with value "12345"
41     Then I want to update the input property "description" with value "EP without Type"
42     Then I want the following to fail
43     Then I want to create for path "/vendor-license-models/{item.id}/versions/{item.versionId}/entitlement-pools" with the input data from the context
44
45     When I want to create input data
46     Then I want to update the input property "name" with value "EP_03"
47     Then I want to update the input property "type" with value "_Universal"
48     Then I want to update the input property "manufacturerReferenceNumber" with value "12345"
49     Then I want to update the input property "description" with value "EP with wrong type"
50     Then I want the following to fail
51     Then I want to create for path "/vendor-license-models/{item.id}/versions/{item.versionId}/entitlement-pools" with the input data from the context
52
53     When I want to create input data
54     Then I want to update the input property "name" with value "EP_04"
55     Then I want to update the input property "type" with value ""
56     Then I want to update the input property "manufacturerReferenceNumber" with value "12345"
57     Then I want to update the input property "description" with value "EP with empty Type"
58     Then I want the following to fail
59     Then I want to create for path "/vendor-license-models/{item.id}/versions/{item.versionId}/entitlement-pools" with the input data from the context
60
61     When I want to create input data
62     Then I want to update the input property "name" with value "EP_05"
63     Then I want to update the input property "description" with value "EP with valid type and MRN"
64     Then I want to update the input property "type" with value "Universal"
65     Then I want to update the input property "manufacturerReferenceNumber" with value "12345"
66     Then I want to create for path "/vendor-license-models/{item.id}/versions/{item.versionId}/entitlement-pools" with the input data from the context
67     Then I want to get path "/vendor-license-models/{item.id}/versions/{item.versionId}/entitlement-pools/{responseData.value}"
68     Then I want to check property "manufacturerReferenceNumber" for value "12345"
69     Then I want to check property "type" for value "Universal"