More Exchange tests for lineage
Check the lineage for the base is empty. This can be squashed.
This commit is contained in:
parent
1ad135bd93
commit
0e5f5bde49
@ -175,6 +175,13 @@ func (suite *ExchangeBackupIntgSuite) TestBackup_Run_exchange() {
|
|||||||
expectDeets,
|
expectDeets,
|
||||||
false)
|
false)
|
||||||
|
|
||||||
|
// Lineage for the initial backup should be empty.
|
||||||
|
bup, err := bod.sw.GetBackup(ctx, bo.Results.BackupID)
|
||||||
|
require.NoError(t, err, clues.ToCore(err))
|
||||||
|
|
||||||
|
assert.Empty(t, bup.MergeBases, "base backup merge base lineage")
|
||||||
|
assert.Empty(t, bup.AssistBases, "base backup assist base lineage")
|
||||||
|
|
||||||
// Basic, happy path incremental test. No changes are dictated or expected.
|
// Basic, happy path incremental test. No changes are dictated or expected.
|
||||||
// This only tests that an incremental backup is runnable at all, and that it
|
// This only tests that an incremental backup is runnable at all, and that it
|
||||||
// produces fewer results than the last backup.
|
// produces fewer results than the last backup.
|
||||||
@ -220,7 +227,7 @@ func (suite *ExchangeBackupIntgSuite) TestBackup_Run_exchange() {
|
|||||||
|
|
||||||
// Incremental backup should have the initial backup as a merge base in
|
// Incremental backup should have the initial backup as a merge base in
|
||||||
// the lineage information.
|
// the lineage information.
|
||||||
bup, err := bod.sw.GetBackup(ctx, incBO.Results.BackupID)
|
bup, err = bod.sw.GetBackup(ctx, incBO.Results.BackupID)
|
||||||
require.NoError(t, err, clues.ToCore(err))
|
require.NoError(t, err, clues.ToCore(err))
|
||||||
|
|
||||||
lineage, err := bup.Bases()
|
lineage, err := bup.Bases()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user