fix(file): align order export batch limit
This commit is contained in:
+9
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user