You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Mladjan Gadzic (Jira)" <ji...@apache.org> on 2023/02/22 19:54:00 UTC
[jira] [Created] (HDDS-8014) Implement Native Acl Integration tests for Snapshotting
Mladjan Gadzic created HDDS-8014:
------------------------------------
Summary: Implement Native Acl Integration tests for Snapshotting
Key: HDDS-8014
URL: https://issues.apache.org/jira/browse/HDDS-8014
Project: Apache Ozone
Issue Type: Sub-task
Reporter: Mladjan Gadzic
Assignee: Mladjan Gadzic
Invoke each of the following methods in the OzoneManager, to read data from a snapshot protected by a KEY based acl.
{code:java}
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
{code}
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|https://github.com/apache/ozone/blob/master/hadoop-ozone/integration-test/src/test/java/org/apache/hadoop/ozone/client/rpc/TestCloseContainerHandlingByClient.java#L154]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org