Merge pull request #271 from nrb/fix-246

Invalidate restores based on non-existent backups
This commit is contained in:
Andy Goldstein
2018-01-10 13:24:53 -05:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+2 -2
View File
@@ -183,8 +183,8 @@ func TestProcessRestore(t *testing.T) {
name: "restore with non-existent backup name fails",
restore: arktest.NewTestRestore("foo", "bar", api.RestorePhaseNew).WithBackup("backup-1").WithIncludedNamespace("ns-1").Restore,
expectedErr: false,
expectedPhase: string(api.RestorePhaseInProgress),
expectedRestoreErrors: 1,
expectedPhase: string(api.RestorePhaseFailedValidation),
expectedValidationErrors: []string{"Error retrieving backup: no backup here"},
backupServiceGetBackupError: errors.New("no backup here"),
},
{