Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: add testcases for CompareRequest&Response #778

Merged
merged 2 commits into from
Jan 16, 2024

Conversation

Uncle-Justice
Copy link
Contributor

Ⅰ. Describe what this PR did

#733 的补充

  1. 为e2e测试中的CompareRequestCompareResponse增加单元测试用例,验证e2e框架支持对四种Content-Type的body的校验能力
  2. Content-Type为form-data类型时,通常会在后面跟一个boudary的数据,在header中实际应为(举例):"ContentType": "multipart/form-data; boundary=----WebKitFormBoundaryAnydWsQ1ajKuGoCd",为此body类型补充了一些检查逻辑
  3. CompareRequest&Response中的一些报错输出存在一些bug,比如对于body数据结构的类型断言失败时,不应打印body内容,因为类型未知。

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?

本地运行UT通过

Ⅳ. Describe how to verify it

Ⅴ. Special notes for reviews

@Uncle-Justice Uncle-Justice changed the title Test: add testcases for CompareRequest&Response test: add testcases for CompareRequest&Response Jan 12, 2024
@2456868764
Copy link
Collaborator

LGTM

@johnlanni johnlanni merged commit 665d9fa into alibaba:main Jan 16, 2024
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants