Skip to content

Commit 6d8eca9

Browse files
authored
Auto disable rest api integ tests (#247)
1 parent 711a914 commit 6d8eca9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

integration/helpers/resource.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,14 @@
44
import string # pylint: disable=deprecated-module
55
from typing import Any, Callable, Dict, List, Set
66

7-
from integration.config.service_names import DYNAMO_DB, HTTP_API, S3_EVENTS, SQS, STATE_MACHINE_INLINE_DEFINITION
7+
from integration.config.service_names import (
8+
DYNAMO_DB,
9+
HTTP_API,
10+
REST_API,
11+
S3_EVENTS,
12+
SQS,
13+
STATE_MACHINE_INLINE_DEFINITION,
14+
)
815
from integration.helpers.yaml_utils import load_yaml
916

1017
try:
@@ -203,6 +210,7 @@ def _resource_using_s3_events(resource: Dict[str, Any]) -> bool:
203210

204211
SERVICE_DETECTORS: Dict[str, Callable[[Dict[str, Any], Set[str]], bool]] = {
205212
HTTP_API: lambda template_dict, cfn_resource_types: "AWS::ApiGatewayV2::Api" in cfn_resource_types,
213+
REST_API: lambda template_dict, cfn_resource_types: "AWS::ApiGateway::RestApi" in cfn_resource_types,
206214
SQS: lambda template_dict, cfn_resource_types: "AWS::SQS::Queue" in cfn_resource_types,
207215
DYNAMO_DB: lambda template_dict, cfn_resource_types: "AWS::DynamoDB::Table" in cfn_resource_types,
208216
STATE_MACHINE_INLINE_DEFINITION: lambda template_dict, cfn_resource_types: any(

0 commit comments

Comments
 (0)