Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-6517 Snapshot support for Ozone
  3. HDDS-8014

[Snapshot] Implement Native Acl Integration tests for Snapshotting

    XMLWordPrintableJSON

Details

    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

          Activity

            People

              mladjangadzic Mladjan Gadzic
              mladjangadzic Mladjan Gadzic
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: