-
-
Notifications
You must be signed in to change notification settings - Fork 415
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backup: make validation completion fallible
- Loading branch information
1 parent
38a5f01
commit 53d60eb
Showing
9 changed files
with
106 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
rust/message-backup/tests/res/test-cases/invalid/missing-account-data.jsonproto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[ | ||
{ | ||
"version": "1", | ||
"backupTimeMs": "1705692409729" | ||
}, | ||
{ | ||
"recipient": { | ||
"id": "1", | ||
"self": {} | ||
} | ||
} | ||
] |
1 change: 1 addition & 0 deletions
1
rust/message-backup/tests/res/test-cases/invalid/missing-account-data.jsonproto.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
no AccountData frames found |
28 changes: 28 additions & 0 deletions
28
rust/message-backup/tests/res/test-cases/invalid/multiple-account-data.jsonproto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
[ | ||
{ | ||
"version": "1", | ||
"backupTimeMs": "1705692409729" | ||
}, | ||
{ | ||
"recipient": { | ||
"id": "1", | ||
"self": {} | ||
} | ||
}, | ||
{ | ||
"account": { | ||
"profileKey": "YQKRq+3DQklInaOaMcmlzZnN0m/1hzLiaONX7gB12dg=", | ||
"accountSettings": { | ||
"phoneNumberSharingMode": "NOBODY" | ||
} | ||
} | ||
}, | ||
{ | ||
"account": { | ||
"profileKey": "YQKRq+3DQklInaOaMcmlzZnN0m/1hzLiaONX7gB12dg=", | ||
"accountSettings": { | ||
"phoneNumberSharingMode": "NOBODY" | ||
} | ||
} | ||
} | ||
] |
1 change: 1 addition & 0 deletions
1
rust/message-backup/tests/res/test-cases/invalid/multiple-account-data.jsonproto.expected
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
multiple AccountData frames found |
Binary file modified
BIN
+0 Bytes
(100%)
rust/message-backup/tests/res/test-cases/valid-encrypted/new-account.binproto.encrypted
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters