add consul service discovery test#5699
Conversation
|
Have you considered making it into a integration test by using some frameworks like TestContainer that leverage Container? |
|
@chickenlj Can you show me any example so I can find whether I can dig in it. I thought with embedded-consul imported, It should be an integration test somehow? |
Codecov Report
@@ Coverage Diff @@
## master #5699 +/- ##
============================================
+ Coverage 61.37% 61.45% +0.07%
- Complexity 425 492 +67
============================================
Files 923 926 +3
Lines 37572 37800 +228
Branches 5442 5453 +11
============================================
+ Hits 23060 23229 +169
- Misses 12032 12063 +31
- Partials 2480 2508 +28
Continue to review full report at Codecov.
|
Yes, I think we can go with embedded Consul, I noticed it also helped us with the potential port conflicting problem. You can reference here for how to use testcontainers doing Integration Test https://www.testcontainers.org/ |
What is the purpose of the change
complete the unit test for consul service discovery module.
Brief changelog
XXXXX
Verifying this change
XXXXX
Follow this checklist to help us incorporate your contribution quickly and easily:
[Dubbo-XXX] Fix UnknownException when host config not exist #XXX. Each commit in the pull request should have a meaningful subject line and body.mvn clean install -DskipTests=false&mvn clean test-compile failsafe:integration-testto make sure unit-test and integration-test pass.