Bug 1898428 - Fix the format of legacy crash pings sent by the crash reporter client r=KrisWright

Differential Revision: https://phabricator.services.mozilla.com/D211319
This commit is contained in:
Gabriele Svelto 2024-05-23 20:01:48 +00:00
parent d2a5247348
commit a38b9a65e0
2 changed files with 3 additions and 2 deletions

View file

@ -20,6 +20,7 @@ include!(concat!(env!("OUT_DIR"), "/ping_annotations.rs"));
#[derive(Serialize)]
#[serde(tag = "type", rename_all = "camelCase")]
pub enum Ping<'a> {
#[serde(rename_all = "camelCase")]
Crash {
id: Uuid,
version: u64,

View file

@ -311,8 +311,8 @@ impl AssertFiles {
"type": "crash",
"id": MOCK_PING_UUID,
"version": 4,
"creation_date": MOCK_CURRENT_TIME,
"client_id": "telemetry_client",
"creationDate": MOCK_CURRENT_TIME,
"clientId": "telemetry_client",
"payload": {
"sessionId": "telemetry_session",
"version": 1,