Treat missing backup after authentication as an authentication failure

This commit is contained in:
Ravi Khadiwala
2026-02-13 13:37:03 -06:00
committed by ravi-signal
parent 225e756e38
commit d6a0129c5a
6 changed files with 10 additions and 11 deletions

View File

@@ -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

View File

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