feat(freight-rpa): 增加出站报表配置与回调支持,重构相关服务
- 将 RPA 管理 API 扩展至出站报表配置,新增出站相关的回调接口。 - 重构 freight_rpa_report_config_service,支持入站与出站报表配置的管理。 - 更新 ORM 模型,增加出站报表相关的持久化模型。 - 统一命名规范,确保在手、入站与出站的概念一致性。
This commit is contained in:
1 parent
39fe3c05f2
commit
911afa0f73
152 files changed
+9861
-2984
No files matched your search
@@ -47,6 +47,18 @@ def test_build_heartbeat_payload_inbound_worker_declares_inbound_export(monkeypa
|
||||
assert payload["worker_id"].endswith("-inbound")
|
||||
|
||||
|
||||
def test_build_heartbeat_payload_outbound_worker_declares_outbound_export(monkeypatch):
|
||||
"""outbound Worker(*-outbound 或 outbound trigger 路径)须声明 outbound_export。"""
|
||||
module = _load_freight_rpa_heartbeat_module()
|
||||
monkeypatch.setenv("FREIGHT_RPA_WORKER_ID", "WIN-RPA-01-outbound")
|
||||
payload = module.build_heartbeat_payload(
|
||||
trigger_dir=r"C:\HxopsRpaTest\data\freight_rpa\outbound\triggers",
|
||||
drop_dir=r"C:\HxopsRpaTest\data\freight_rpa\outbound\drop",
|
||||
)
|
||||
assert payload["capabilities"] == ["outbound_export"]
|
||||
assert payload["worker_id"].endswith("-outbound")
|
||||
|
||||
|
||||
def test_build_heartbeat_payload_adds_freight_rpa_upload_when_upload_enabled(monkeypatch):
|
||||
"""开启上传时心跳能力是 freight_rpa_upload,不再上报 freight_upload。"""
|
||||
module = _load_freight_rpa_heartbeat_module()
|
||||
|
||||
Reference in new issue
Block a user