Skip to content

Commit 1d7a530

Browse files
feat: add additional criteriea to TC002 and TC003 (w/ @zeitgeist)
1 parent 3244163 commit 1d7a530

File tree

1 file changed

+23
-13
lines changed

1 file changed

+23
-13
lines changed

specs/index.bs

+23-13
Original file line numberDiff line numberDiff line change
@@ -2770,10 +2770,10 @@ system with a valid access token and the syntax specified in [PACT Tech Specs V2
27702770

27712771
#### Expected Response #### {#test-case-001-response}
27722772

2773-
The test target host system must respond with 200 OK with a JSON body containing a list
2773+
The test target host system must respond with 200 OK with a JSON body containing a list of
27742774
`ProductFootprints` (as per the [PACT Tech Specs V2.2
2775-
§api-action-list-response](https://wbcsd.github.io/data-exchange-protocol/v2/#api-action-list-response)),
2776-
those which include `productIds` with [the format specified for ShipmentFootprints](#pcf-mapping-sf)
2775+
§api-action-list-response](https://wbcsd.github.io/data-exchange-protocol/v2/#api-action-list-response)).
2776+
Those which include `productIds` with [the format specified for ShipmentFootprints](#pcf-mapping-sf)
27772777
must be conformant with the Data Model specified in [[#dt-sf]]. The relevant properties of the
27782778
`ProductFootprint` must also be confomant with the guidance provided in [[#pcf-mapping-sf]].
27792779

@@ -2787,12 +2787,17 @@ system with a valid access token and the syntax specified in [PACT Tech Specs V2
27872787

27882788
#### Expected Response #### {#test-case-002-response}
27892789

2790-
The test target host system must respond with 200 OK with a JSON body containing a list
2790+
The test target host system must respond with 200 OK with a JSON body containing a list of
27912791
`ProductFootprints` (as per the [PACT Tech Specs V2.2
2792-
§api-action-list-response](https://wbcsd.github.io/data-exchange-protocol/v2/#api-action-list-response)),
2793-
those which include `productIds` with [the format specified for TOCs](#pcf-mapping-toc) must be
2794-
conformant with the Data Model specified in [[#dt-toc]]. The relevant properties of the
2795-
`ProductFootprint` must also be confomant with the guidance provided in [[#pcf-mapping-toc]].
2792+
§api-action-list-response](https://wbcsd.github.io/data-exchange-protocol/v2/#api-action-list-response)).
2793+
2794+
This list must include all the `TOCs` referenced in the `ShipmentFootprint`s returned in
2795+
[[#test-case-001]] (identified through the `productIds` field) and may include others.
2796+
2797+
All the `ProductFootprints` which include `productIds` with [the format specified for
2798+
TOCs](#pcf-mapping-toc) must be conformant with the Data Model specified in [[#dt-toc]]. The
2799+
relevant properties of the `ProductFootprint` must also be confomant with the guidance provided in
2800+
[[#pcf-mapping-toc]].
27962801

27972802
### Test Case 003: Get ProductFootprint with HOC ### {#test-case-003}
27982803

@@ -2804,12 +2809,17 @@ system with a valid access token and the syntax specified in [PACT Tech Specs V2
28042809

28052810
#### Expected Response #### {#test-case-003-response}
28062811

2807-
The test target host system must respond with 200 OK with a JSON body containing a list
2812+
The test target host system must respond with 200 OK with a JSON body containing a list of
28082813
`ProductFootprints` (as per the [PACT Tech Specs V2.2
2809-
§api-action-list-response](https://wbcsd.github.io/data-exchange-protocol/v2/#api-action-list-response)),
2810-
those which include `productIds` with [the format specified for HOCs](#pcf-mapping-hoc) must be
2811-
conformante with the Data Model specified in [[#dt-hoc]]. The relevant properties of the
2812-
`ProductFootprint` must also be confomant with the guidance provided in [[#pcf-mapping-hoc]].
2814+
§api-action-list-response](https://wbcsd.github.io/data-exchange-protocol/v2/#api-action-list-response)).
2815+
2816+
This list must include all the `HOCs` referenced in the `ShipmentFootprint`s returned in
2817+
[[#test-case-001]] (identified through the `productIds` field) and may include others.
2818+
2819+
All the `ProductFootprints` which include `productIds` with [the format specified for
2820+
HOCs](#pcf-mapping-hoc) must be conformante with the Data Model specified in [[#dt-hoc]]. The
2821+
relevant properties of the `ProductFootprint` must also be confomant with the guidance provided in
2822+
[[#pcf-mapping-hoc]].
28132823

28142824
### Test Case 004: Get All TransportActivityData ### {#test-case-004}
28152825

0 commit comments

Comments
 (0)