xiangfu0 commented on code in PR #17167:
URL: https://github.com/apache/pinot/pull/17167#discussion_r3038888258
##########
pinot-controller/src/test/java/org/apache/pinot/controller/api/PinotFileUploadTest.java:
##########
@@ -58,8 +58,9 @@ public void setUp()
@Test
public void testUploadBogusData()
throws Exception {
+ String uploadUrl = TEST_INSTANCE.getAdminClient().getSegmentUploadUrl();
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
- HttpPost httpPost = new
HttpPost(TEST_INSTANCE.getControllerRequestURLBuilder().forDataFileUpload());
+ HttpPost httpPost = new HttpPost(uploadUrl);
Review Comment:
Should create a `PinotFileIngestClient` to replace sendHttpPost
--
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]