feat(mockup): add baseline for multi tier mockup - without protocol - #1176
feat(mockup): add baseline for multi tier mockup - without protocol#1176gobica wants to merge 12 commits into
Conversation
ReneSchroederLJ
left a comment
There was a problem hiding this comment.
Thank you for the contribution. In the future please make sure that the mocked outputs are aligned with the outputs of the corresponding submodel endpoints,
Additionally, I don't think the name tier-2 mock is a good choice since it might not be limited to that always. A general name like mock participant is more fitting.
| ); | ||
| tier2Partner = partnerService.create(tier2Partner); | ||
| log.info("Created tier2 partner: {}", tier2Partner); | ||
| } |
There was a problem hiding this comment.
The partner creation should be moved to the bruno collection since the DataInjectionCommandLineRunner setup will be removed as part of #1131.
| @@ -0,0 +1,313 @@ | |||
| # | |||
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | |||
There was a problem hiding this comment.
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | |
| # Copyright (c) 2026 Volkswagen AG |
| @@ -0,0 +1,35 @@ | |||
| # | |||
| # Copyright (c) 2025 Contributors to the Eclipse Foundation | |||
There was a problem hiding this comment.
| # Copyright (c) 2025 Contributors to the Eclipse Foundation | |
| # Copyright (c) 2026 Volkswagen AG |
| @@ -0,0 +1,332 @@ | |||
| # | |||
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | |||
There was a problem hiding this comment.
| # Copyright (c) 2026 Contributors to the Eclipse Foundation | |
| # Copyright (c) 2026 Volkswagen AG |
| ISSUER_BPNL=BPNL000000000000 | ||
| TIER2_BPNL=BPNL3333333333T3 | ||
| TIER2_BPNS=BPNS3333333333T3 | ||
| TIER2_BPNA=BPNA3333333333T3 |
There was a problem hiding this comment.
The BPNS and BPNA should not be necessary since they are derived from the BPNL in the code anyway.
| # subsequent GET on the data plane, so the two sides must stay in sync. | ||
| ITEM_STOCK_ASSET = "itemstocksubmodel-api-asset" | ||
| PRODUCTION_ASSET = "productionsubmodel-api-asset" | ||
| DEMAND_ASSET = "demandsubmodel-api-asset" |
There was a problem hiding this comment.
The current mock is set up as a supplier only. The demand Submodel is not supported and should not be offered.
| ], | ||
| "materialNumberSupplier": TIER2_MATERIAL_NUMBER, | ||
| "materialGlobalAssetId": _material_global_asset_id(bpnl), | ||
| "direction": "OUTBOUND", |
There was a problem hiding this comment.
direction does not exist on production.
|
|
||
| def _delivery(bpnl: str) -> dict: | ||
| return { | ||
| "deliveries": [ |
There was a problem hiding this comment.
positions is missing as an intermediary property.
| (DEMAND_ASSET, "urn:samm:io.catenax.short_term_material_demand:1.0.0#ShortTermMaterialDemand", "1.0"), | ||
| (DELIVERY_ASSET, "urn:samm:io.catenax.delivery_information:2.0.0#DeliveryInformation", "2.0"), | ||
| (DAYS_OF_SUPPLY_ASSET, "urn:samm:io.catenax.days_of_supply:2.0.0#DaysOfSupply", "2.0"), | ||
| (NOTIFICATION_ASSET, "urn:samm:io.catenax.demand_and_capacity_notification:3.0.0#DemandAndCapacityNotification", "3.0"), |
There was a problem hiding this comment.
Notification is not a submodel.
28afac4 to
92cad79
Compare
Description
Pre-review checks
Please ensure to do as many of the following checks as possible, before asking for committer review:
changelog.md) with PR reference and brief summary.frontend/package.json,frontend/package-lock.json)backend/pom.xml)scripts/generate_openapi_yaml.pywith running customer backend)