KAFKA-16671: enable test for ensureInternalEndpointIsSecured#15868
Conversation
|
@FrankYang0529 please fix the build error |
0cd6988 to
bf427fc
Compare
| ); | ||
| assertEquals( | ||
| FORBIDDEN.getStatusCode(), | ||
| SERVICE_UNAVAILABLE.getStatusCode(), |
There was a problem hiding this comment.
Could you share the details with me?
There was a problem hiding this comment.
Here, if the connector is not started, there is no sessionKey.
There was a problem hiding this comment.
CI can't pass. Not sure whether there is some connector forgot to close. The error is:
java.lang.AssertionError: expected:<503> but was:<403>
at org.junit.Assert.fail(Assert.java:89)
at org.junit.Assert.failNotEquals(Assert.java:835)
at org.junit.Assert.assertEquals(Assert.java:647)
at org.junit.Assert.assertEquals(Assert.java:633)
at org.apache.kafka.connect.integration.SessionedProtocolIntegrationTest.ensureInternalEndpointIsSecured(SessionedProtocolIntegrationTest.java:118)
There was a problem hiding this comment.
503 is a temporary error, because the worker is still in starting. Could you please add a wait to check the 503 first ?
There was a problem hiding this comment.
Added it and ensureInternalEndpointIsSecured can pass in CI environment. Thanks.
3b6345f to
8ea2054
Compare
c8528eb to
71282b7
Compare
| assertEquals( | ||
| BAD_REQUEST.getStatusCode(), | ||
| connect.requestPost(connectorTasksEndpoint, "[]", emptyHeaders).getStatus() | ||
| BAD_REQUEST.getStatusCode(), |
There was a problem hiding this comment.
please revert those unrelated changes
There was a problem hiding this comment.
Revert it. Thanks.
Signed-off-by: PoAn Yang <payang@apache.org>
71282b7 to
e0f1fba
Compare
…5868) Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
…5868) Reviewers: Chia-Ping Tsai <chia7712@gmail.com>
Related JIRA: https://issues.apache.org/jira/browse/KAFKA-16671
Enable the test to see error message. If there is any error, I will close this PR and investigate how to fix. If not, I will change the title to KAFKA-16671.
Committer Checklist (excluded from commit message)