[Improvement][API Test] Add API tests for worker group related APIs#13936
Merged
SbloodyS merged 8 commits intoapache:devfrom Apr 26, 2023
Merged
[Improvement][API Test] Add API tests for worker group related APIs#13936SbloodyS merged 8 commits intoapache:devfrom
SbloodyS merged 8 commits intoapache:devfrom
Conversation
kezhenxu94
reviewed
Apr 18, 2023
| HttpResponse createTenantHttpResponse = tenantPage.createTenant(sessionId, tenant, 1, ""); | ||
|
|
||
| Assertions.assertFalse(createTenantHttpResponse.body().success()); | ||
| Assertions.assertFalse(createTenantHttpResponse.getBody().getSuccess()); |
Member
There was a problem hiding this comment.
Do you think getBody() is neater than body() 😉
Member
Author
There was a problem hiding this comment.
body() is neater maybe. It seems the configurations of lombok are different in api test and e2e module from those in other modules. I want them to be consistent.
Comment on lines
+38
to
+43
| network: | ||
| driver: bridge | ||
| ipam: | ||
| config: | ||
| - subnet: 10.5.0.0/16 | ||
| gateway: 10.5.0.1 |
Member
Author
EricGao888
commented
Apr 18, 2023
...i-test-case/src/test/java/org/apache/dolphinscheduler/api.test/cases/WorkerGroupAPITest.java
Outdated
Show resolved
Hide resolved
...i-test-case/src/test/java/org/apache/dolphinscheduler/api.test/cases/WorkerGroupAPITest.java
Outdated
Show resolved
Hide resolved
Codecov Report
@@ Coverage Diff @@
## dev #13936 +/- ##
============================================
- Coverage 38.86% 38.20% -0.67%
+ Complexity 4455 4436 -19
============================================
Files 1158 1220 +62
Lines 42439 42698 +259
Branches 4780 4734 -46
============================================
- Hits 16494 16311 -183
- Misses 24123 24584 +461
+ Partials 1822 1803 -19
... and 42 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
|
Kudos, SonarCloud Quality Gate passed! |
kezhenxu94
approved these changes
Apr 26, 2023
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.









Purpose of the pull request
worker grouprelated APIsBrief change log
Verify this pull request
This pull request is code cleanup without any test coverage.
(or)
This pull request is already covered by existing tests, such as (please describe tests).
(or)
This change added tests and can be verified as follows:
(or)
If your pull request contain incompatible change, you should also add it to
docs/docs/en/guide/upgrede/incompatible.md