Skip to content

check_credentials(write=True) fails when credential only has the write permission. #11

@FledgeXu

Description

@FledgeXu

As I mentioned earlier, When credential only has the write permission, the check_credentials(write=True) will fail.

Repeat code:

from kiwixstorage import KiwixStorage
# This key only has write permission
a = KiwixStorage("YOUR KEY")
a.check_credentials(write=True)

The reasons is we accidentally call the delete_obejct in test_access_write

finally:
self.client.delete_object(Bucket=self.bucket_name, Key=key)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions