Update for use-case of Get - listing a single file - to pass that file name in, to avoid listing huge directory when not needed

This commit is contained in:
2025-04-08 13:35:08 -05:00
parent 64278e674b
commit 6f1e9413f6
3 changed files with 78 additions and 13 deletions

View File

@ -62,6 +62,23 @@ public class S3QueryActionTest extends BaseS3Test
/*******************************************************************************
**
*******************************************************************************/
@Test
public void testGet() throws QException
{
QueryInput queryInput = new QueryInput(TestUtils.TABLE_NAME_BLOB_S3)
.withFilter(new QQueryFilter(new QFilterCriteria("fileName", QCriteriaOperator.EQUALS, "BLOB-1.txt")));
S3QueryAction s3QueryAction = new S3QueryAction();
s3QueryAction.setS3Utils(getS3Utils());
QueryOutput queryOutput = s3QueryAction.execute(queryInput);
Assertions.assertEquals(1, queryOutput.getRecords().size(), "Expected # of rows from query");
}
/*******************************************************************************
**
*******************************************************************************/