| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
feat(core): expose misfire config on TaskDetail TaskDetail gains misfirePolicy/misfireThreshold (null when the task is unconfigured) so the actuator endpoint's GET /{name} reports a task's effective misfire settings. A 7-arg compat constructor keeps existing callers source-compatible. Co-Authored-By: Claude Code <noreply@anthropic.com> | 8 天前 | |
test(endpoint): full operation matrix plus real HTTP layer via MockMvc Task 7 scenarios D1-D7 for the actuator endpoint: - D1: direct coverage of the 7-arg @WriteOperation addTask (CRON success, every validateRequest failure branch with exact messages, forbidden, duplicate-name registration error). - D2: updateTask(name, action) full branch matrix: pause (+isPaused, case insensitive), resume (+unpaused), null action, unknown action, write-disabled, task not found (both pause and resume paths). - D3: FIXED_RATE success, negative interval, blank/missing methodName. - D4: methodParams propagation is now asserted for real — the sink bean records the arguments it receives (1s FIXED_DELAY + latch await), replacing the old no-NPE-only test; empty-params fallback branch added. - D5: new FlexScheduleEndpointHttpTest drives the endpoint through MockMvc over a real servlet web context: GET list/detail/not-found, POST add (proves @Selector/parameter-name binding against -parameters), POST update via path selector + body action, DELETE, 400 on missing required operation parameters, and a write-disabled context rejecting POST/DELETE with the endpoint's error representation. - D6: dedicated DefaultEndpointAccessControl contract tests (disabled, empty allowlist, allowlist in/out, null allowedBeans no-NPE). - D7: AddTaskRequest full getter/setter round-trip incl. methodParams. No product bug surfaced: the autoconfigure module already compiles with -parameters, and record serialization of TaskInfo/TaskDetail works. Test-scope dependency addition: spring-boot-webmvc-test (Boot 4 moved @AutoConfigureMockMvc out of spring-boot-starter-test into the webmvc test module; required for D5). Co-Authored-By: Claude Code <noreply@anthropic.com> | 9 天前 |