Skip to content

Commit 20f3de2

Browse files
committed
test: add Lambda event fixtures for API and cross-account handlers
1 parent 8cdcc7c commit 20f3de2

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

testdata/api-request-event.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"requestContext": {
3+
"requestId": "test-request-id",
4+
"http": {
5+
"method": "GET",
6+
"path": "/v1/info"
7+
}
8+
},
9+
"headers": {
10+
"accept": "application/json"
11+
},
12+
"rawPath": "/v1/info",
13+
"rawQueryString": ""
14+
}

testdata/cross-account-event.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"account": "123456789012",
3+
"region": "us-east-1",
4+
"detail-type": "EC2 Instance State-change Notification",
5+
"source": "aws.ec2",
6+
"time": "2025-12-18T10:00:00Z",
7+
"resources": [
8+
"arn:aws:ec2:us-east-1:123456789012:instance/i-1234567890abcdef0"
9+
],
10+
"detail": {
11+
"instance-id": "i-1234567890abcdef0",
12+
"state": "running"
13+
}
14+
}

0 commit comments

Comments
 (0)