Repository navigation
test(interop): 消费样本集 n17-encrypt-missing-dek(29→30 条) - #30
Conversation
- fixture 从真源 wop-specs/interop/v1 字节重拷,sha256 哨兵更新为
c920ca1a…353e;负向条数哨兵 16→17、总数 29→30,id 哨兵收编
n17-encrypt-missing-dek
- n17(x-wop-encrypt 裸 L2 缺 ;dek=)期望 protocol:本仓
client.py verify_response 解析层 startswith("L2;dek=") 前置检查
已抛 ProtocolFormatError,分类现状合规,免改码;映射表注释收编
裁决 0 号并登记 n17
- README/scenario-analysis 条数引用同步(24 verify / 30 总)
验证:python -m pytest --cov=wop_sdk --cov-branch --cov-fail-under=98
287 passed,行+分支覆盖 100%(门禁无回退)
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Team Run ID: Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
审查者指南(小型 PR 中折叠显示)审查者指南本 PR 将 Python interop 消费端从 29 条样本升级至真源冻结的 30 条,新增 n17 缺失 DEK 的协议级负向覆盖,并同步 fixture 完整性哨兵、错误分类映射及文档引用。 interop 样本验证时序图sequenceDiagram
participant Test as test_interop.py
participant Fixture as interop-cases.json
participant SDK as Python SDK
Test->>Fixture: load n17-encrypt-missing-dek
Test->>SDK: verify(sample)
SDK-->>Test: reject with errorClass=protocol
Test->>Test: assert verify-negative count 17
n17 缺失 DEK 协议案例流程图flowchart LR
A[裸 L2 X-Wop-Encrypt 头] --> B{dek 段存在?}
B -->|否| C[协议结构拒绝]
C --> D[errorClass=protocol]
文件级变更
提示与命令与 Sourcery 交互
自定义体验访问你的控制面板:
获取帮助Original review guide in EnglishReviewer's guide (collapsed on small PRs)Reviewer's Guide本 PR 将 Python interop 消费端从 29 条样本升级至真源冻结的 30 条,新增 n17 缺失 DEK 的协议级负向覆盖,并同步 fixture 完整性哨兵、错误分类映射及文档引用。 Sequence diagram for interop sample verificationsequenceDiagram
participant Test as test_interop.py
participant Fixture as interop-cases.json
participant SDK as Python SDK
Test->>Fixture: load n17-encrypt-missing-dek
Test->>SDK: verify(sample)
SDK-->>Test: reject with errorClass=protocol
Test->>Test: assert verify-negative count 17
Flow diagram for the n17 missing DEK protocol caseflowchart LR
A[裸 L2 X-Wop-Encrypt 头] --> B{dek 段存在?}
B -->|否| C[协议结构拒绝]
C --> D[errorClass=protocol]
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
There was a problem hiding this comment.
你好——我已经审阅了你的更改,整体看起来很棒!
Sourcery 评估
已批准。
帮我变得更有用!请在每条评论上点击 👍 或 👎,我会利用反馈来改进评审。
Original comment in English
Hey - I've reviewed your changes and they look great!
Sourcery assessment
Approved.
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.
变更
六仓 interop 样本集 v1 升级(29→30 条)的 Python 消费端,与 java(
2c6dd7d)、dotnet(PR #33)、typescript(PR #22)同批次:tests/fixtures/interop-cases.json从真源重拷(sha256c920ca1a…,2026-09-02 冻结);仅新增 n17,SM2 build 两条 signatureSegment 重采样(opaque 合同内)test_interop.py计数哨兵 verify-negative 16→17;已知 id 登记n17-encrypt-missing-dekL2X-Wop-Encrypt 头缺dek段,协议结构类明确拒绝)——本仓分类现状合规真源锚点
wop-platform/wop-specs main
6f359a1(n17 经 PR #12 入集;治理规则 6 经 PR #13/#14 落库)。Sourcery 摘要
升级 Python 互操作样本集消费端,以覆盖缺失 DEK 的加密协议负向场景,并同步完整性与文档基线。
改进:
n17-encrypt-missing-dek,并将样本总数更新至 30 条。文档:
测试:
Original summary in English
Summary by Sourcery
升级 Python interop 样本集消费端以覆盖缺失 DEK 的加密协议负向场景,并同步完整性与文档基线。
Enhancements:
Documentation:
Tests: