Skip to content

Commit

Permalink
udpate s3 event
Browse files Browse the repository at this point in the history
  • Loading branch information
daidokoro committed Dec 20, 2023
1 parent 816819b commit 4fd6a47
Showing 1 changed file with 1 addition and 38 deletions.
39 changes: 1 addition & 38 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -246,44 +246,7 @@ test_event_case!(
"INTEGRATION_TYPE" => "S3",
"AWS_REGION" => "eu-central-1",
},
event: r#"{
"Records": [
{
"eventVersion": "2.0",
"eventSource": "aws:s3",
"awsRegion": "eu-west-1",
"eventTime": "1970-01-01T00:00:00.000Z",
"eventName": "ObjectCreated:Put",
"userIdentity": {
"principalId": "EXAMPLE"
},
"requestParameters": {
"sourceIPAddress": "127.0.0.1"
},
"responseElements": {
"x-amz-request-id": "EXAMPLE123456789",
"x-amz-id-2": "EXAMPLE123/5678abcdefghijklambdaisawesome/mnopqrstuvwxyzABCDEFGH"
},
"s3": {
"s3SchemaVersion": "1.0",
"configurationId": "testConfigRule",
"bucket": {
"name": "coralogix-serverless-repo",
"ownerIdentity": {
"principalId": "EXAMPLE"
},
"arn": "arn:aws:s3:::example-bucket"
},
"object": {
"key": "coralogix-aws-shipper/s3.log",
"size": 311000048,
"eTag": "0123456789abcdef0123456789abcdef",
"sequencer": "0A1B2C3D4E5F678901"
}
}
}
]
}"#,
event: s3event_string("coralogix-serverless-repo", "coralogix-aws-shipper/s3.log").as_str(),
combined_event: S3,
event_type: S3Event,
assert_fn: |s| {
Expand Down

0 comments on commit 4fd6a47

Please sign in to comment.