Repository navigation
refactor(operator): unify mock envelopes and host type routing - #205
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mock 文本请求统一使用
MockInput → MockDataPool → MockTextInput,JSON 响应使用池持有的MockOutput → MockTextOutput。输入逐层校验结构大小、类型和文本长度;输出容量由result_json_max_bytes控制,复用时清空,超容量失败且不发布部分结果。其余模拟载体统一采用Mock*命名,Demo、SDK 消费方测试和当前契约文档同步更新。宿主 key 固定为
<prefix>.<type>,前缀非空且不含点,运行时只按 type 路由。部署准备拒绝同一方向重复选用同一 type(包括不同 name);同一部署不能同时选择两个json_out响应契约,多结果需由转换器聚合或使用不同 type。删除无消费者的
JsonOutputValue.status_code、RuleMatchItem.status_code及相应赋值和断言,清理 CLI 中重复 type 时生成name.type的不可达分支。外部 JSON 内容保持不变;脚手架与文档同步,补充重复输入 type 拒绝测试和 RuleMatchBatch 脚手架生成编译测试。验证:独立审查未发现阻断项;48 项重点测试通过;完整本地门禁共 453 项,其中 448 项通过、5 项真实模型资产相关测试跳过、0 项失败。CLI
validate-io与resolve-conf输出池键及容量核对通过。最新 PR CI 与合并提交的 main push CI 由交付脚本验证。内部 SDK 与目标硬件验收不在本次验证范围内。