ChenSammi commented on code in PR #8875:
URL: https://github.com/apache/ozone/pull/8875#discussion_r2250897703
##########
hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/OzoneRpcClientTests.java:
##########
@@ -5293,4 +5297,128 @@ public void testGetObjectTagging(BucketLayout
bucketLayout) throws Exception {
assertEquals(tags.size(), tagsRetrieved.size());
assertThat(tagsRetrieved).containsAllEntriesOf(tags);
}
+
+ @Test
+ public void testCreateLifecycleConfiguration() throws Exception {
+ String volumeName = UUID.randomUUID().toString();
+ String bucketName = UUID.randomUUID().toString();
+ store.createVolume(volumeName);
+ store.getVolume(volumeName).createBucket(bucketName);
+ ClientProtocol proxy = store.getClientProxy();
+
+ OmLifecycleConfiguration lcc1 = createOmLifecycleConfiguration(volumeName,
+ bucketName, true);
+ proxy.createLifecycleConfiguration(lcc1);
+
+ // No such bucket
+ OmLifecycleConfiguration lcc3 = createOmLifecycleConfiguration(volumeName,
Review Comment:
Can you add a no such volume case here?
--
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]