mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 21:15:48 +00:00
Integrate libsignal validator into backup tests.
This commit is contained in:
committed by
Nicholas Tinsley
parent
57feb272d2
commit
0b98901634
@@ -66,10 +66,11 @@ class ImportExportTestSuite(private val path: String) {
|
||||
val success = importResult as ImportResult.Success
|
||||
|
||||
val generatedBackupData = BackupRepository.debugExport(plaintext = true, currentTime = success.backupTime)
|
||||
|
||||
// TODO [backup] Currently fails, need to look into it
|
||||
// assertPassesValidator(generatedBackupData)
|
||||
assertEquivalent(binProtoBytes, generatedBackupData)
|
||||
|
||||
// Validator expects encrypted data, so we have to export again with encryption to validate
|
||||
val encryptedBackupData = BackupRepository.debugExport(plaintext = false, currentTime = success.backupTime)
|
||||
assertPassesValidator(encryptedBackupData)
|
||||
}
|
||||
|
||||
private fun import(importData: ByteArray): ImportResult {
|
||||
|
||||
Reference in New Issue
Block a user