ci: streamline test environment deployments
This commit is contained in:
+7
-2
@@ -43,14 +43,19 @@ class FulfillmentTaskControllerContractTest {
|
||||
void shouldDocumentFourReadOnlyEndpointsInOpenApi() throws Exception {
|
||||
String openapi = new ClassPathResource("openapi/firstleg-v1.yaml")
|
||||
.getContentAsString(StandardCharsets.UTF_8);
|
||||
assertThat(openapi)
|
||||
int taskPathsStart = openapi.indexOf(" /api/platform/v1/first-leg/tasks:");
|
||||
int nextResourceStart = openapi.indexOf(" /api/platform/v1/containers:", taskPathsStart);
|
||||
assertThat(taskPathsStart).isGreaterThanOrEqualTo(0);
|
||||
assertThat(nextResourceStart).isGreaterThan(taskPathsStart);
|
||||
assertThat(openapi).contains("仅响应体 code 为字符串 \"200\" 时表示成功");
|
||||
String taskPaths = openapi.substring(taskPathsStart, nextResourceStart);
|
||||
assertThat(taskPaths)
|
||||
.contains("/api/platform/v1/first-leg/tasks:")
|
||||
.contains("/api/platform/v1/first-leg/tasks/{taskId}:")
|
||||
.contains("/api/platform/v1/first-leg/tasks/by-order/{orderId}:")
|
||||
.contains("/api/platform/v1/first-leg/tasks/{taskId}/assignment-history:")
|
||||
.contains("platform:firstleg:task:list")
|
||||
.contains("platform:firstleg:assignment:history")
|
||||
.contains("仅响应体 code 为字符串 \"200\" 时表示成功")
|
||||
.doesNotContain("'404':")
|
||||
.doesNotContain("'409':");
|
||||
}
|
||||
|
||||
+1
-1
@@ -18,7 +18,7 @@ class InboundCartonLabelSqlContractTest {
|
||||
|
||||
assertThat(schema).contains("CREATE TABLE IF NOT EXISTS fl_inbound_carton_label")
|
||||
.contains("UNIQUE KEY uk_carton_label_box_code (tenant_id, box_code)")
|
||||
.contains("UNIQUE KEY uk_carton_label_index (tenant_id, inbound_id, carton_index)")
|
||||
.contains("UNIQUE KEY uk_carton_label_index (tenant_id, inbound_id, label_version, carton_index)")
|
||||
.contains("inbound_detail_id BIGINT UNSIGNED NOT NULL");
|
||||
assertThat(migration).contains("CREATE TABLE IF NOT EXISTS fl_inbound_carton_label")
|
||||
.contains("固定二维码内容:入仓码#总箱数-箱下标")
|
||||
|
||||
Reference in New Issue
Block a user