mirror of
https://github.com/google/nomulus
synced 2026-09-08 17:17:02 +00:00
Modify the CreateSynthetic pipeline to run over all non-deleted domains (#1803)
This commit is contained in:
+6
-4
@@ -98,11 +98,13 @@ public class CreateSyntheticDomainHistoriesPipelineTest {
|
||||
assertAboutImmutableObjects()
|
||||
.that(syntheticHistory.getDomainBase().get())
|
||||
.isEqualExceptFields(domain, "updateTimestamp");
|
||||
// four total histories, two CREATE and two SYNTHETIC
|
||||
assertThat(loadAllOf(DomainHistory.class)).hasSize(4);
|
||||
|
||||
// shouldn't create any entries on re-run
|
||||
// can create multiple entries if we run it multiple times
|
||||
pipeline.run().waitUntilFinish();
|
||||
assertThat(HistoryEntryDao.loadHistoryObjectsForResource(domain.createVKey())).hasSize(2);
|
||||
// three total histories, two CREATE and one SYNTHETIC
|
||||
assertThat(loadAllOf(DomainHistory.class)).hasSize(3);
|
||||
assertThat(HistoryEntryDao.loadHistoryObjectsForResource(domain.createVKey())).hasSize(3);
|
||||
// six total histories, two CREATE and four SYNTHETIC
|
||||
assertThat(loadAllOf(DomainHistory.class)).hasSize(6);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user