Docs: mark S3:put_public_access_block() as implemented (#7035)
This commit is contained in:
parent
e7156a7642
commit
b54863523b
@ -6173,7 +6173,7 @@
|
||||
|
||||
## s3
|
||||
<details>
|
||||
<summary>64% implemented</summary>
|
||||
<summary>65% implemented</summary>
|
||||
|
||||
- [X] abort_multipart_upload
|
||||
- [X] complete_multipart_upload
|
||||
@ -6266,7 +6266,7 @@
|
||||
- [X] put_object_lock_configuration
|
||||
- [X] put_object_retention
|
||||
- [ ] put_object_tagging
|
||||
- [ ] put_public_access_block
|
||||
- [X] put_public_access_block
|
||||
- [ ] restore_object
|
||||
- [X] select_object_content
|
||||
- [X] upload_part
|
||||
|
@ -143,7 +143,7 @@ s3
|
||||
- [X] put_object_lock_configuration
|
||||
- [X] put_object_retention
|
||||
- [ ] put_object_tagging
|
||||
- [ ] put_public_access_block
|
||||
- [X] put_public_access_block
|
||||
- [ ] restore_object
|
||||
- [X] select_object_content
|
||||
|
||||
|
@ -2235,7 +2235,7 @@ class S3Backend(BaseBackend, CloudWatchMetricProvider):
|
||||
raise InvalidRequest("PutBucketAccelerateConfiguration")
|
||||
bucket.set_accelerate_configuration(accelerate_configuration)
|
||||
|
||||
def put_bucket_public_access_block(
|
||||
def put_public_access_block(
|
||||
self, bucket_name: str, pub_block_config: Optional[Dict[str, Any]]
|
||||
) -> None:
|
||||
bucket = self.get_bucket(bucket_name)
|
||||
|
@ -922,7 +922,7 @@ class S3Response(BaseResponse):
|
||||
|
||||
elif "publicAccessBlock" in querystring:
|
||||
pab_config = self._parse_pab_config()
|
||||
self.backend.put_bucket_public_access_block(
|
||||
self.backend.put_public_access_block(
|
||||
bucket_name, pab_config["PublicAccessBlockConfiguration"]
|
||||
)
|
||||
return ""
|
||||
|
@ -22,9 +22,7 @@ def test_s3_public_access_block_to_config_dict():
|
||||
}
|
||||
|
||||
# Add a public access block:
|
||||
s3_config_query_backend.put_bucket_public_access_block(
|
||||
"bucket1", public_access_block
|
||||
)
|
||||
s3_config_query_backend.put_public_access_block("bucket1", public_access_block)
|
||||
|
||||
result = s3_config_query_backend.buckets[
|
||||
"bucket1"
|
||||
|
Loading…
Reference in New Issue
Block a user