suneet-s commented on a change in pull request #9306: implement Azure
InputSource reader and deprecate Azure FireHose
URL: https://github.com/apache/druid/pull/9306#discussion_r376828842
##########
File path:
extensions-contrib/azure-extensions/src/test/java/org/apache/druid/data/input/azure/AzureEntityTest.java
##########
@@ -85,6 +85,21 @@ public void test_getUri_returnsLocationUri()
}
+ @Test
+ public void test_readFromStart_returnsExpectedStream() throws Exception
+ {
+ EasyMock.expect(location.getBucket()).andReturn(CONTAINER_NAME);
+ EasyMock.expect(location.getPath()).andReturn(BLOB_NAME);
+ EasyMock.expect(byteSource.openStream(0)).andReturn(INPUT_STREAM);
+ EasyMock.expect(byteSourceFactory.create(CONTAINER_NAME,
BLOB_NAME)).andReturn(byteSource);
+ replayAll();
+
+ azureEntity = new AzureEntity(location, byteSourceFactory);
+
+ InputStream actualInputStream = azureEntity.readFrom(0);
Review comment:
hmm... strange that `readFromStart` isn't visible in this test 🤔
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]