Skip to content

Commit e7ab742

Browse files
aaythapagithub-actions[bot]github-actionsdependabot[bot]jfuss
authored
Release 1.88.0 (to main) (#3588)
Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions <github-actions@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Jacob Fuss <jfuss@users.noreply.github.com> Co-authored-by: Xia Zhao <xazhao@amazon.com> Co-authored-by: aws-sam-cli-bot <46753707+aws-sam-cli-bot@users.noreply.github.com>
1 parent 8fb8f6c commit e7ab742

32 files changed

+10965
-1562
lines changed

bin/_file_formatter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Formatter base class for JSONFormatter and YamlFormatter."""
2+
23
import argparse
34
import os
45
import sys

bin/public_interface.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,13 +101,15 @@ def _print(signature: Dict[str, inspect.Signature], variables: Set[str]) -> None
101101
result: Dict[str, Any] = {"routines": {}, "variables": sorted(variables)}
102102
for key, value in signature.items():
103103
result["routines"][key] = [
104-
{
105-
"name": parameter.name,
106-
"kind": parameter.kind.name,
107-
"default": parameter.default,
108-
}
109-
if parameter.default != inspect.Parameter.empty
110-
else {"name": parameter.name, "kind": parameter.kind.name}
104+
(
105+
{
106+
"name": parameter.name,
107+
"kind": parameter.kind.name,
108+
"default": parameter.default,
109+
}
110+
if parameter.default != inspect.Parameter.empty
111+
else {"name": parameter.name, "kind": parameter.kind.name}
112+
)
111113
for parameter in value.parameters.values()
112114
]
113115
print(json.dumps(result, indent=2, sort_keys=True))

integration/combination/test_function_with_all_event_types.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
from unittest.case import skipIf
22

3-
from integration.config.service_names import IOT, SCHEDULE_EVENT
3+
from integration.config.service_names import IOT, LOGS, SCHEDULE_EVENT
44
from integration.helpers.base_test import BaseTest
55
from integration.helpers.resource import current_region_does_not_support, generate_suffix
66

77

88
@skipIf(
9-
current_region_does_not_support([IOT, SCHEDULE_EVENT]),
10-
"IoT, ScheduleEvent is not supported in this testing region",
9+
current_region_does_not_support([IOT, SCHEDULE_EVENT, LOGS]),
10+
"IoT, ScheduleEvent or a Logs resource is not supported in this testing region",
1111
)
1212
class TestFunctionWithAllEventTypes(BaseTest):
1313
def test_function_with_all_event_types(self):

integration/combination/test_function_with_cloudwatch_log.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
1+
from unittest.case import skipIf
2+
3+
from integration.config.service_names import LOGS
14
from integration.helpers.base_test import BaseTest
5+
from integration.helpers.resource import current_region_does_not_support
26

37

8+
@skipIf(
9+
current_region_does_not_support([LOGS]),
10+
"A Logs resource that is a part of this test is not supported in this testing region",
11+
)
412
class TestFunctionWithCloudWatchLog(BaseTest):
513
def test_function_with_cloudwatch_log(self):
614
self.create_and_verify_stack("combination/function_with_cloudwatch_log")

integration/config/service_names.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,3 +35,4 @@
3535
API_KEY = "ApiKey"
3636
APP_SYNC = "AppSync"
3737
SNS_FILTER_POLICY_SCOPE = "SnsFilterPolicyScope"
38+
LOGS = "Logs"

integration/helpers/deployer/deployer.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -208,9 +208,9 @@ def describe_changeset(self, change_set_id, stack_name, **kwargs):
208208
{
209209
"LogicalResourceId": resource_props.get("LogicalResourceId"),
210210
"ResourceType": resource_props.get("ResourceType"),
211-
"Replacement": "N/A"
212-
if resource_props.get("Replacement") is None
213-
else resource_props.get("Replacement"),
211+
"Replacement": (
212+
"N/A" if resource_props.get("Replacement") is None else resource_props.get("Replacement")
213+
),
214214
}
215215
)
216216

integration/helpers/deployer/utils/colors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Wrapper to generated colored messages for printing in Terminal
33
This was ported over from the sam-cli repo
44
"""
5+
56
from typing import Dict, Literal
67

78
SupportedColor = Literal["red", "green", "yellow"]

integration/helpers/deployer/utils/retry.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Retry decorator to retry decorated function based on Exception with exponential backoff and number of attempts built-in.
33
"""
4+
45
import math
56
import random
67
import time

integration/helpers/deployer/utils/table_print.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Utilities for table pretty printing
33
This was ported over from the sam-cli repo
44
"""
5+
56
import shutil
67
import textwrap
78
from functools import wraps

integration/helpers/s3_uploader.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
"""
22
Client for uploading files to s3
33
"""
4+
45
import logging
56
from typing import Any
67

0 commit comments

Comments
 (0)