mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-20 21:08:07 +01:00
Treat missing backup after authentication as an authentication failure
This commit is contained in:
committed by
ravi-signal
parent
225e756e38
commit
d6a0129c5a
@@ -961,7 +961,7 @@ public class BackupManagerTest {
|
||||
if (expirationType == ExpiredBackup.ExpirationType.ALL) {
|
||||
// should have deleted the db row for the backup
|
||||
CompletableFutureTestUtil.assertFailsWithCause(
|
||||
BackupNotFoundException.class,
|
||||
BackupFailedZkAuthenticationException.class,
|
||||
backupsDb.describeBackup(backupUser));
|
||||
} else {
|
||||
// should have deleted all the media, but left the backup descriptor in place
|
||||
|
||||
@@ -211,7 +211,7 @@ public class BackupsDbTest {
|
||||
|
||||
// The backup entry should be gone
|
||||
CompletableFutureTestUtil.assertFailsWithCause(
|
||||
BackupNotFoundException.class,
|
||||
BackupFailedZkAuthenticationException.class,
|
||||
backupsDb.describeBackup(backupUser(backupId, BackupCredentialType.MEDIA, BackupLevel.PAID)));
|
||||
assertThat(expiredBackups.apply(Instant.ofEpochSecond(10))).isEmpty();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user