Prep release 4.1.8 (#6248)
This commit is contained in:
parent
7e83233774
commit
1380d28876
33
CHANGELOG.md
33
CHANGELOG.md
@ -1,6 +1,39 @@
|
||||
Moto Changelog
|
||||
==============
|
||||
|
||||
|
||||
4.1.8
|
||||
-----
|
||||
Docker Digest for 4.1.8: <autopopulateddigest>
|
||||
|
||||
New Methods:
|
||||
* DynamoDB:
|
||||
* batch_execute_statement()
|
||||
* execute_statement()
|
||||
* execute_transaction()
|
||||
|
||||
* Glue:
|
||||
* batch_get_jobs()
|
||||
* delete_job()
|
||||
|
||||
* KMS:
|
||||
* get_public_key()
|
||||
|
||||
Miscellaneous:
|
||||
* Athena: Fixed a bug causing every call to `get_workgroup(WorkGroup="primary")` to fail
|
||||
* AWSLambda: Performance improvement: Docker images are no longer re-downloaded if they already exist
|
||||
* BatchSimple now uses the environment variable MOTO_SIMPLE_BATCH_FAIL_AFTER=0 to determine whether the job should fail, and after how many seconds
|
||||
* EC2: replace_route() now supports the NetworkInterfaceId-parameter
|
||||
* ECR: batch_get_image() now correctly returns images when requested using an older tag
|
||||
* ELBv2: describe_target_health() now returns the correct error message for unregistered targets
|
||||
* S3: copy_object() now adds a checksum to a copied object if requested
|
||||
* S3: get_object() no longer returns a VersionId for non-versioned buckets
|
||||
* SES: Templates now allow a single curly brace, and no longer assume it's part of a variable
|
||||
* SSM: describe_parameters() now allows filtering by existence of tag-name
|
||||
* StepFunctions: The SF_EXECUTION_HISTORY_TYPE=FAILURE environment variable can now be used to generate failure responses for all operations
|
||||
* STS: assume_role() now stores the AccessKey in the requesting account
|
||||
|
||||
|
||||
4.1.7
|
||||
-----
|
||||
Docker Digest for 4.1.7: _sha256:6b877d5efe86562d27f296638d6b163c7987913c203874578d00fa1f83eea000_
|
||||
|
@ -3121,7 +3121,7 @@
|
||||
|
||||
## glue
|
||||
<details>
|
||||
<summary>25% implemented</summary>
|
||||
<summary>26% implemented</summary>
|
||||
|
||||
- [X] batch_create_partition
|
||||
- [ ] batch_delete_connection
|
||||
@ -3133,7 +3133,7 @@
|
||||
- [ ] batch_get_custom_entity_types
|
||||
- [ ] batch_get_data_quality_result
|
||||
- [ ] batch_get_dev_endpoints
|
||||
- [ ] batch_get_jobs
|
||||
- [X] batch_get_jobs
|
||||
- [X] batch_get_partition
|
||||
- [ ] batch_get_triggers
|
||||
- [ ] batch_get_workflows
|
||||
@ -3175,7 +3175,7 @@
|
||||
- [ ] delete_data_quality_ruleset
|
||||
- [X] delete_database
|
||||
- [ ] delete_dev_endpoint
|
||||
- [ ] delete_job
|
||||
- [X] delete_job
|
||||
- [ ] delete_ml_transform
|
||||
- [X] delete_partition
|
||||
- [ ] delete_partition_index
|
||||
@ -4027,7 +4027,7 @@
|
||||
|
||||
## kms
|
||||
<details>
|
||||
<summary>58% implemented</summary>
|
||||
<summary>60% implemented</summary>
|
||||
|
||||
- [X] cancel_key_deletion
|
||||
- [ ] connect_custom_key_store
|
||||
@ -4295,24 +4295,39 @@
|
||||
|
||||
## mediaconnect
|
||||
<details>
|
||||
<summary>60% implemented</summary>
|
||||
<summary>36% implemented</summary>
|
||||
|
||||
- [ ] add_bridge_outputs
|
||||
- [ ] add_bridge_sources
|
||||
- [ ] add_flow_media_streams
|
||||
- [X] add_flow_outputs
|
||||
- [X] add_flow_sources
|
||||
- [X] add_flow_vpc_interfaces
|
||||
- [ ] create_bridge
|
||||
- [X] create_flow
|
||||
- [ ] create_gateway
|
||||
- [ ] delete_bridge
|
||||
- [X] delete_flow
|
||||
- [ ] delete_gateway
|
||||
- [ ] deregister_gateway_instance
|
||||
- [ ] describe_bridge
|
||||
- [X] describe_flow
|
||||
- [ ] describe_gateway
|
||||
- [ ] describe_gateway_instance
|
||||
- [ ] describe_offering
|
||||
- [ ] describe_reservation
|
||||
- [X] grant_flow_entitlements
|
||||
- [ ] list_bridges
|
||||
- [ ] list_entitlements
|
||||
- [X] list_flows
|
||||
- [ ] list_gateway_instances
|
||||
- [ ] list_gateways
|
||||
- [ ] list_offerings
|
||||
- [ ] list_reservations
|
||||
- [X] list_tags_for_resource
|
||||
- [ ] purchase_offering
|
||||
- [ ] remove_bridge_output
|
||||
- [ ] remove_bridge_source
|
||||
- [ ] remove_flow_media_stream
|
||||
- [X] remove_flow_output
|
||||
- [ ] remove_flow_source
|
||||
@ -4322,11 +4337,16 @@
|
||||
- [X] stop_flow
|
||||
- [X] tag_resource
|
||||
- [ ] untag_resource
|
||||
- [ ] update_bridge
|
||||
- [ ] update_bridge_output
|
||||
- [ ] update_bridge_source
|
||||
- [ ] update_bridge_state
|
||||
- [ ] update_flow
|
||||
- [X] update_flow_entitlement
|
||||
- [ ] update_flow_media_stream
|
||||
- [X] update_flow_output
|
||||
- [X] update_flow_source
|
||||
- [ ] update_gateway_instance
|
||||
</details>
|
||||
|
||||
## medialive
|
||||
@ -5123,12 +5143,16 @@
|
||||
|
||||
## ram
|
||||
<details>
|
||||
<summary>20% implemented</summary>
|
||||
<summary>14% implemented</summary>
|
||||
|
||||
- [ ] accept_resource_share_invitation
|
||||
- [ ] associate_resource_share
|
||||
- [ ] associate_resource_share_permission
|
||||
- [ ] create_permission
|
||||
- [ ] create_permission_version
|
||||
- [X] create_resource_share
|
||||
- [ ] delete_permission
|
||||
- [ ] delete_permission_version
|
||||
- [X] delete_resource_share
|
||||
- [ ] disassociate_resource_share
|
||||
- [ ] disassociate_resource_share_permission
|
||||
@ -5139,14 +5163,19 @@
|
||||
- [ ] get_resource_share_invitations
|
||||
- [X] get_resource_shares
|
||||
- [ ] list_pending_invitation_resources
|
||||
- [ ] list_permission_associations
|
||||
- [ ] list_permission_versions
|
||||
- [ ] list_permissions
|
||||
- [ ] list_principals
|
||||
- [ ] list_replace_permission_associations_work
|
||||
- [ ] list_resource_share_permissions
|
||||
- [ ] list_resource_types
|
||||
- [ ] list_resources
|
||||
- [ ] promote_permission_created_from_policy
|
||||
- [ ] promote_resource_share_created_from_policy
|
||||
- [ ] reject_resource_share_invitation
|
||||
- [ ] replace_permission_associations
|
||||
- [ ] set_default_permission_version
|
||||
- [ ] tag_resource
|
||||
- [ ] untag_resource
|
||||
- [X] update_resource_share
|
||||
@ -6867,10 +6896,11 @@
|
||||
|
||||
## wafv2
|
||||
<details>
|
||||
<summary>25% implemented</summary>
|
||||
<summary>23% implemented</summary>
|
||||
|
||||
- [X] associate_web_acl
|
||||
- [ ] check_capacity
|
||||
- [ ] create_api_key
|
||||
- [ ] create_ip_set
|
||||
- [ ] create_regex_pattern_set
|
||||
- [ ] create_rule_group
|
||||
@ -6885,6 +6915,7 @@
|
||||
- [ ] describe_managed_rule_group
|
||||
- [X] disassociate_web_acl
|
||||
- [ ] generate_mobile_sdk_release_url
|
||||
- [ ] get_decrypted_api_key
|
||||
- [ ] get_ip_set
|
||||
- [ ] get_logging_configuration
|
||||
- [ ] get_managed_rule_set
|
||||
@ -6896,6 +6927,7 @@
|
||||
- [ ] get_sampled_requests
|
||||
- [X] get_web_acl
|
||||
- [X] get_web_acl_for_resource
|
||||
- [ ] list_api_keys
|
||||
- [ ] list_available_managed_rule_group_versions
|
||||
- [ ] list_available_managed_rule_groups
|
||||
- [ ] list_ip_sets
|
||||
|
@ -59,7 +59,7 @@ dynamodb
|
||||
|
||||
Pagination is not yet implemented.
|
||||
|
||||
Parsing of the statement is highly experimental - please raise an issue if you find any bugs.
|
||||
Parsing is highly experimental - please raise an issue if you find any bugs.
|
||||
|
||||
|
||||
- [X] execute_transaction
|
||||
|
@ -35,7 +35,7 @@ glue
|
||||
- [ ] batch_get_custom_entity_types
|
||||
- [ ] batch_get_data_quality_result
|
||||
- [ ] batch_get_dev_endpoints
|
||||
- [ ] batch_get_jobs
|
||||
- [X] batch_get_jobs
|
||||
- [X] batch_get_partition
|
||||
- [ ] batch_get_triggers
|
||||
- [ ] batch_get_workflows
|
||||
@ -81,7 +81,7 @@ glue
|
||||
- [ ] delete_data_quality_ruleset
|
||||
- [X] delete_database
|
||||
- [ ] delete_dev_endpoint
|
||||
- [ ] delete_job
|
||||
- [X] delete_job
|
||||
- [ ] delete_ml_transform
|
||||
- [X] delete_partition
|
||||
- [ ] delete_partition_index
|
||||
|
@ -63,7 +63,7 @@ kms
|
||||
- [X] get_key_policy
|
||||
- [X] get_key_rotation_status
|
||||
- [ ] get_parameters_for_import
|
||||
- [ ] get_public_key
|
||||
- [X] get_public_key
|
||||
- [ ] import_key_material
|
||||
- [ ] list_aliases
|
||||
- [X] list_grants
|
||||
|
@ -25,26 +25,41 @@ mediaconnect
|
||||
|
||||
|start-h3| Implemented features for this service |end-h3|
|
||||
|
||||
- [ ] add_bridge_outputs
|
||||
- [ ] add_bridge_sources
|
||||
- [ ] add_flow_media_streams
|
||||
- [X] add_flow_outputs
|
||||
- [X] add_flow_sources
|
||||
- [X] add_flow_vpc_interfaces
|
||||
- [ ] create_bridge
|
||||
- [X] create_flow
|
||||
- [ ] create_gateway
|
||||
- [ ] delete_bridge
|
||||
- [X] delete_flow
|
||||
- [ ] delete_gateway
|
||||
- [ ] deregister_gateway_instance
|
||||
- [ ] describe_bridge
|
||||
- [X] describe_flow
|
||||
- [ ] describe_gateway
|
||||
- [ ] describe_gateway_instance
|
||||
- [ ] describe_offering
|
||||
- [ ] describe_reservation
|
||||
- [X] grant_flow_entitlements
|
||||
- [ ] list_bridges
|
||||
- [ ] list_entitlements
|
||||
- [X] list_flows
|
||||
|
||||
Pagination is not yet implemented
|
||||
|
||||
|
||||
- [ ] list_gateway_instances
|
||||
- [ ] list_gateways
|
||||
- [ ] list_offerings
|
||||
- [ ] list_reservations
|
||||
- [X] list_tags_for_resource
|
||||
- [ ] purchase_offering
|
||||
- [ ] remove_bridge_output
|
||||
- [ ] remove_bridge_source
|
||||
- [ ] remove_flow_media_stream
|
||||
- [X] remove_flow_output
|
||||
- [ ] remove_flow_source
|
||||
@ -54,9 +69,14 @@ mediaconnect
|
||||
- [X] stop_flow
|
||||
- [X] tag_resource
|
||||
- [ ] untag_resource
|
||||
- [ ] update_bridge
|
||||
- [ ] update_bridge_output
|
||||
- [ ] update_bridge_source
|
||||
- [ ] update_bridge_state
|
||||
- [ ] update_flow
|
||||
- [X] update_flow_entitlement
|
||||
- [ ] update_flow_media_stream
|
||||
- [X] update_flow_output
|
||||
- [X] update_flow_source
|
||||
- [ ] update_gateway_instance
|
||||
|
||||
|
@ -28,7 +28,11 @@ ram
|
||||
- [ ] accept_resource_share_invitation
|
||||
- [ ] associate_resource_share
|
||||
- [ ] associate_resource_share_permission
|
||||
- [ ] create_permission
|
||||
- [ ] create_permission_version
|
||||
- [X] create_resource_share
|
||||
- [ ] delete_permission
|
||||
- [ ] delete_permission_version
|
||||
- [X] delete_resource_share
|
||||
- [ ] disassociate_resource_share
|
||||
- [ ] disassociate_resource_share_permission
|
||||
@ -39,14 +43,19 @@ ram
|
||||
- [ ] get_resource_share_invitations
|
||||
- [X] get_resource_shares
|
||||
- [ ] list_pending_invitation_resources
|
||||
- [ ] list_permission_associations
|
||||
- [ ] list_permission_versions
|
||||
- [ ] list_permissions
|
||||
- [ ] list_principals
|
||||
- [ ] list_replace_permission_associations_work
|
||||
- [ ] list_resource_share_permissions
|
||||
- [ ] list_resource_types
|
||||
- [ ] list_resources
|
||||
- [ ] promote_permission_created_from_policy
|
||||
- [ ] promote_resource_share_created_from_policy
|
||||
- [ ] reject_resource_share_invitation
|
||||
- [ ] replace_permission_associations
|
||||
- [ ] set_default_permission_version
|
||||
- [ ] tag_resource
|
||||
- [ ] untag_resource
|
||||
- [X] update_resource_share
|
||||
|
@ -33,6 +33,7 @@ wafv2
|
||||
|
||||
|
||||
- [ ] check_capacity
|
||||
- [ ] create_api_key
|
||||
- [ ] create_ip_set
|
||||
- [ ] create_regex_pattern_set
|
||||
- [ ] create_rule_group
|
||||
@ -55,6 +56,7 @@ wafv2
|
||||
- [ ] describe_managed_rule_group
|
||||
- [X] disassociate_web_acl
|
||||
- [ ] generate_mobile_sdk_release_url
|
||||
- [ ] get_decrypted_api_key
|
||||
- [ ] get_ip_set
|
||||
- [ ] get_logging_configuration
|
||||
- [ ] get_managed_rule_set
|
||||
@ -66,6 +68,7 @@ wafv2
|
||||
- [ ] get_sampled_requests
|
||||
- [X] get_web_acl
|
||||
- [X] get_web_acl_for_resource
|
||||
- [ ] list_api_keys
|
||||
- [ ] list_available_managed_rule_group_versions
|
||||
- [ ] list_available_managed_rule_groups
|
||||
- [ ] list_ip_sets
|
||||
|
@ -1,7 +0,0 @@
|
||||
# batch_simple
|
||||
|
||||
Batch jobs run under `batch_simple` will succeed by default. To make the jobs fail:
|
||||
|
||||
1. set environment variable `MOTO_SIMPLE_BATCH_FAIL_AFTER=0` OR
|
||||
2. set environment variable `MOTO_SIMPLE_BATCH_FAIL_AFTER` to an integer value
|
||||
to make it fail after that number of seconds, ie `MOTO_SIMPLE_BATCH_FAIL_AFTER=4` will fail after 4 seconds
|
@ -15,8 +15,9 @@ from typing import Any, Dict, List, Tuple, Optional
|
||||
|
||||
class BatchSimpleBackend(BaseBackend):
|
||||
"""
|
||||
Implements a Batch-Backend that does not use Docker containers. Submitted Jobs are marked as Success or Fail,
|
||||
depending on the presence and value of MOTO_SIMPLE_BATCH_FAIL_AFTER env var
|
||||
Implements a Batch-Backend that does not use Docker containers. Submitted Jobs are marked as Success by default.
|
||||
|
||||
Set the environment variable MOTO_SIMPLE_BATCH_FAIL_AFTER=0 to fail jobs immediately, or set this variable to a positive integer to control after how many seconds the job fails.
|
||||
|
||||
Annotate your tests with `@mock_batch_simple`-decorator to use this Batch-implementation.
|
||||
"""
|
||||
|
@ -1452,20 +1452,26 @@ class FakeBucket(CloudFormationModel):
|
||||
|
||||
class S3Backend(BaseBackend, CloudWatchMetricProvider):
|
||||
"""
|
||||
Moto implementation for S3.
|
||||
|
||||
Custom S3 endpoints are supported, if you are using a S3-compatible storage solution like Ceph.
|
||||
Example usage:
|
||||
|
||||
.. sourcecode:: python
|
||||
|
||||
os.environ["MOTO_S3_CUSTOM_ENDPOINTS"] = "http://custom.internal.endpoint,http://custom.other.endpoint"
|
||||
|
||||
@mock_s3
|
||||
def test_my_custom_endpoint():
|
||||
boto3.client("s3", endpoint_url="http://custom.internal.endpoint")
|
||||
...
|
||||
|
||||
Note that this only works if the environment variable is set **before** the mock is initialized.
|
||||
|
||||
When using the MultiPart-API manually, the minimum part size is 5MB, just as with AWS. Use the following environment variable to lower this:
|
||||
|
||||
.. sourcecode:: bash
|
||||
|
||||
S3_UPLOAD_PART_MIN_SIZE=256
|
||||
|
||||
"""
|
||||
|
||||
def __init__(self, region_name: str, account_id: str):
|
||||
|
Loading…
Reference in New Issue
Block a user