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)] #[derive(Serialize)]
#[serde(tag = "type", rename_all = "camelCase")] #[serde(tag = "type", rename_all = "camelCase")]
pub enum Ping<'a> { pub enum Ping<'a> {
#[serde(rename_all = "camelCase")]
Crash { Crash {
id: Uuid, id: Uuid,
version: u64, version: u64,

View file

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