Tejaskriya commented on code in PR #5170:
URL: https://github.com/apache/ozone/pull/5170#discussion_r1292447178
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/om/TestObjectStoreWithFSO.java:
##########
@@ -473,6 +473,13 @@ public void testListKeysAtDifferentLevels() throws
Exception {
ozoneBucket.listKeys("a/b3/e3", "a/b3/e3/e31.tx");
expectedKeys = new LinkedList<>();
checkKeyList(ozoneKeyIterator, expectedKeys);
+
+ // Key level, prefix=key case
+ ozoneKeyIterator =
+ ozoneBucket.listKeys("a/b1/c1/c1.tx");
+ expectedKeys = new LinkedList<>();
+ expectedKeys.add("a/b1/c1/c1.tx");
+ checkKeyList(ozoneKeyIterator, expectedKeys);
Review Comment:
Thank you for the review! Directory case was covered in one of the existing
cases-
```
ozoneKeyIterator =
ozoneBucket.listKeys("a/b2/d1", null);
expectedKeys = new LinkedList<>();
expectedKeys.add("a/b2/d1/");
expectedKeys.add("a/b2/d1/d11.tx");
checkKeyList(ozoneKeyIterator, expectedKeys);
```
So instead, I have added a test case with trailing slash for dir prefix, and
another one for key directly under the bucket.
--
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]