@@ -41,3 +41,35 @@ Feature: Read CPM Product - success scenarios
4141 | product_team_id | product_id |
4242 | ${ note (product_team_id ) } | ${ note (product_id ) } |
4343 | 8babe222 -5c78 -42c6 -8aa6 -a3c69943030a | ${ note (product_id ) } |
44+
45+ Scenario Outline : Read an existing CpmProduct without a product_team_id
46+ Given I have already made a "POST" request with "default" headers to "ProductTeam" with body:
47+ | path | value |
48+ | name | My Great Product Team |
49+ | ods_code | F5H1R |
50+ Given I note the response field "$.id" as "product_team_id"
51+ When I make a "POST" request with "default" headers to "ProductTeam/${ note(product_team_id) }/Product" with body:
52+ | path | value |
53+ | name | My Great Product |
54+ And I note the response field "$.id" as "product_id"
55+ When I make a "GET" request with "default" headers to "Product/<product_id>"
56+ Then I receive a status code "200" with body
57+ | path | value |
58+ | id | <product_id > |
59+ | cpm_product_team_id | ${ note (product_team_id ) } |
60+ | product_team_id | null |
61+ | name | My Great Product |
62+ | ods_code | F5H1R |
63+ | status | active |
64+ | keys | [] |
65+ | created_on | << ignore >> |
66+ | updated_on | << ignore >> |
67+ | deleted_on | << ignore >> |
68+ And the response headers contain:
69+ | name | value |
70+ | Content -Type | application /json |
71+ | Content -Length | 278 |
72+
73+ Examples :
74+ | product_team_id | product_id |
75+ | ${ note (product_team_id ) } | ${ note (product_id ) } |
0 commit comments