Page MenuHomePhabricator

[backup-service][commtest] implement integration tests for uploading User Keys and User Data separately
Needs ReviewPublic

Authored by kamil on Tue, Nov 5, 9:12 AM.
Tags
None
Referenced Files
F3164466: D13879.diff
Wed, Nov 6, 7:26 PM
F3163715: D13879.id45638.diff
Wed, Nov 6, 3:24 PM
F3163714: D13879.id45636.diff
Wed, Nov 6, 3:24 PM
F3163713: D13879.id45614.diff
Wed, Nov 6, 3:24 PM
F3163712: D13879.id45635.diff
Wed, Nov 6, 3:24 PM
F3163702: D13879.id.diff
Wed, Nov 6, 3:24 PM
F3163682: D13879.diff
Wed, Nov 6, 3:23 PM
Subscribers

Details

Summary

Part of ENG-9673.

Tracked in ENG-9650.

I think I covered most of the cases, this is described in the code comments.

The endpoint to upload both User Keys and User Data at once is tested in backup_integration_test.

If anyone has any ideas about what test case can be added, I would be happy to do it.

Depends on D13878

Test Plan

Run tests

Diff Detail

Repository
rCOMM Comm
Branch
backup-work-6
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kamil held this revision as a draft.
kamil added reviewers: tomek, angelika.

fix running tests at once

kamil published this revision for review.Wed, Nov 6, 5:08 AM

Adding more reviewers here - maybe there is more edge-cases that worth testing too

services/commtest/tests/backup_upload_test.rs
69–79

we can additionally check here if new_backup_data could be downloaded but probably not worth it, as it's covered in the test below too

83–116

Here, I additionally checked if holders on the Blob service are managed correctly