fix(file): align order export batch limit

This commit is contained in:
2026-09-03 10:23:01 +08:00
parent 12b749d7d8
commit 16a60a9175
4 changed files with 12 additions and 3 deletions
@@ -22,6 +22,15 @@ class DomesticWarehouseOrderExportContractTest {
.contains("provider-path: /internal/exports/v1/" + TYPE + "/batches")
.contains("required-permission: platform:order:export")
.contains("app-scope: PLATFORM");
Map<String, Object> root = map(new Yaml().load(source));
Map<String, Object> baiyue = map(root.get("baiyue"));
Map<String, Object> fileConfig = map(baiyue.get("file"));
Map<String, Object> export = map(fileConfig.get("export"));
Map<String, Object> definitions = map(export.get("definitions"));
Map<String, Object> orderDefinition = map(definitions.get(TYPE));
assertThat(orderDefinition.get("batch-size"))
.as("%s must stay within Firstleg's 200-order summary limit", file)
.isEqualTo(200);
}
}