Update test_backup.py to test that a backup can be recovered from - part 1
Categories
(Firefox :: Profile Backup, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox127 | --- | fixed |
People
(Reporter: mconley, Assigned: mconley)
References
(Blocks 2 open bugs)
Details
(Whiteboard: [fidefe-device-migration])
Attachments
(2 files)
In bug 1886614, I'm adding an end-to-end test for the whole backup service to test that backups can be created and recovered from.
Since at the time of writing that test, recovery wasn't yet implemented, the test just ensures that creating a backup populates a staging directory with some files and a backup-manifest.json file.
Once we've got enough of the recovery mechanism built out, we should update the test from bug 1886614 to:
- Write some things to various data stores, like bookmarks, passwords, cookies, etc.
- Create a backup.
- Recover from that backup into a new profile
- Ensure that the items from 1 exist in the new profile
Updated•1 month ago
|
Assignee | ||
Updated•1 month ago
|
Assignee | ||
Comment 1•22 days ago
|
||
I'm going to break this into two pieces. We've already got some implementations of recover
done or almost done, and I'd rather we get a version of this test in the tree for those rather than wait for all recover
methods to be implemented. So this test should cover testing the following resources:
- CookiesBackupResource
- CredentialsAndSecurityBackupResource
- FormHistoryBackupResource
- MiscDataBackupResource
- PlacesBackupResource
- PreferencesBackupResource
I'll spin out a new bug to test AddonsBackupResource and SessionStoreBackupResource.
Assignee | ||
Updated•22 days ago
|
Assignee | ||
Comment 2•22 days ago
|
||
This Promise is mainly for use by Marionette tests to know when to check
data stores that might have been updated by postRecovery steps.
Assignee | ||
Comment 3•22 days ago
|
||
This patch updates test_backup.py to write some testing data into various data stores
that BackupService is backing up, create a backup, recover from that backup, and check
to see if the written data exists in the recovered profile.
This isn't exactly exhaustive - there are a number of data stores that aren't accounted
for here yet. Chiefly AddonsBackupResource and SessionStoreBackupResource (bug 1894004),
but also:
- FxA sign-in status
- Logins backups
- Site Security Service State
- ProfileAge data
- WebRTC device ID mappings
- Favicons
- XUL Store data
- Content preferences
- Containers preferences
- File handler preferences
- Search preferences
- user.js and chrome/ customizations
Still, this is a start, and certainly better than nothing. Bug 1894089 has been filed
to add more data to test the listed 12 items.
Pushed by mconley@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/1cd38c5a59a1 Add a postRecoveryComplete Promise getter to BackupService. r=backup-reviewers,kpatenio https://hg.mozilla.org/integration/autoland/rev/1e2a08de2017 Flesh out test_backup.py with some data to backup and recover. r=backup-reviewers,kpatenio
Comment 5•20 days ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/1cd38c5a59a1
https://hg.mozilla.org/mozilla-central/rev/1e2a08de2017
Description
•