Page MenuHomePhabricator

[native] Backup testing button
ClosedPublic

Authored by michal on Nov 28 2023, 7:00 AM.
Tags
None
Referenced Files
F3505405: D10067.diff
Fri, Dec 20, 1:21 PM
Unknown Object (File)
Thu, Dec 19, 5:49 AM
Unknown Object (File)
Thu, Dec 19, 5:49 AM
Unknown Object (File)
Thu, Dec 19, 5:49 AM
Unknown Object (File)
Thu, Dec 19, 5:49 AM
Unknown Object (File)
Thu, Dec 19, 5:49 AM
Unknown Object (File)
Nov 3 2024, 11:51 AM
Unknown Object (File)
Nov 1 2024, 11:16 PM
Subscribers

Details

Summary

ENG-5699

This is the final testing task for rust native encryption. This diff rewires the current backup testing logic to use the native encryption (the existing logic already handles uploading and downloading backups from the backup service, but previously it called encryption from JS).

Depends on D10055

Test Plan
  1. Enable backup encryption
  2. Test the restore procedure -> check that there are no errors
  3. Modify user store (e.g. relationship status) to trigger new backup upload
  4. Test the restore procedure again -> check that there are no errors

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

native/backup/use-client-backup.js
28

Removed as a successful decryption of UserKeys is a requirement for a successful decryption of UserData, so we are still checking it. And now it's harder to check this in specific as it's done in rust.

Would be nice to test it on both platforms and physical devices, in past this test helped me catch some issues

native/backup/use-client-backup.js
99

thanks for fixing this typo

This revision is now accepted and ready to land.Nov 30 2023, 2:32 AM