feat(cloudtrail): support empty lookup events (#1603)

* feat(cloudtrail): support empty lookup events

* fix(cloudtrail): keep lookup events handler signature consistent
This commit is contained in:
Jason van Zyl authored and GitHub committed 2026-07-01 23:54:41 -05:00
1 parent eb9a9706aa
commit 2cca03bf25
2 files changed
+27

No files matched your search

@@ -165,6 +165,26 @@ class CloudTrailIntegrationTest {
.statusCode(200);
}
@Test
void lookupEventsReturnsEmptyEventPage() {
given()
.header("X-Amz-Target", TARGET_PREFIX + "LookupEvents")
.contentType(CONTENT_TYPE)
.body("""
{
"LookupAttributes": [
{"AttributeKey": "EventName", "AttributeValue": "CreateBucket"}
],
"MaxResults": 10
}
""")
.when()
.post("/")
.then()
.statusCode(200)
.body("Events", hasSize(0));
}
@Test
void trailProvisioningLifecycleWorksWithBucketNotificationsAndQueuePolicy() {
String bucket = "cloudtrail-audit-feed-bucket";