Skip to content

Commit

Permalink
chore: Bump moto from 4.2.14 to 5.0.5 (#40)
Browse files Browse the repository at this point in the history
Bumps [moto](https://github.com/getmoto/moto) from 4.2.14 to 5.0.5.
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a
href="https://github.com/getmoto/moto/blob/master/CHANGELOG.md">moto's
changelog</a>.</em></p>
<blockquote>
<h2>5.0.5</h2>
<p>Docker Digest for 5.0.5:
<em>sha256:b95cf0d65557475f29e7256938028eef352e23acafe8e07c071cd58b67c44708</em></p>
<pre><code>General:
    * DynamoDB: scan() now returns items in a alphabetical order
<p>New Methods:
* SecretsManager:
* batch_get_secret_value()</p>
<p>Miscellaneous:
* ApplicationAutoscaling: put_scaling_policy() now generates CW alarms
for DynamoDB and ECS
* DynamoDB: Fix pagination for scan()/query()
* DynamoDB: batch_write_item() now validates for duplicate DELETE or PUT
requests
* Events: put_events() now validates that input-values cannot be empty
* IOT: create_topic_rule() now validates name-format
* ResourceGroupsTaggingAPI: tag_resources() now supports RDS snapshots
* SFN: Fixed a bug where the executionInput was double encoded
</code></pre></p>
<h2>5.0.4</h2>
<p>Docker Digest for 5.0.4:
<em>sha256:e13e917e563bd1e3bb745b0ce914bdcc3bd4577542e13e1468eac5078774b2aa</em></p>
<pre><code>General:
* Lambda: The results of a Dockerless invocation can now be configured.
      See http://docs.getmoto.org/en/latest/docs/services/lambda.html
<pre><code>* StepFunctions can now execute the provided
StepFunctionMachine (opt-in), instead of returning static data (still
the default).
  See http://docs.getmoto.org/en/latest/docs/services/stepfunctions.html
</code></pre>
<p>New Service:
* ElastiCache:
* list_tags_for_resource()</p>
<pre><code>* ResilienceHub:
    * create_app()
    * create_app_version_app_component()
    * create_app_version_resource()
    * create_resiliency_policy()
    * describe_app()
    * describe_resiliency_policy()
    * import_resources_to_draft_app_version()
    * list_app_assessments()
    * list_app_version_app_components()
    * list_app_version_resources()
    * list_app_versions()
    * list_apps()
    * list_resiliency_policies()
</code></pre>
<p></code></pre></p>
<!-- raw HTML omitted -->
</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a
href="https://github.com/getmoto/moto/commit/af6bc3a90c865b37c0f2e4c3a24e318e20dfce51"><code>af6bc3a</code></a>
Prep release 5.0.5 (<a
href="https://redirect.github.com/getmoto/moto/issues/7574">#7574</a>)</li>
<li><a
href="https://github.com/getmoto/moto/commit/32e187f6f47528f124d938fcfa68eb0606d3670b"><code>32e187f</code></a>
Feature: ResourceGroupsTaggingAPI: add tags for RDS snapshot (<a
href="https://redirect.github.com/getmoto/moto/issues/7565">#7565</a>)</li>
<li><a
href="https://github.com/getmoto/moto/commit/3f121dfc6c2d07eb5e1b2055f703fafe52341d8a"><code>3f121df</code></a>
ResourceGroupsTaggingAPI: Fix Workspaces access in unsupported region
(<a
href="https://redirect.github.com/getmoto/moto/issues/7569">#7569</a>)</li>
<li><a
href="https://github.com/getmoto/moto/commit/5c1d1d0faf312314dd928c1d37c4aeb5d23601bf"><code>5c1d1d0</code></a>
fix(cognito-idp): avoid KeyError on unexisting refresh token (<a
href="https://redirect.github.com/getmoto/moto/issues/7563">#7563</a>)</li>
<li><a
href="https://github.com/getmoto/moto/commit/7fcea4af9b53e85f560a3e9bbc5f01771ce68b18"><code>7fcea4a</code></a>
Admin: Update py-partiql dependency (<a
href="https://redirect.github.com/getmoto/moto/issues/7573">#7573</a>)</li>
<li><a
href="https://github.com/getmoto/moto/commit/24fe45924bd77d0e5b4f53c1004cd2319aa19f92"><code>24fe459</code></a>
IOT: create_topic_rule() now validates name-format (<a
href="https://redirect.github.com/getmoto/moto/issues/7572">#7572</a>)</li>
<li><a
href="https://github.com/getmoto/moto/commit/5ed366dcd78c8b41ee0a2f28c1b211705221ed18"><code>5ed366d</code></a>
IOTData: Fix typing (<a
href="https://redirect.github.com/getmoto/moto/issues/7568">#7568</a>)</li>
<li><a
href="https://github.com/getmoto/moto/commit/d6948ffb26a4b8de1b3cd35117d73ed2594f96f5"><code>d6948ff</code></a>
SFN: Input for mock should be the same as input for parser (<a
href="https://redirect.github.com/getmoto/moto/issues/7567">#7567</a>)</li>
<li><a
href="https://github.com/getmoto/moto/commit/cb66217487dc96035ba1096bd4fd7def4da6540d"><code>cb66217</code></a>
ApplicationAutoscaling: put_scaling_policy() now generates CW alarms
(for som...</li>
<li><a
href="https://github.com/getmoto/moto/commit/7289a6c7b11bbbd97e6004ff742eb0af5139950f"><code>7289a6c</code></a>
CloudWatch: Improve typing/docs (<a
href="https://redirect.github.com/getmoto/moto/issues/7560">#7560</a>)</li>
<li>Additional commits viewable in <a
href="https://github.com/getmoto/moto/compare/4.2.14...5.0.5">compare
view</a></li>
</ul>
</details>
<br />


[![Dependabot compatibility
score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=moto&package-manager=pip&previous-version=4.2.14&new-version=5.0.5)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't
alter it yourself. You can also trigger a rebase manually by commenting
`@dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits
that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after
your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge
and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating
it. You can achieve the same result by closing it manually
- `@dependabot show <dependency name> ignore conditions` will show all
of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop
Dependabot creating any more for this major version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop
Dependabot creating any more for this minor version (unless you reopen
the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop
Dependabot creating any more for this dependency (unless you reopen the
PR or upgrade to it yourself)


</details>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Edgar Ramírez-Mondragón <[email protected]>
  • Loading branch information
dependabot[bot] and edgarrmondragon authored Apr 12, 2024
1 parent e504130 commit bce5fac
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 40 deletions.
40 changes: 20 additions & 20 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pyupgrade = "^3.3.1"
mypy = "^1.0.0"
isort = "^5.11.5"
singer-sdk = { version="^0.23.0", extras = ["testing"] }
moto = "^4.1.6"
moto = "^5.0.5"
coverage = "^7.2.3"
pydocstyle = "^6.3.0"

Expand Down
17 changes: 8 additions & 9 deletions tests/test_boto_connector.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from unittest.mock import patch

from moto import mock_dynamodb, mock_sts
from moto import mock_aws

from tap_dynamodb.connectors.aws_boto_connector import AWSBotoConnector

Expand All @@ -9,7 +9,7 @@
"tap_dynamodb.connectors.aws_boto_connector.boto3.Session",
return_value="mock_session",
)
@mock_dynamodb
@mock_aws
def test_get_session_base(patch):
auth = AWSBotoConnector(
{
Expand All @@ -32,7 +32,7 @@ def test_get_session_base(patch):
"tap_dynamodb.connectors.aws_boto_connector.boto3.Session",
return_value="mock_session",
)
@mock_dynamodb
@mock_aws
def test_get_session_w_token(patch):
auth = AWSBotoConnector(
{
Expand All @@ -57,7 +57,7 @@ def test_get_session_w_token(patch):
"tap_dynamodb.connectors.aws_boto_connector.boto3.Session",
return_value="mock_session",
)
@mock_dynamodb
@mock_aws
def test_get_session_w_profile(patch):
auth = AWSBotoConnector(
{
Expand All @@ -76,16 +76,15 @@ def test_get_session_w_profile(patch):
"tap_dynamodb.connectors.aws_boto_connector.boto3.Session",
return_value="mock_session",
)
@mock_dynamodb
@mock_aws
def test_get_session_implicit(patch):
auth = AWSBotoConnector({}, "dynamodb")
session = auth.get_session()
patch.assert_called_with()
assert session == "mock_session"


@mock_dynamodb
@mock_sts
@mock_aws
def test_get_session_assume_role():
auth = AWSBotoConnector(
{
Expand All @@ -99,7 +98,7 @@ def test_get_session_assume_role():
auth.get_session()


@mock_dynamodb
@mock_aws
def test_get_client():
auth = AWSBotoConnector(
{
Expand All @@ -113,7 +112,7 @@ def test_get_client():
auth.get_client(session, "dynamodb")


@mock_dynamodb
@mock_aws
def test_get_resource():
auth = AWSBotoConnector(
{
Expand Down
20 changes: 10 additions & 10 deletions tests/test_dynamodb_connector.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import boto3
from moto import mock_dynamodb
from moto import mock_aws

from tap_dynamodb.dynamodb_connector import DynamoDbConnector

Expand All @@ -25,7 +25,7 @@ def create_table(moto_conn, name):
)


@mock_dynamodb
@mock_aws
def test_list_tables():
# PREP
moto_conn = boto3.resource("dynamodb", region_name="us-west-2")
Expand All @@ -40,7 +40,7 @@ def test_list_tables():
assert tables[-1] == "table_105"


@mock_dynamodb
@mock_aws
def test_list_tables_filtered():
# PREP
moto_conn = boto3.resource("dynamodb", region_name="us-west-2")
Expand All @@ -59,7 +59,7 @@ def test_list_tables_filtered():
assert len(tables) == 0


@mock_dynamodb
@mock_aws
def test_get_items():
# PREP
moto_conn = boto3.resource("dynamodb", region_name="us-west-2")
Expand All @@ -76,7 +76,7 @@ def test_get_items():
assert records[0].get("info") == {"plot": "bar"}


@mock_dynamodb
@mock_aws
def test_get_items_w_kwargs():
# PREP
moto_conn = boto3.resource("dynamodb", region_name="us-west-2")
Expand All @@ -97,7 +97,7 @@ def test_get_items_w_kwargs():
assert records[0].get("info") == {"plot": "bar"}


@mock_dynamodb
@mock_aws
def test_get_items_paginate():
# PREP
moto_conn = boto3.resource("dynamodb", region_name="us-west-2")
Expand All @@ -122,7 +122,7 @@ def test_get_items_paginate():
assert first_item.get("info") == {"plot": "bar"}


@mock_dynamodb
@mock_aws
def test_get_table_json_schema():
# PREP
moto_conn = boto3.resource("dynamodb", region_name="us-west-2")
Expand All @@ -145,7 +145,7 @@ def test_get_table_json_schema():
}


@mock_dynamodb
@mock_aws
def test_get_table_json_schema_w_kwargs():
# PREP
moto_conn = boto3.resource("dynamodb", region_name="us-west-2")
Expand All @@ -171,7 +171,7 @@ def test_get_table_json_schema_w_kwargs():
}


@mock_dynamodb
@mock_aws
def test_get_table_key_properties():
# PREP
moto_conn = boto3.resource("dynamodb", region_name="us-west-2")
Expand All @@ -194,7 +194,7 @@ def test_coerce_types():
assert coerced == {"foo": "1.23"}


@mock_dynamodb
@mock_aws
def test_get_sample_records():
# PREP
moto_conn = boto3.resource("dynamodb", region_name="us-west-2")
Expand Down

0 comments on commit bce5fac

Please sign in to comment.