fix(file): align order export batch limit
This commit is contained in:
@@ -30,7 +30,7 @@ baiyue:
|
|||||||
enabled: true
|
enabled: true
|
||||||
max-rows: 200000
|
max-rows: 200000
|
||||||
max-attempts: 3
|
max-attempts: 3
|
||||||
batch-size: 500
|
batch-size: 200
|
||||||
|
|
||||||
LOADING_LIST_BUY_DECLARATION_ITEMS:
|
LOADING_LIST_BUY_DECLARATION_ITEMS:
|
||||||
provider-service: firstleg-service
|
provider-service: firstleg-service
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ baiyue:
|
|||||||
enabled: true
|
enabled: true
|
||||||
max-rows: 200000
|
max-rows: 200000
|
||||||
max-attempts: 3
|
max-attempts: 3
|
||||||
batch-size: 500
|
batch-size: 200
|
||||||
|
|
||||||
LOADING_LIST_BUY_DECLARATION_ITEMS:
|
LOADING_LIST_BUY_DECLARATION_ITEMS:
|
||||||
provider-service: firstleg-service
|
provider-service: firstleg-service
|
||||||
|
|||||||
@@ -109,7 +109,7 @@ baiyue:
|
|||||||
enabled: true
|
enabled: true
|
||||||
max-rows: 200000
|
max-rows: 200000
|
||||||
max-attempts: 3
|
max-attempts: 3
|
||||||
batch-size: 500
|
batch-size: 200
|
||||||
LOADING_LIST_BUY_DECLARATION_ITEMS:
|
LOADING_LIST_BUY_DECLARATION_ITEMS:
|
||||||
provider-service: firstleg-service
|
provider-service: firstleg-service
|
||||||
provider-path: /internal/exports/v1/LOADING_LIST_BUY_DECLARATION_ITEMS/batches
|
provider-path: /internal/exports/v1/LOADING_LIST_BUY_DECLARATION_ITEMS/batches
|
||||||
|
|||||||
+9
@@ -22,6 +22,15 @@ class DomesticWarehouseOrderExportContractTest {
|
|||||||
.contains("provider-path: /internal/exports/v1/" + TYPE + "/batches")
|
.contains("provider-path: /internal/exports/v1/" + TYPE + "/batches")
|
||||||
.contains("required-permission: platform:order:export")
|
.contains("required-permission: platform:order:export")
|
||||||
.contains("app-scope: PLATFORM");
|
.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