Prepare release 3.0.5 (#4892)

This commit is contained in:
Bert Blommers 2022-02-26 10:21:11 -01:00 committed by GitHub
parent 58ff549b94
commit 19c5108ecd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 132 additions and 91 deletions

View File

@ -5,8 +5,42 @@ Moto Changelog
----- -----
Docker Digest for 3.0.5: <autopopulateddigest> Docker Digest for 3.0.5: <autopopulateddigest>
New Services:
* Textract:
* get_document_text_detection()
* start_document_text_detection()
New Methods:
* APIGateway:
* delete_gateway_responses()
* get_gateway_response()
* get_gateway_responses()
* put_gateway_response()
* CloudTrail:
* add_tags()
* get_event_selectors()
* get_insight_selectors()
* list_tags()
* put_event_selectors()
* put_insight_selectors()
* remove_tags()
* update_trail()
* CognitoIDP:
* admin_set_user_mfa_preference()
* S3Control:
* create_access_point()
* delete_access_point()
* delete_access_point_policy()
* get_access_point()
* get_access_point_policy()
* get_access_point_policy_status()
Miscellaneous: Miscellaneous:
* APIGateway: put_integration() now supports the timeoutInMillis-parameter
* AWSLambda: Made the docker image repository selectable via the `MOTO_DOCKER_LAMBDA_IMAGE` environment variable. * AWSLambda: Made the docker image repository selectable via the `MOTO_DOCKER_LAMBDA_IMAGE` environment variable.
* Batch: register_job_definition() now supports the parameters `platformCapabilities`, `propagateTags` and `retryStrategy`
* IAM: list_entities_for_policy() now returns the RoleId/GroupId/UserId-attributes
* S3Control is now available in ServerMode.
3.0.4 3.0.4
----- -----

View File

@ -434,7 +434,7 @@
## budgets ## budgets
<details> <details>
<summary>31% implemented</summary> <summary>30% implemented</summary>
- [X] create_budget - [X] create_budget
- [ ] create_budget_action - [ ] create_budget_action
@ -449,6 +449,7 @@
- [ ] describe_budget_action_histories - [ ] describe_budget_action_histories
- [ ] describe_budget_actions_for_account - [ ] describe_budget_actions_for_account
- [ ] describe_budget_actions_for_budget - [ ] describe_budget_actions_for_budget
- [ ] describe_budget_notifications_for_account
- [ ] describe_budget_performance_history - [ ] describe_budget_performance_history
- [X] describe_budgets - [X] describe_budgets
- [X] describe_notifications_for_budget - [X] describe_notifications_for_budget
@ -866,7 +867,7 @@
## cognito-idp ## cognito-idp
<details> <details>
<summary>54% implemented</summary> <summary>55% implemented</summary>
- [X] add_custom_attributes - [X] add_custom_attributes
- [X] admin_add_user_to_group - [X] admin_add_user_to_group
@ -888,7 +889,7 @@
- [X] admin_remove_user_from_group - [X] admin_remove_user_from_group
- [X] admin_reset_user_password - [X] admin_reset_user_password
- [ ] admin_respond_to_auth_challenge - [ ] admin_respond_to_auth_challenge
- [ ] admin_set_user_mfa_preference - [X] admin_set_user_mfa_preference
- [X] admin_set_user_password - [X] admin_set_user_password
- [ ] admin_set_user_settings - [ ] admin_set_user_settings
- [ ] admin_update_auth_event_feedback - [ ] admin_update_auth_event_feedback
@ -4347,7 +4348,7 @@
## s3 ## s3
<details> <details>
<summary>59% implemented</summary> <summary>58% implemented</summary>
- [X] abort_multipart_upload - [X] abort_multipart_upload
- [X] complete_multipart_upload - [X] complete_multipart_upload
@ -4395,6 +4396,7 @@
- [ ] get_bucket_website - [ ] get_bucket_website
- [X] get_object - [X] get_object
- [X] get_object_acl - [X] get_object_acl
- [ ] get_object_attributes
- [X] get_object_legal_hold - [X] get_object_legal_hold
- [X] get_object_lock_configuration - [X] get_object_lock_configuration
- [ ] get_object_retention - [ ] get_object_retention
@ -4449,16 +4451,16 @@
## s3control ## s3control
<details> <details>
<summary>5% implemented</summary> <summary>15% implemented</summary>
- [ ] create_access_point - [X] create_access_point
- [ ] create_access_point_for_object_lambda - [ ] create_access_point_for_object_lambda
- [ ] create_bucket - [ ] create_bucket
- [ ] create_job - [ ] create_job
- [ ] create_multi_region_access_point - [ ] create_multi_region_access_point
- [ ] delete_access_point - [X] delete_access_point
- [ ] delete_access_point_for_object_lambda - [ ] delete_access_point_for_object_lambda
- [ ] delete_access_point_policy - [X] delete_access_point_policy
- [ ] delete_access_point_policy_for_object_lambda - [ ] delete_access_point_policy_for_object_lambda
- [ ] delete_bucket - [ ] delete_bucket
- [ ] delete_bucket_lifecycle_configuration - [ ] delete_bucket_lifecycle_configuration
@ -4471,12 +4473,12 @@
- [ ] delete_storage_lens_configuration_tagging - [ ] delete_storage_lens_configuration_tagging
- [ ] describe_job - [ ] describe_job
- [ ] describe_multi_region_access_point_operation - [ ] describe_multi_region_access_point_operation
- [ ] get_access_point - [X] get_access_point
- [ ] get_access_point_configuration_for_object_lambda - [ ] get_access_point_configuration_for_object_lambda
- [ ] get_access_point_for_object_lambda - [ ] get_access_point_for_object_lambda
- [ ] get_access_point_policy - [X] get_access_point_policy
- [ ] get_access_point_policy_for_object_lambda - [ ] get_access_point_policy_for_object_lambda
- [ ] get_access_point_policy_status - [X] get_access_point_policy_status
- [ ] get_access_point_policy_status_for_object_lambda - [ ] get_access_point_policy_status_for_object_lambda
- [ ] get_bucket - [ ] get_bucket
- [ ] get_bucket_lifecycle_configuration - [ ] get_bucket_lifecycle_configuration
@ -5276,6 +5278,22 @@
- [ ] untag_resource - [ ] untag_resource
</details> </details>
## textract
<details>
<summary>20% implemented</summary>
- [ ] analyze_document
- [ ] analyze_expense
- [ ] analyze_id
- [ ] detect_document_text
- [ ] get_document_analysis
- [X] get_document_text_detection
- [ ] get_expense_analysis
- [ ] start_document_analysis
- [X] start_document_text_detection
- [ ] start_expense_analysis
</details>
## timestream-write ## timestream-write
<details> <details>
<summary>80% implemented</summary> <summary>80% implemented</summary>
@ -5592,7 +5610,6 @@
- sso-oidc - sso-oidc
- storagegateway - storagegateway
- synthetics - synthetics
- textract
- timestream-query - timestream-query
- transfer - transfer
- translate - translate

View File

@ -40,6 +40,7 @@ budgets
- [ ] describe_budget_action_histories - [ ] describe_budget_action_histories
- [ ] describe_budget_actions_for_account - [ ] describe_budget_actions_for_account
- [ ] describe_budget_actions_for_budget - [ ] describe_budget_actions_for_budget
- [ ] describe_budget_notifications_for_account
- [ ] describe_budget_performance_history - [ ] describe_budget_performance_history
- [X] describe_budgets - [X] describe_budgets

View File

@ -45,7 +45,7 @@ cognito-idp
- [X] admin_remove_user_from_group - [X] admin_remove_user_from_group
- [X] admin_reset_user_password - [X] admin_reset_user_password
- [ ] admin_respond_to_auth_challenge - [ ] admin_respond_to_auth_challenge
- [ ] admin_set_user_mfa_preference - [X] admin_set_user_mfa_preference
- [X] admin_set_user_password - [X] admin_set_user_password
- [ ] admin_set_user_settings - [ ] admin_set_user_settings
- [ ] admin_update_auth_event_feedback - [ ] admin_update_auth_event_feedback

View File

@ -73,6 +73,7 @@ s3
- [ ] get_bucket_website - [ ] get_bucket_website
- [X] get_object - [X] get_object
- [X] get_object_acl - [X] get_object_acl
- [ ] get_object_attributes
- [X] get_object_legal_hold - [X] get_object_legal_hold
- [X] get_object_lock_configuration - [X] get_object_lock_configuration
- [ ] get_object_retention - [ ] get_object_retention

View File

@ -12,8 +12,6 @@
s3control s3control
========= =========
.. autoclass:: moto.s3control.models.S3ControlBackend
|start-h3| Example usage |end-h3| |start-h3| Example usage |end-h3|
.. sourcecode:: python .. sourcecode:: python
@ -27,14 +25,14 @@ s3control
|start-h3| Implemented features for this service |end-h3| |start-h3| Implemented features for this service |end-h3|
- [ ] create_access_point - [X] create_access_point
- [ ] create_access_point_for_object_lambda - [ ] create_access_point_for_object_lambda
- [ ] create_bucket - [ ] create_bucket
- [ ] create_job - [ ] create_job
- [ ] create_multi_region_access_point - [ ] create_multi_region_access_point
- [ ] delete_access_point - [X] delete_access_point
- [ ] delete_access_point_for_object_lambda - [ ] delete_access_point_for_object_lambda
- [ ] delete_access_point_policy - [X] delete_access_point_policy
- [ ] delete_access_point_policy_for_object_lambda - [ ] delete_access_point_policy_for_object_lambda
- [ ] delete_bucket - [ ] delete_bucket
- [ ] delete_bucket_lifecycle_configuration - [ ] delete_bucket_lifecycle_configuration
@ -47,12 +45,16 @@ s3control
- [ ] delete_storage_lens_configuration_tagging - [ ] delete_storage_lens_configuration_tagging
- [ ] describe_job - [ ] describe_job
- [ ] describe_multi_region_access_point_operation - [ ] describe_multi_region_access_point_operation
- [ ] get_access_point - [X] get_access_point
- [ ] get_access_point_configuration_for_object_lambda - [ ] get_access_point_configuration_for_object_lambda
- [ ] get_access_point_for_object_lambda - [ ] get_access_point_for_object_lambda
- [ ] get_access_point_policy - [X] get_access_point_policy
- [ ] get_access_point_policy_for_object_lambda - [ ] get_access_point_policy_for_object_lambda
- [ ] get_access_point_policy_status - [X] get_access_point_policy_status
We assume the policy status is always public
- [ ] get_access_point_policy_status_for_object_lambda - [ ] get_access_point_policy_status_for_object_lambda
- [ ] get_bucket - [ ] get_bucket
- [ ] get_bucket_lifecycle_configuration - [ ] get_bucket_lifecycle_configuration

View File

@ -8,9 +8,9 @@
</h3> </h3>
========== ========
textract textract
========== ========
.. autoclass:: moto.textract.models.TextractBackend .. autoclass:: moto.textract.models.TextractBackend
@ -27,19 +27,14 @@ textract
|start-h3| Implemented features for this service |end-h3| |start-h3| Implemented features for this service |end-h3|
- [ ] analyze_document - [ ] analyze_document
- [ ] analyze_expense - [ ] analyze_expense
- [ ] analyze_id - [ ] analyze_id
- [ ] can_paginate - [ ] detect_document_text
- [ ] detect_document_text - [ ] get_document_analysis
- [ ] get_document_analysis - [X] get_document_text_detection
- [X] get_document_text_detection - [ ] get_expense_analysis
- [ ] get_expense_analysis - [ ] start_document_analysis
- [ ] get_paginator - [X] start_document_text_detection
- [ ] get_waiter - [ ] start_expense_analysis
- [ ] start_document_analysis
- [X] start_document_text_detection
- [ ] start_expense_analysis
Pagination has not yet been implemented

View File

@ -1156,7 +1156,7 @@ Moto will run on port 5000 by default. This can be overwritten by setting an env
.. sourcecode:: bash .. sourcecode:: bash
# This env var will be propagated to the Docker containers # This env var will be propagated to the Docker container running the Lambda functions
MOTO_PORT=5000 moto_server MOTO_PORT=5000 moto_server
The Docker container uses the default network mode, `bridge`. The Docker container uses the default network mode, `bridge`.
@ -1172,7 +1172,11 @@ The following environment variables are available for fine-grained control over
# Note that this option will be ignored if MOTO_DOCKER_NETWORK_NAME is also set # Note that this option will be ignored if MOTO_DOCKER_NETWORK_NAME is also set
MOTO_DOCKER_NETWORK_MODE=host moto_server MOTO_DOCKER_NETWORK_MODE=host moto_server
The Docker image can be overridden using an environment variable: ``MOTO_DOCKER_LAMBDA_IMAGE``. The Docker images used by Moto are taken from the `lambci/lambda`-repo by default. Use the following environment variable to configure a different repo:
.. sourcecode:: bash
MOTO_DOCKER_LAMBDA_IMAGE=mLupin/docker-lambda
.. note:: When using the decorators, a Docker container cannot reach Moto, as it does not run as a server. Any boto3-invocations used within your Lambda will try to connect to AWS. .. note:: When using the decorators, a Docker container cannot reach Moto, as it does not run as a server. Any boto3-invocations used within your Lambda will try to connect to AWS.
""" """

View File

@ -43,14 +43,6 @@ class AccessPoint(BaseModel):
class S3ControlBackend(BaseBackend): class S3ControlBackend(BaseBackend):
"""
S3-Control cannot be accessed via the MotoServer without a modification of the hosts file on your system.
This is due to the fact that the URL to the host is in the form of:
ACCOUNT_ID.s3-control.amazonaws.com
That Account ID part is the problem. If you want to make use of the moto server, update your hosts file for `THE_ACCOUNT_ID_FOR_MOTO.localhost` and this will work fine.
"""
def __init__(self, region_name=None): def __init__(self, region_name=None):
self.region_name = region_name self.region_name = region_name
self.public_access_block = None self.public_access_block = None

View File

@ -1,5 +1,7 @@
TestAccAWSAccessKey TestAccAWSAccessKey
TestAccAWSAcmCertificateDataSource TestAccAWSAcmCertificateDataSource
TestAccAWSAPIGatewayGatewayResponse
TestAccAWSAPIGatewayStage
TestAccAWSAPIGatewayV2Authorizer TestAccAWSAPIGatewayV2Authorizer
TestAccAWSAPIGatewayV2IntegrationResponse TestAccAWSAPIGatewayV2IntegrationResponse
TestAccAWSAPIGatewayV2Model TestAccAWSAPIGatewayV2Model
@ -26,7 +28,6 @@ TestAccAWSCloudWatchEventRule
TestAccAWSCloudWatchEventTarget_ssmDocument TestAccAWSCloudWatchEventTarget_ssmDocument
TestAccAWSCloudwatchLogGroupDataSource TestAccAWSCloudwatchLogGroupDataSource
TestAccAWSCloudWatchMetricAlarm TestAccAWSCloudWatchMetricAlarm
TestAccAWSDAX
TestAccAWSDataSourceCloudwatch TestAccAWSDataSourceCloudwatch
TestAccAWSDataSourceElasticBeanstalkHostedZone TestAccAWSDataSourceElasticBeanstalkHostedZone
TestAccAWSDataSourceIAMGroup TestAccAWSDataSourceIAMGroup
@ -36,45 +37,60 @@ TestAccAWSDataSourceIAMPolicyDocument
TestAccAWSDataSourceIAMRole TestAccAWSDataSourceIAMRole
TestAccAWSDataSourceIAMSessionContext TestAccAWSDataSourceIAMSessionContext
TestAccAWSDataSourceIAMUser TestAccAWSDataSourceIAMUser
TestAccAWSDAX
TestAccAWSDefaultSecurityGroup_ TestAccAWSDefaultSecurityGroup_
TestAccAWSDefaultSubnet TestAccAWSDefaultSubnet
TestAccAWSDefaultTagsDataSource TestAccAWSDefaultTagsDataSource
TestAccAWSDynamoDbTableItem TestAccAWSDynamoDbTableItem
TestAccAWSEc2CarrierGateway
TestAccAWSEc2InstanceTypeOfferingDataSource TestAccAWSEc2InstanceTypeOfferingDataSource
TestAccAWSEc2InstanceTypeOfferingsDataSource TestAccAWSEc2InstanceTypeOfferingsDataSource
TestAccAwsEc2ManagedPrefixList
TestAccAWSEc2Tag TestAccAWSEc2Tag
TestAccAWSEc2TransitGateway TestAccAWSEc2TransitGateway
TestAccAWSEc2TransitGatewayRoute
TestAccAWSEc2TransitGatewayDataSource TestAccAWSEc2TransitGatewayDataSource
TestAccAWSEc2TransitGatewayPeeringAttachment
TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource
TestAccAWSEc2TransitGatewayRoute
TestAccAWSEc2TransitGatewayRouteTable TestAccAWSEc2TransitGatewayRouteTable
TestAccAWSEc2TransitGatewayRouteTableDataSource TestAccAWSEc2TransitGatewayRouteTableDataSource
TestAccAWSEc2TransitGatewayRouteTablePropagation TestAccAWSEc2TransitGatewayRouteTablePropagation
TestAccAWSEc2TransitGatewayVpcAttachment_basic TestAccAWSEc2TransitGatewayVpcAttachmentAccepter
TestAccAWSEc2TransitGatewayVpcAttachment_disappears
TestAccAWSEc2TransitGatewayVpcAttachment_ApplianceModeSupport TestAccAWSEc2TransitGatewayVpcAttachment_ApplianceModeSupport
TestAccAWSEc2TransitGatewayVpcAttachment_basic
TestAccAWSEc2TransitGatewayVpcAttachmentDataSource
TestAccAWSEc2TransitGatewayVpcAttachment_disappears
TestAccAWSEc2TransitGatewayVpcAttachment_DnsSupport TestAccAWSEc2TransitGatewayVpcAttachment_DnsSupport
TestAccAWSEc2TransitGatewayVpcAttachment_SharedTransitGateway TestAccAWSEc2TransitGatewayVpcAttachment_SharedTransitGateway
TestAccAWSEc2TransitGatewayVpcAttachmentAccepter
TestAccAWSEc2TransitGatewayVpcAttachmentDataSource
TestAccAWSEc2TransitGatewayVpnAttachmentDataSource TestAccAWSEc2TransitGatewayVpnAttachmentDataSource
TestAccAWSEc2TransitGatewayPeeringAttachment
TestAccAWSEc2TransitGatewayPeeringAttachmentDataSource
TestAccAWSEcrLifecyclePolicy TestAccAWSEcrLifecyclePolicy
TestAccAWSEcrRegistryPolicy TestAccAWSEcrRegistryPolicy
TestAccAWSEcrReplicationConfiguration TestAccAWSEcrReplicationConfiguration
TestAccAWSEcrRepository TestAccAWSEcrRepository
TestAccAWSEcrRepositoryDataSource TestAccAWSEcrRepositoryDataSource
TestAccAWSEcrRepositoryPolicy TestAccAWSEcrRepositoryPolicy
TestAccAWSEgressOnlyInternetGateway
TestAccAWSElasticBeanstalkSolutionStackDataSource TestAccAWSElasticBeanstalkSolutionStackDataSource
TestAccAWSElbHostedZoneId TestAccAWSElbHostedZoneId
TestAccAWSElbServiceAccount TestAccAWSElbServiceAccount
TestAccAWSENI_basic
TestAccAWSENI_disappears
TestAccAWSENI_IPv6
TestAccAWSENI_PrivateIpsCount
TestAccAWSENI_SourceDestCheck
TestAccAWSENI_Tags
TestAccAWSFms TestAccAWSFms
TestAccAWSGroupMembership TestAccAWSGroupMembership
TestAccAWSIAMAccountAlias TestAccAWSIAMAccountAlias
TestAccAWSIAMGroup_
TestAccAWSIAMGroupPolicy TestAccAWSIAMGroupPolicy
TestAccAWSIAMGroupPolicyAttachment TestAccAWSIAMGroupPolicyAttachment
TestAccAWSIAMOpenIDConnectProvider
TestAccAWSIAMPolicy_
TestAccAWSIAMRole TestAccAWSIAMRole
TestAccAWSIAMRolePolicy
TestAccAWSIAMUserPolicy TestAccAWSIAMUserPolicy
TestAccAWSInternetGateway
TestAccAWSIotEndpointDataSource TestAccAWSIotEndpointDataSource
TestAccAWSIotThing TestAccAWSIotThing
TestAccAWSIPRanges TestAccAWSIPRanges
@ -82,54 +98,33 @@ TestAccAWSKinesisStream
TestAccAWSKmsAlias TestAccAWSKmsAlias
TestAccAWSKmsSecretDataSource TestAccAWSKmsSecretDataSource
TestAccAWSMq TestAccAWSMq
TestAccAWSNatGateway
TestAccAWSPartition TestAccAWSPartition
TestAccAWSProvider TestAccAWSProvider
TestAccAWSRedshiftServiceAccount TestAccAWSRedshiftServiceAccount
TestAccAWSRolePolicyAttachment TestAccAWSRolePolicyAttachment
TestAccAWSRouteTable_
TestAccAWSRouteTableAssociation_
TestAccAWSS3Bucket_forceDestroyWithObjectLockEnabled
TestAccAWSS3BucketPolicy
TestAccAWSS3BucketPublicAccessBlock
TestAccAWSS3ObjectCopy
TestAccAWSSageMakerPrebuiltECRImage
TestAccAWSSecurityGroup_
TestAccAWSSecurityGroupRule_
TestAccAWSServiceDiscovery
TestAccAWSSNSSMSPreferences TestAccAWSSNSSMSPreferences
TestAccAWSSNSTopicPolicy TestAccAWSSNSTopicPolicy
TestAccAWSSageMakerPrebuiltECRImage
TestAccAWSServiceDiscovery
TestAccAWSSQSQueuePolicy TestAccAWSSQSQueuePolicy
TestAccAWSSSMDocument TestAccAWSSSMDocument
TestValidateSSMDocumentPermissions TestAccAWSSsmDocumentDataSource
TestAccAWSSsmParameterDataSource TestAccAWSSsmParameterDataSource
TestAccAWSUserGroupMembership TestAccAWSUserGroupMembership
TestAccAWSUserPolicyAttachment TestAccAWSUserPolicyAttachment
TestAccAWSUserSSHKey TestAccAWSUserSSHKey
TestAccAWSVpc_ TestAccAWSVpc_
TestAccAWSAPIGatewayGatewayResponse TestAccAWSVpcEndpointService
TestAccAWSAPIGatewayStage
TestAccAWSSsmDocumentDataSource
TestAccAwsEc2ManagedPrefixList
TestAccAWSEgressOnlyInternetGateway
TestAccAWSSecurityGroup_
TestAccAWSInternetGateway
TestAccAWSSecurityGroupRule_
TestAccAWSVpnGateway TestAccAWSVpnGateway
TestAccAWSVpnGatewayAttachment TestAccAWSVpnGatewayAttachment
TestAccAWSEc2CarrierGateway
TestAccDataSourceAwsNetworkInterface_ TestAccDataSourceAwsNetworkInterface_
TestAccAWSNatGateway TestValidateSSMDocumentPermissions
TestAccAWSRouteTable_
TestAccAWSRouteTableAssociation_
TestAccAWSS3Bucket_forceDestroyWithObjectLockEnabled
TestAccAWSENI_PrivateIpsCount
TestAccAWSENI_SourceDestCheck
TestAccAWSENI_Tags
TestAccAWSENI_basic
TestAccAWSENI_IPv6
TestAccAWSENI_disappears
TestAccAWSS3BucketPolicy
TestAccAWSS3BucketPublicAccessBlock
TestAccAWSS3ObjectCopy
TestAccAWSIAMPolicy_
TestAccAWSIAMGroup_
TestAccAWSIAMRolePolicy
TestAccAWSIAMUserPolicy
TestAccAWSIAMGroupPolicy
TestAccAWSDataSourceIAMRole
TestAccAWSDataSourceIAMUser
TestAccAWSIAMAccountAlias
TestAccAWSIAMOpenIDConnectProvider
TestAccAWSVpcEndpointService