From 0255717edd0252608789d06f1452cee420819980 Mon Sep 17 00:00:00 2001 From: Bert Blommers Date: Sat, 27 Jan 2024 13:44:03 -0100 Subject: [PATCH] Prep Release V5 --- CHANGELOG.md | 30 ++++++++++++++++++++++++++++ docs/docs/services/backup.rst | 11 ---------- docs/docs/services/identitystore.rst | 4 ++++ docs/docs/services/kms.rst | 1 + moto/__init__.py | 2 +- moto/backup/models.py | 4 ++-- moto/core/models.py | 2 +- 7 files changed, 39 insertions(+), 15 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 020afaaf2..8ba7f5b60 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,36 @@ Moto Changelog ============== +5.0.0 +----- +Docker Digest for 5.0.0: + + General: + * All decorators have been replaced with a single decorator: + `mock_aws` + + * The `mock_batch_simple` and `mock_lambda_simple` decorators can now be configured using the `config`-parameter: + `@mock_aws(config={"batch": {"use_docker": False}, "lambda": {"use_docker": False}})` + + * It is now possible to configure methods/services which should reach out to AWS. + @mock_aws( + config={"core": {"mock_credentials": False, "passthrough": {"urls": [], "services": []}}} + ) + + * All requests now return a RequestId + + Miscellaneous: + + * IAM: The AWS managed Policies are no longer loaded by default. + If your application depends on these policies, tell Moto explicitly to load them like so: + + @mock_aws(config={"iam": {"load_aws_managed_policies": True}}) + + Or by setting an environment variable: + MOTO_IAM_LOAD_MANAGED_POLICIES=true + + * S3: list_objects() now returns a hashed ContinuationToken + 4.2.14 ----- diff --git a/docs/docs/services/backup.rst b/docs/docs/services/backup.rst index a42837399..aa5502ff2 100644 --- a/docs/docs/services/backup.rst +++ b/docs/docs/services/backup.rst @@ -14,17 +14,6 @@ backup .. autoclass:: moto.backup.models.BackupBackend -|start-h3| Example usage |end-h3| - -.. sourcecode:: python - - @mock_backup - def test_backup_behaviour: - boto3.client("backup") - ... - - - |start-h3| Implemented features for this service |end-h3| - [ ] cancel_legal_hold diff --git a/docs/docs/services/identitystore.rst b/docs/docs/services/identitystore.rst index a588595bf..27222d377 100644 --- a/docs/docs/services/identitystore.rst +++ b/docs/docs/services/identitystore.rst @@ -26,6 +26,10 @@ identitystore - [ ] describe_group_membership - [X] describe_user - [X] get_group_id + + The ExternalId alternate identifier is not yet implemented + + - [ ] get_group_membership_id - [ ] get_user_id - [ ] is_member_in_groups diff --git a/docs/docs/services/kms.rst b/docs/docs/services/kms.rst index 4395958d8..1970480cf 100644 --- a/docs/docs/services/kms.rst +++ b/docs/docs/services/kms.rst @@ -84,6 +84,7 @@ kms Verify message using public key from generated private key. - grant_tokens are not implemented + - The MessageType-parameter DIGEST is not yet implemented - [ ] verify_mac diff --git a/moto/__init__.py b/moto/__init__.py index 5a3682e25..98c38972f 100644 --- a/moto/__init__.py +++ b/moto/__init__.py @@ -1,4 +1,4 @@ from moto.core.decorator import mock_aws # noqa # pylint: disable=unused-import __title__ = "moto" -__version__ = "4.2.15.dev" +__version__ = "5.0.0.dev" diff --git a/moto/backup/models.py b/moto/backup/models.py index f2f040aed..83715ad29 100644 --- a/moto/backup/models.py +++ b/moto/backup/models.py @@ -1,8 +1,8 @@ -"""BackupBackend class with methods for supported APIs.""" from copy import deepcopy from typing import Any, Dict, List, Optional, Tuple -from moto.core import BackendDict, BaseBackend, BaseModel +from moto.core.base_backend import BackendDict, BaseBackend +from moto.core.common_models import BaseModel from moto.core.utils import unix_time from moto.moto_api._internal import mock_random from moto.utilities.tagging_service import TaggingService diff --git a/moto/core/models.py b/moto/core/models.py index e12e8a7d3..440e1f0b2 100644 --- a/moto/core/models.py +++ b/moto/core/models.py @@ -274,7 +274,7 @@ def patch_client(client: botocore.client.BaseClient) -> None: """ """ Adding the botocore_stubber to the BUILTIN_HANDLERS, as above, will mock everything as long as the import ordering is correct - - user: start mock_service decorator + - user: start mock_aws decorator - system: imports core.model - system: adds the stubber to the BUILTIN_HANDLERS - user: create a boto3 client - which will use the BUILTIN_HANDLERS