修复Debug EML V4元数据与回归断言

This commit is contained in:
andy
2026-07-20 20:48:49 +07:00
parent 038fdc3c8d
commit c5b5ce6aab
5 changed files with 13 additions and 2 deletions

View File

@@ -228,7 +228,8 @@ class DebugEmlSuperAgentControllerTest {
.contains("\"mode\":\"manual\"")
.contains("\"final_only\":true");
org.assertj.core.api.Assertions.assertThat(superAgentRequest.metadata())
.containsEntry("source", "th-hotel-debug-eml-v4-upload")
.containsEntry("source", "DEBUG_EML_UPLOAD")
.containsEntry("model_contract", "M002_V4")
.containsKey("debug_context");
Long debugRunCount = jdbcTemplate.queryForObject("""

View File

@@ -1134,6 +1134,12 @@ class SuperAgentTaskResultControllerTest {
FROM workflow_reservation_task
WHERE source_message_id = ?
""", Long.class, source.inboxId());
Long legacyTaskCreatedOrderCount = jdbcTemplate.queryForObject("""
SELECT COUNT(*)
FROM workflow_reservation_order
WHERE source_message_id = ?
AND created_from_task_id IS NOT NULL
""", Long.class, source.inboxId());
Long v4OrderTaskCount = jdbcTemplate.queryForObject("""
SELECT COUNT(*)
FROM workflow_reservation_v4_order_task
@@ -1147,6 +1153,7 @@ class SuperAgentTaskResultControllerTest {
ORDER BY card_sort_order, source_event_index
""", String.class, source.inboxId());
assertThat(legacyTaskCount).isZero();
assertThat(legacyTaskCreatedOrderCount).isZero();
assertThat(v4OrderTaskCount).isEqualTo(1L);
assertThat(v4CardTypes).containsExactly(
"SOURCE_MESSAGE_DISPLAY",