Treat missing backup after authentication as an authentication failure

This commit is contained in:
Ravi Khadiwala authored and ravi-signal committed 2026-02-17 14:52:27 -05:00
1 parent 225e756e38
commit d6a0129c5a
6 files changed
+10 -11

No files matched your search

@@ -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();
}