Class S3StorageTest


  • public class S3StorageTest
    extends java.lang.Object
    Tests the S3 storage.
    Author:
    Dennis Pidun, University of Hildesheim
    • Constructor Detail

      • S3StorageTest

        public S3StorageTest()
    • Method Detail

      • list_shouldAskMinio

        public void list_shouldAskMinio()
        Listing shall be handled by MinIO.
      • generateDownloadUrl_shouldAskMinio

        public void generateDownloadUrl_shouldAskMinio()
                                                throws java.lang.Exception
        Generating a download IO shall be handled by MinIO.
        Throws:
        java.lang.Exception - shall not occur
      • generateDownloadUrl_forInvalidKey_returnsNull

        public void generateDownloadUrl_forInvalidKey_returnsNull()
                                                           throws java.lang.Exception
        Generating a download IO for an invalid key shall return null.
        Throws:
        java.lang.Exception - shall not occur
      • getPrefix_isSet

        public void getPrefix_isSet()
        Tests that requesting the prefix works.
      • uploadFile_successful

        public void uploadFile_successful()
                                   throws java.io.IOException,
                                          io.minio.errors.XmlParserException,
                                          io.minio.errors.ServerException,
                                          java.security.NoSuchAlgorithmException,
                                          java.io.IOException,
                                          io.minio.errors.InvalidResponseException,
                                          java.security.InvalidKeyException,
                                          io.minio.errors.InternalException,
                                          io.minio.errors.InsufficientDataException,
                                          io.minio.errors.ErrorResponseException
        Tests that uploading a file works.
        Throws:
        java.io.IOException - shall not occur
        io.minio.errors.XmlParserException - shall not occur
        io.minio.errors.ServerException - shall not occur
        java.security.NoSuchAlgorithmException - shall not occur
        java.io.IOException - shall not occur
        io.minio.errors.InvalidResponseException - shall not occur
        java.security.InvalidKeyException - shall not occur
        io.minio.errors.InternalException - shall not occur
        io.minio.errors.InsufficientDataException - shall not occur
        io.minio.errors.ErrorResponseException - shall not occur
      • uploadFile_fileNotFound

        public void uploadFile_fileNotFound()
                                     throws io.minio.errors.XmlParserException,
                                            io.minio.errors.ServerException,
                                            java.security.NoSuchAlgorithmException,
                                            java.io.IOException,
                                            io.minio.errors.InvalidResponseException,
                                            java.security.InvalidKeyException,
                                            io.minio.errors.InternalException,
                                            io.minio.errors.InsufficientDataException,
                                            io.minio.errors.ErrorResponseException
        Tests that uploading a file correctly fails.
        Throws:
        java.io.IOException - shall not occur
        io.minio.errors.XmlParserException - shall not occur
        io.minio.errors.ServerException - shall not occur
        java.security.NoSuchAlgorithmException - shall not occur
        java.io.IOException - shall not occur
        io.minio.errors.InvalidResponseException - shall not occur
        java.security.InvalidKeyException - shall not occur
        io.minio.errors.InternalException - shall not occur
        io.minio.errors.InsufficientDataException - shall not occur
        io.minio.errors.ErrorResponseException - shall not occur