blob: e63d3df2535ec99ace36e5a9db5eeff727311f27 [file] [log] [blame]
shrikantawachar6acf9fb2018-07-10 20:35:42 +05301# 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
Ben David, Elad (eb7504)ec7da6a2020-03-17 18:12:17 +020015Feature: User Feedback - Enhance EP to include MRN and Type
shrikantawachar6acf9fb2018-07-10 20:35:42 +053016
ayalaben1a4db8f2018-08-13 16:45:13 +030017 Scenario: Test Feature Group and Entitlement Pool
shrikantawachar6acf9fb2018-07-10 20:35:42 +053018
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"
Ben David, Elad (eb7504)ec7da6a2020-03-17 18:12:17 +020027 Then I want to update the input property "description" with value "FG"
shrikantawachar6acf9fb2018-07-10 20:35:42 +053028 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"
Ben David, Elad (eb7504)ec7da6a2020-03-17 18:12:17 +020033 Then I want to update the input property "type" with value "Universal"
shrikantawachar6acf9fb2018-07-10 20:35:42 +053034 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
shrikantawachar6acf9fb2018-07-10 20:35:42 +053038 When I want to create input data
39 Then I want to update the input property "name" with value "EP_02"
Ben David, Elad (eb7504)ec7da6a2020-03-17 18:12:17 +020040 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"
shrikantawachar6acf9fb2018-07-10 20:35:42 +053065 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"
Ben David, Elad (eb7504)ec7da6a2020-03-17 18:12:17 +020069 Then I want to check property "type" for value "Universal"