Skip to content

Commit 2fdeba6

Browse files
committed
fix test for code_deploy_lifecycle_hook.py
1 parent 9357d69 commit 2fdeba6

File tree

1 file changed

+0
-114
lines changed

1 file changed

+0
-114
lines changed

tests/unit/event_handler/_async_execution/_routes/test_code_deploy_lifecycle_hook.py

Lines changed: 0 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -23,120 +23,6 @@ def test_match_true(self, event_name, option_constructor):
2323
actual = route.match(event=event)
2424
assert actual == expected
2525

26-
@pytest.mark.parametrize(
27-
"event_name, option_constructor",
28-
[
29-
("activeMQEvent.json", {"func": None}),
30-
("albEvent.json", {"func": None}),
31-
("albEventPathTrailingSlash.json", {"func": None}),
32-
("albMultiValueHeadersEvent.json", {"func": None}),
33-
("albMultiValueQueryStringEvent.json", {"func": None}),
34-
("apiGatewayAuthorizerRequestEvent.json", {"func": None}),
35-
("apiGatewayAuthorizerTokenEvent.json", {"func": None}),
36-
("apiGatewayAuthorizerV2Event.json", {"func": None}),
37-
("apiGatewayProxyEvent.json", {"func": None}),
38-
("apiGatewayProxyEventAnotherPath.json", {"func": None}),
39-
("apiGatewayProxyEventNoOrigin.json", {"func": None}),
40-
("apiGatewayProxyEventPathTrailingSlash.json", {"func": None}),
41-
("apiGatewayProxyEventPrincipalId.json", {"func": None}),
42-
("apiGatewayProxyEvent_noVersionAuth.json", {"func": None}),
43-
("apiGatewayProxyOtherEvent.json", {"func": None}),
44-
("apiGatewayProxyV2Event.json", {"func": None}),
45-
("apiGatewayProxyV2EventPathTrailingSlash.json", {"func": None}),
46-
("apiGatewayProxyV2Event_GET.json", {"func": None}),
47-
("apiGatewayProxyV2IamEvent.json", {"func": None}),
48-
("apiGatewayProxyV2LambdaAuthorizerEvent.json", {"func": None}),
49-
("apiGatewayProxyV2OtherGetEvent.json", {"func": None}),
50-
("apiGatewayProxyV2SchemaMiddlwareInvalidEvent.json", {"func": None}),
51-
("apiGatewayProxyV2SchemaMiddlwareValidEvent.json", {"func": None}),
52-
("apigatewayeSchemaMiddlwareInvalidEvent.json", {"func": None}),
53-
("apigatewayeSchemaMiddlwareValidEvent.json", {"func": None}),
54-
("appSyncAuthorizerEvent.json", {"func": None}),
55-
("appSyncAuthorizerResponse.json", {"func": None}),
56-
("appSyncBatchEvent.json", {"func": None}),
57-
("appSyncDirectResolver.json", {"func": None}),
58-
("appSyncResolverEvent.json", {"func": None}),
59-
("awsConfigRuleConfigurationChanged.json", {"func": None}),
60-
("awsConfigRuleOversizedConfiguration.json", {"func": None}),
61-
("awsConfigRuleScheduled.json", {"func": None}),
62-
("bedrockAgentEvent.json", {"func": None}),
63-
("bedrockAgentEventWithPathParams.json", {"func": None}),
64-
("bedrockAgentPostEvent.json", {"func": None}),
65-
("cloudWatchAlarmEventCompositeMetric.json", {"func": None}),
66-
("cloudWatchAlarmEventSingleMetric.json", {"func": None}),
67-
("cloudWatchDashboardEvent.json", {"func": None}),
68-
("cloudWatchLogEvent.json", {"func": None}),
69-
("cloudWatchLogEventWithPolicyLevel.json", {"func": None}),
70-
("cloudformationCustomResourceCreate.json", {"func": None}),
71-
("cloudformationCustomResourceDelete.json", {"func": None}),
72-
("cloudformationCustomResourceUpdate.json", {"func": None}),
73-
("codePipelineEvent.json", {"func": None}),
74-
("codePipelineEventData.json", {"func": None}),
75-
("codePipelineEventEmptyUserParameters.json", {"func": None}),
76-
("codePipelineEventWithEncryptionKey.json", {"func": None}),
77-
("cognitoCreateAuthChallengeEvent.json", {"func": None}),
78-
("cognitoCustomEmailSenderEvent.json", {"func": None}),
79-
("cognitoCustomMessageEvent.json", {"func": None}),
80-
("cognitoCustomSMSSenderEvent.json", {"func": None}),
81-
("cognitoDefineAuthChallengeEvent.json", {"func": None}),
82-
("cognitoPostAuthenticationEvent.json", {"func": None}),
83-
("cognitoPostConfirmationEvent.json", {"func": None}),
84-
("cognitoPreAuthenticationEvent.json", {"func": None}),
85-
("cognitoPreSignUpEvent.json", {"func": None}),
86-
("cognitoPreTokenGenerationEvent.json", {"func": None}),
87-
("cognitoPreTokenV2GenerationEvent.json", {"func": None}),
88-
("cognitoUserMigrationEvent.json", {"func": None}),
89-
("cognitoVerifyAuthChallengeResponseEvent.json", {"func": None}),
90-
("connectContactFlowEventAll.json", {"func": None}),
91-
("connectContactFlowEventMin.json", {"func": None}),
92-
("dynamoStreamEvent.json", {"func": None}),
93-
("eventBridgeEvent.json", {"func": None}),
94-
("kafkaEventMsk.json", {"func": None}),
95-
("kafkaEventSelfManaged.json", {"func": None}),
96-
("kinesisFirehoseKinesisEvent.json", {"func": None}),
97-
("kinesisFirehosePutEvent.json", {"func": None}),
98-
("kinesisFirehoseSQSEvent.json", {"func": None}),
99-
("kinesisStreamCloudWatchLogsEvent.json", {"func": None}),
100-
("kinesisStreamEvent.json", {"func": None}),
101-
("kinesisStreamEventOneRecord.json", {"func": None}),
102-
("lambdaFunctionUrlEvent.json", {"func": None}),
103-
("lambdaFunctionUrlEventPathTrailingSlash.json", {"func": None}),
104-
("lambdaFunctionUrlEventWithHeaders.json", {"func": None}),
105-
("lambdaFunctionUrlIAMEvent.json", {"func": None}),
106-
("rabbitMQEvent.json", {"func": None}),
107-
("s3BatchOperationEventSchemaV1.json", {"func": None}),
108-
("s3BatchOperationEventSchemaV2.json", {"func": None}),
109-
("s3Event.json", {"func": None}),
110-
("s3EventBridgeNotificationObjectCreatedEvent.json", {"func": None}),
111-
("s3EventBridgeNotificationObjectDeletedEvent.json", {"func": None}),
112-
("s3EventBridgeNotificationObjectExpiredEvent.json", {"func": None}),
113-
("s3EventBridgeNotificationObjectRestoreCompletedEvent.json", {"func": None}),
114-
("s3EventDecodedKey.json", {"func": None}),
115-
("s3EventDeleteObject.json", {"func": None}),
116-
("s3EventGlacier.json", {"func": None}),
117-
("s3ObjectEventIAMUser.json", {"func": None}),
118-
("s3ObjectEventTempCredentials.json", {"func": None}),
119-
("s3SqsEvent.json", {"func": None}),
120-
("secretsManagerEvent.json", {"func": None}),
121-
("sesEvent.json", {"func": None}),
122-
("snsEvent.json", {"func": None}),
123-
("snsSqsEvent.json", {"func": None}),
124-
("snsSqsFifoEvent.json", {"func": None}),
125-
("sqsDlqTriggerEvent.json", {"func": None}),
126-
("sqsEvent.json", {"func": None}),
127-
("vpcLatticeEvent.json", {"func": None}),
128-
("vpcLatticeEventPathTrailingSlash.json", {"func": None}),
129-
("vpcLatticeEventV2PathTrailingSlash.json", {"func": None}),
130-
("vpcLatticeV2Event.json", {"func": None}),
131-
("vpcLatticeV2EventWithHeaders.json", {"func": None}),
132-
],
133-
)
134-
def test_match_false(self, event_name, option_constructor):
135-
event = load_event(file_name=event_name)
136-
route = CodeDeployLifecycleHookRoute(**option_constructor)
137-
actual = route.match(event=event)
138-
assert actual is None
139-
14026
@pytest.mark.parametrize(
14127
"event_name",
14228
[

0 commit comments

Comments
 (0)