-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
feature : mock server #6205
feature : mock server #6205
Conversation
test-mock-server/src/main/java/io/seata/mockserver/MockCoordinator.java
Outdated
Show resolved
Hide resolved
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.x #6205 +/- ##
============================================
+ Coverage 49.03% 49.81% +0.78%
- Complexity 4786 4931 +145
============================================
Files 915 917 +2
Lines 31896 32010 +114
Branches 3855 3862 +7
============================================
+ Hits 15641 15947 +306
+ Misses 14699 14505 -194
- Partials 1556 1558 +2 |
test-mock-server/src/main/java/io/seata/mockserver/MockCoordinator.java
Outdated
Show resolved
Hide resolved
Please add change log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls add mock-server's test set to the test module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
done |
Ⅰ. Describe what this PR did
提供mock-server能力,允许客户端进行通信方面的测试,同时为多版本协议的完整测试提供基础。
目前所有接口都默认返回成功,打算这几天用http接口控制模式,模拟普通提交、普通回滚、一阶段超时等等场景。大家有更好的建议也可以提出
Provides mock-server capability to allow client-side testing of communication aspects while providing a basis for complete testing of multiple versions of protocols.
Currently all interfaces return success by default, and intend to use the http interface control mode in the next few days to simulate scenarios such as normal commits, normal rollbacks, one-phase timeouts, and so on.
You can also suggest better suggestions
Ⅱ. Does this pull request fix one issue?
fixes #6212
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews