Skip to content

Commit

Permalink
fix: minio Bucket enablePublic access test
Browse files Browse the repository at this point in the history
  • Loading branch information
Juiced66 committed Dec 11, 2024
1 parent 896d5f8 commit 57d5dbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/BucketController.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ describe('BucketController', () => {

test('skip enabling public access if Minio', async () => {
// Change config to isMinio = true for this test
bucketController.config.isMinio = true;
bucketController.config.endpoints['us-east-1'].isMinio = true;

const request = {
input: {
Expand All @@ -332,7 +332,7 @@ describe('BucketController', () => {

// When isMinio = true, it should NOT call deletePublicAccessBlock
expect(mockDeletePublicAccessBlock).not.toHaveBeenCalled();
expect(result).toEqual({ message: 'Public access enabled for bucket "my-bucket".' });
expect(result).toEqual({ message: 'Public access is managed differently for MinIO buckets. Ensure you configure bucket policies or access rules directly on your MinIO server for bucket "my-bucket".' });
});

test('fail to enable public access due to error', async () => {
Expand Down

0 comments on commit 57d5dbc

Please sign in to comment.