mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 11:56:53 +00:00
Treat missing backup after authentication as an authentication failure
This commit is contained in:
1 parent
225e756e38
commit
d6a0129c5a
6 files changed
+10
-11
No files matched your search
+1
-1
@@ -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