Skip to content

Commit

Permalink
Fix log samples failure
Browse files Browse the repository at this point in the history
  • Loading branch information
rajshah-crest committed Oct 3, 2024
1 parent 7ee7d5f commit c82b758
Showing 1 changed file with 124 additions and 34 deletions.
158 changes: 124 additions & 34 deletions brevo/assets/logs/brevo_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -590,44 +590,134 @@ tests:
timestamp: 1604933654
- sample: |-
{
"date": "2024-10-03 11:29:38",
"reason": "sent",
"subject": "test",
"ts_event": 1727935178,
"sending_ip": "10.10.10.10",
"service": "transactional-events",
"message-id": "<[email protected]>",
"template_id": 27,
"id": 1141551,
"tag": "",
"event": "delivered",
"ts_epoch": 1727935178000,
"email": "[email protected]",
"ts": 1727935178,
"sender_email": "[email protected]"
}
"date" : "2024-10-03 11:29:38",
"reason" : "sent",
"subject" : "test",
"ts_event" : 1727935178,
"sending_ip" : "10.10.10.10",
"service" : "transactional-events",
"message-id" : "<[email protected]>",
"template_id" : 27,
"id" : 1141551,
"tag" : "",
"event" : "delivered",
"ts_epoch" : 1727935178000,
"email" : "[email protected]",
"ts" : 1727935178,
"sender_email" : "[email protected]"
}
service: "transactional-events"
result: {}
result:
custom:
date: "2024-10-03 11:29:38"
evt:
name: "delivered"
id: 1141551
message-id: "<[email protected]>"
network:
client:
geoip: {}
ip: "10.10.10.10"
reason: "sent"
sender_email: "[email protected]"
service: "transactional-events"
status: "Success"
subject: "test"
tag: ""
template_id: 27
timestamp: 1727935178000
ts: 1727935178
ts_event: 1727935178
usr:
email: "[email protected]"
message: |-
{
"date" : "2024-10-03 11:29:38",
"reason" : "sent",
"subject" : "test",
"ts_event" : 1727935178,
"sending_ip" : "10.10.10.10",
"service" : "transactional-events",
"message-id" : "<[email protected]>",
"template_id" : 27,
"id" : 1141551,
"tag" : "",
"event" : "delivered",
"ts_epoch" : 1727935178000,
"email" : "[email protected]",
"ts" : 1727935178,
"sender_email" : "[email protected]"
}
service: "transactional-events"
status: "ok"
tags:
- "source:LOGS_SOURCE"
timestamp: 1727935178000
- sample: |-
{
"date": "2024-10-03 11:30:46",
"reason": "Unable to find MX of domain jbsjjsd.com",
"subject": "test",
"ts_event": 1727935246,
"sending_ip": "10.10.10.10",
"service": "transactional-events",
"message-id": "<[email protected]>",
"template_id": 27,
"id": 1141551,
"tag": "",
"event": "soft_bounce",
"ts_epoch": 1727935246000,
"email": "[email protected]",
"ts": 1727935246,
"sender_email": "[email protected]"
}
"date" : "2024-10-03 11:30:46",
"reason" : "Unable to find MX of domain jbsjjsd.com",
"subject" : "test",
"ts_event" : 1727935246,
"sending_ip" : "10.10.10.10",
"service" : "transactional-events",
"message-id" : "<[email protected]>",
"template_id" : 27,
"id" : 1141551,
"tag" : "",
"event" : "soft_bounce",
"ts_epoch" : 1727935246000,
"email" : "[email protected]",
"ts" : 1727935246,
"sender_email" : "[email protected]"
}
service: "transactional-events"
result: {}
result:
custom:
date: "2024-10-03 11:30:46"
evt:
name: "soft_bounce"
id: 1141551
message-id: "<[email protected]>"
network:
client:
geoip: {}
ip: "10.10.10.10"
reason: "Unable to find MX of domain jbsjjsd.com"
sender_email: "[email protected]"
service: "transactional-events"
status: "warning"
subject: "test"
tag: ""
template_id: 27
timestamp: 1727935246000
ts: 1727935246
ts_event: 1727935246
usr:
email: "[email protected]"
message: |-
{
"date" : "2024-10-03 11:30:46",
"reason" : "Unable to find MX of domain jbsjjsd.com",
"subject" : "test",
"ts_event" : 1727935246,
"sending_ip" : "10.10.10.10",
"service" : "transactional-events",
"message-id" : "<[email protected]>",
"template_id" : 27,
"id" : 1141551,
"tag" : "",
"event" : "soft_bounce",
"ts_epoch" : 1727935246000,
"email" : "[email protected]",
"ts" : 1727935246,
"sender_email" : "[email protected]"
}
service: "transactional-events"
status: "warn"
tags:
- "source:LOGS_SOURCE"
timestamp: 1727935246000
- sample: |-
{
"date" : "2020-10-09 00:00:00",
Expand Down

0 comments on commit c82b758

Please sign in to comment.