Details
-
Sub-task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
Invoke each of the following methods in the OzoneManager, to read data from a snapshot protected by a KEY based acl.
public OmKeyInfo lookupKey(OmKeyArgs args) throws IOException public KeyInfoWithVolumeContext getKeyInfo(final OmKeyArgs args,boolean assumeS3Context) throws IOException public List<OzoneFileStatus> listStatus(OmKeyArgs args, boolean recursive, String startKey, long numEntries, boolean allowPartialPrefixes) throws IOException public OmKeyInfo lookupFile(OmKeyArgs args) throws IOException public List<OmKeyInfo> listKeys(String volumeName, String bucketName, String startKey, String keyPrefix, int maxKeys) throws IOException public List<OzoneAcl> getAcl(OzoneObj obj) throws IOException
It should be done with junit5, (not junit4.)
Run each with as many of the 3 bucket types as possible, (some methods might not work on certain bucket types.)
Each should also be run as two different users so the acl passes one time and fails one time.
Each method can be invoked with "cluster.getOzoneManager()" like so: !https://github.com/fluidicon.png!ozone/TestCloseContainerHandlingByClient.java at master · apache/ozone
Attachments
Issue Links
- links to