test_s3.py::test_bucket_list_distinct fails when testing against AWS S3
- Dominant language
- Python
- Stars
- 372
- Forks
- 328
- PR merge metrics
- No merged PRs in 30d
Description
```
`
s3tests_boto3/functional/__init__.py:315:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
s3tests_boto3/functional/__init__.py:285: in teardown
nuke_prefixed_buckets(prefix=prefix)
s3tests_boto3/functional/__init__.py:159: in nuke_prefixed_buckets
raise err
s3tests_boto3/functional/__init__.py:150: in nuke_prefixed_buckets
nuke_bucket(client, bucket_name)
s3tests_boto3/functional/__init__.py:104: in nuke_bucket
delete = client.delete_objects(Bucket=bucket,
.tox/py/lib/python3.11/site-packages/botocore/client.py:514: in _api_call
return self._make_api_call(operation_name, kwargs)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = , operation_name = 'DeleteObjects'
api_params = {'Bucket': 'vishnu-ceph-z9cpnnzn83s0deb40-1', 'BypassGovernanceRetention': True, 'Delete': {'Objects': [{'Key': 'asdf', 'VersionId': 'null'}], 'Quiet': True}}
E botocore.exceptions.ClientError: An error occurred (InvalidArgument) when calling the DeleteObjects operation: x-amz-bypass-governance-retention is only applicable to Object Lock enabled buckets.
.tox/py/lib/python3.11/site-packages/botocore/client.py:938: ClientError
```
`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with s3tests_boto3/functional/__init__.py, especially nuke_bucket and nuke_prefixed_buckets, then run test_s3.py::test_bucket_list_distinct against AWS S3. Done means teardown completes without the InvalidArgument error about x-amz-bypass-governance-retention.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws, python
- Domain
- cloud, testing
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100