Skip to content

Commit

Permalink
Prep Release V5
Browse files Browse the repository at this point in the history
  • Loading branch information
bblommers committed Jan 27, 2024
1 parent 38f6359 commit 0255717
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 15 deletions.
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,36 @@
Moto Changelog
==============

5.0.0
-----
Docker Digest for 5.0.0: <autopopulateddigest>

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
-----
Expand Down
11 changes: 0 additions & 11 deletions docs/docs/services/backup.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions docs/docs/services/identitystore.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/docs/services/kms.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion moto/__init__.py
Original file line number Diff line number Diff line change
@@ -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"
4 changes: 2 additions & 2 deletions moto/backup/models.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion moto/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0255717

Please sign in to comment.