mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
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:
1 parent
eb9a9706aa
commit
2cca03bf25
2 files changed
+27
No files matched your search
+20
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user