desaikomal commented on code in PR #2532:
URL: https://github.com/apache/helix/pull/2532#discussion_r1237471318
##########
helix-rest/src/test/java/org/apache/helix/rest/client/TestCustomRestClient.java:
##########
@@ -158,11 +158,12 @@ public void testPostRequestFormat() throws IOException {
final String echoServer = "http://httpbin.org/post";
CustomRestClientImpl customRestClient = new
CustomRestClientImpl(HttpClients.createDefault());
HttpResponse response = customRestClient.post(echoServer,
Collections.emptyMap());
- JsonNode json = customRestClient.getJsonObject(response);
+ if (response.getStatusLine().getStatusCode() == HttpStatus.SC_OK) {
Review Comment:
Thanks for review. Test is ECHOing the request to outside server. If you
can't reach the outside server, test used to fail. That is why we validate only
if we can successfully reach the end-point. Else part, we can't validate.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]