Skip to content

Commit d877f00

Browse files
test(aws-lambda): Keep one test_trigger case per code path
Each case is a SAM invoke. The removed cases only checked other keys of the same lookup table. Co-Authored-By: Johannes Daxböck <114897+dingsdax@users.noreply.github.com>
1 parent 7118a80 commit d877f00

1 file changed

Lines changed: 1 addition & 40 deletions

File tree

‎tests/integrations/aws_lambda/test_aws_lambda.py‎

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -879,39 +879,10 @@ def _eventbridge_event(source, detail_type):
879879
pytest.param({"Records": [_sqs_record(), _sqs_record()]}, "pubsub", id="sqs"),
880880
pytest.param({"Records": [_sns_record()]}, "pubsub", id="sns"),
881881
pytest.param(
882-
{"Records": [{"eventSource": "aws:kinesis"}]},
883-
"pubsub",
884-
id="kinesis",
885-
),
886-
pytest.param(
887-
{
888-
"eventSource": "aws:kafka",
889-
"records": {
890-
"orders-0": [{"offset": 1}, {"offset": 2}],
891-
"orders-1": [{"offset": 1}],
892-
},
893-
},
882+
{"eventSource": "aws:kafka", "records": {"orders-0": [{}]}},
894883
"pubsub",
895884
id="msk",
896885
),
897-
pytest.param(
898-
{"eventSource": "SelfManagedKafka", "records": {"orders-0": [{}]}},
899-
"pubsub",
900-
id="self-managed-kafka",
901-
),
902-
pytest.param(
903-
{"eventSource": "aws:mq", "messages": [{}, {}]},
904-
"pubsub",
905-
id="activemq",
906-
),
907-
pytest.param(
908-
{
909-
"eventSource": "aws:rmq",
910-
"rmqMessagesByQueue": {"orders::/": [{}, {}], "alerts::/": [{}]},
911-
},
912-
"pubsub",
913-
id="rabbitmq",
914-
),
915886
pytest.param(
916887
_eventbridge_event("aws.s3", "Object Created"),
917888
"pubsub",
@@ -923,16 +894,6 @@ def _eventbridge_event(source, detail_type):
923894
id="eventbridge-schedule",
924895
),
925896
pytest.param({"Records": [{"eventSource": "aws:s3"}]}, "datasource", id="s3"),
926-
pytest.param(
927-
{"Records": [{"eventSource": "aws:dynamodb"}]},
928-
"datasource",
929-
id="dynamodb-streams",
930-
),
931-
pytest.param(
932-
{"eventSource": "aws:docdb", "events": [{}]},
933-
"datasource",
934-
id="documentdb",
935-
),
936897
pytest.param(
937898
[{"good dog": "Maisey"}, {"good dog": "Charlie"}],
938899
"other",

0 commit comments

Comments
 (0)