top of page

"When you clean the code, don't forget: it cleans you.”

bugreaper-minio

Module for interaction with Minio

  • Config part(in progress)

  • Exaple link (in progress) LINK

  • Other general info

  • Every method has Allure step

  • Some methods has attachments for report

Config

# bugreaper.yml

modules:
  minio:
    url: http://localhost
    port: 9000
    username: admin
    password: password
    await: 300 # optional
    max-upload-file-size: 1024 # optional
    max-download-file-size: 2048 # optional
 

Interaction:

cleanBucket

createBucket

deleteEmptyBucket

deleteFilledBucket

deleteObjectFromBucket

shareObjectInBucket

uploadFileToBucket

uploadFileToBucket

uploadFileToBucket

downloadObjectFromBucket

Asserts:

Get data:

seeBucketExists

seeBucketIsEmpty

seeBucketIsNotEmpty

seeBucketDoesNotExist

seeObjectExists

seeObjectDoesNotExist

seeObjectsCountIsExactly

seeObjectsCountIsGreaterThan

seeObjectsCountIsLessThan

seeObjectSizeExactly

seeObjectSizeIsGreaterThan

seeObjectSizeIsLessThan

getBucketsList

getObjectsCountInBucket

getObjectSize

getObjectsList

objectExistsStatus

readObjectFromBucket

Configs:

.withMaxDownloadObjectSize

.withMaxUploadSize

.withAwaitMs

.withDownloadBufferSize

Interactions

cleanBucket

(String bucketName)

Remove all objects from bucket

createBucket

(String bucketName)

Create new bucket

No error if the bucket already exists (the call is ignored and existing objects remain)

deleteEmptyBucket

(String bucketName)

Delete only empty bucket

@throws MinioHelperException if bucket not empty

deleteFilledBucket

(String bucketName)

Delete bucket (empty or filled)

deleteObjectFromBucket

(String bucketName, String objectName)

Delete object in bucket

shareObjectInBucket

(String bucketName, String objectName)

Share object in bucket

Attach: shared link

@return string with url fordownload

uploadFileToBucket

(String bucketName, String filePathName)

Upload object to bucket with same name

Max upload file size default: maxUploadFileSize, can be changed by: withMaxUploadSize(int)

uploadFileToBucket

(String bucketName, String filePathName, String objectName)

Upload object to bucket with custom name

Max upload file size default: maxUploadFileSize, can be changed by: withMaxUploadSize(int)

uploadFileToBucket

(String bucketName, String filePathName, String objectName, String contentType)

Upload object to bucket with custom name and type

Max upload file size default: maxUploadFileSize, can be changed by: withMaxUploadSize(int)

downloadObjectFromBucket

String bucketName, String objectName, String filePathName)

Download object to file in test resources

Max read/download object size default: maxDownloadObjectSize, can be changed by: withMaxDownloadObjectSize(int)

Asserts

seeBucketExists

(String bucketName)

Assert that bucket exists

seeBucketIsEmpty

(String bucketName)

Assert that bucket is empty

seeBucketIsNotEmpty

(String bucketName)

Assert that bucket is not empty

seeBucketDoesNotExist

(String bucketName)

Assert that bucket does not exist

seeObjectExists

(String bucketName, String objectName)

Assert that object exist

seeObjectDoesNotExist

(String bucketName, String objectName)

Assert that object does not exist

seeObjectsCountIsExactly

(String bucketName, int expectedCount)

Assert number of objects in bucket exactly as expected

seeObjectsCountIsGreaterThan

(String bucketName, int minCount)

Assert number of objects in bucket greater than minSize

seeObjectsCountIsLessThan

(String bucketName, int maxCount);

Assert number of objects in bucket less than maxCount

seeObjectSizeExactly

(String bucketName, String objectName, long expectedSize)

Assert size of object in bucket exactly as expected

size in bytes

seeObjectSizeIsGreaterThan

(String bucketName, String objectName, long minSize)

Assert size of object in bucket greater than minSize

size in bytes

seeObjectSizeIsLessThan

(String bucketName, String objectName, long maxSize)

Assert size of objects in bucket less than maxSize

size in bytes

Get Data

getBucketsList

Return list of buckets

attach: list with bucket names

return AssertableStringList

getObjectsCountInBucket

(String bucketName)

Return objects count in bucket

getObjectSize

(String bucketName, String objectName)

Return object size in bytes

getObjectsList

(String bucketName)

Return objects count in bucket

attach: list with objects names

return AssertableStringList

objectExistsStatus

(String bucketName, String objectName)

Return exists status of object

readObjectFromBucket

(String bucketName, String objectName)

Read object from bucket

attach: object content

return String with content
Max read/download object size default: maxDownloadObjectSize, can be changed by: withMaxDownloadObjectSize(int)

Configs

.withMaxDownloadObjectSize

(int maxDownloadObjectSize)

Configure max size for file to download/read

max size in bytes for object to download/read

.withMaxUploadSize

(int maxUploadSize)

Configure max size for file to upload

max size in bytes for file to upload

.withAwaitMs

(int awaitMs)

Configure await in asserts with await

ms await

.withDownloadBufferSize

(int downloadBufferSize)

Configure download buffer size

buffer size for file download

© 2026 BUGREAPER

bottom of page