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
[FLINK-32851][runtime][JUnit5 Migration] The rest package of flink-runtime module #23242
Conversation
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.
Hi @wangzzu , thanks for the contribution, the CI failed due to checkstyle[1], please run mvn spotless:apply
to fix it.
And @Jiabao-Sun , would you mind helping review this PR first? thanks~
.../src/test/java/org/apache/flink/runtime/rest/messages/RestResponseUnmarshallingTestBase.java
Outdated
Show resolved
Hide resolved
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.
Thanks @wangzzu for this contribution.
I left some comments about try { fail("") } catch
exception assertion.
I prefer to simplify to assertThatThrownBy()
.
flink-runtime/src/test/java/org/apache/flink/runtime/rest/RestClientTest.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/test/java/org/apache/flink/runtime/rest/RestClientTest.java
Outdated
Show resolved
Hide resolved
@Jiabao-Sun thx for your reviewing, i have fixed it |
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.
Thanks @wangzzu for the quick fix.
The branch seems has some conflicts.
Could you help rebase master?
flink-runtime/src/test/java/org/apache/flink/runtime/rest/RestExternalHandlersITCase.java
Outdated
Show resolved
Hide resolved
...runtime/src/test/java/org/apache/flink/runtime/rest/RestServerEndpointConfigurationTest.java
Show resolved
Hide resolved
flink-runtime/src/test/java/org/apache/flink/runtime/rest/RestServerEndpointITCase.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/test/java/org/apache/flink/runtime/rest/RestServerEndpointITCase.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/test/java/org/apache/flink/runtime/rest/RestServerEndpointITCase.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/test/java/org/apache/flink/runtime/rest/RestServerEndpointITCase.java
Outdated
Show resolved
Hide resolved
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.
Thanks @wangzzu for the quick update.
I left some comments. Please take a look when you have time.
This is a big PR, I might need the next round to complete it.
...me-web/src/test/java/org/apache/flink/runtime/webmonitor/handlers/JarRunRequestBodyTest.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/test/java/org/apache/flink/runtime/rest/RestClientMultipartTest.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/test/java/org/apache/flink/runtime/rest/RestClientTest.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/test/java/org/apache/flink/runtime/rest/RestClientTest.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/test/java/org/apache/flink/runtime/rest/RestClientTest.java
Outdated
Show resolved
Hide resolved
.../test/java/org/apache/flink/runtime/rest/handler/cluster/JobManagerCustomLogHandlerTest.java
Outdated
Show resolved
Hide resolved
.../test/java/org/apache/flink/runtime/rest/handler/cluster/JobManagerCustomLogHandlerTest.java
Outdated
Show resolved
Hide resolved
...rc/test/java/org/apache/flink/runtime/rest/handler/cluster/JobManagerLogListHandlerTest.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/test/java/org/apache/flink/runtime/rest/handler/job/JobSubmitHandlerTest.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/test/java/org/apache/flink/runtime/rest/handler/job/JobSubmitHandlerTest.java
Outdated
Show resolved
Hide resolved
By the way, the CI looks failed. |
@Jiabao-Sun thanks for your hard views, i have fixed these, if you have time, can you help review this again |
@1996fanrui @Jiabao-Sun if you have time, can you help me reveiw this again |
df6618a
to
7abdf8b
Compare
7abdf8b
to
6a35235
Compare
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.
Thanks @wangzzu for your hard work. I left some comments, please take a look.
...e/src/test/java/org/apache/flink/runtime/rest/handler/async/CompletedOperationCacheTest.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/test/java/org/apache/flink/runtime/rest/RestExternalHandlersITCase.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/test/java/org/apache/flink/runtime/rest/RestServerEndpointITCase.java
Outdated
Show resolved
Hide resolved
flink-runtime/src/test/java/org/apache/flink/runtime/rest/RestServerEndpointITCase.java
Outdated
Show resolved
Hide resolved
...ava/org/apache/flink/runtime/rest/handler/job/metrics/AggregatingMetricsHandlerTestBase.java
Outdated
Show resolved
Hide resolved
...ava/org/apache/flink/runtime/rest/handler/job/metrics/AggregatingMetricsHandlerTestBase.java
Outdated
Show resolved
Hide resolved
...ava/org/apache/flink/runtime/rest/handler/job/metrics/AggregatingMetricsHandlerTestBase.java
Outdated
Show resolved
Hide resolved
...c/test/java/org/apache/flink/runtime/rest/handler/legacy/DefaultExecutionGraphCacheTest.java
Outdated
Show resolved
Hide resolved
...ime/src/test/java/org/apache/flink/runtime/rest/messages/json/JobResultDeserializerTest.java
Outdated
Show resolved
Hide resolved
...ime/src/test/java/org/apache/flink/runtime/rest/messages/json/JobResultDeserializerTest.java
Outdated
Show resolved
Hide resolved
@huwh thanks for your review, i have fixed these |
@Jiabao-Sun @1996fanrui do you have time to review it again? |
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.
Thanks for the quick update. LGTM.
There hasn't been a response in a while. Merging now. |
What is the purpose of the change
Migrate rest package related tests under flink-runtime module to junit5
Brief change log
Migrate rest package related tests under flink-runtime module to junit5
Verifying this change
This change is already covered by existing tests.
Does this pull request potentially affect one of the following parts:
@Public(Evolving)
: noDocumentation