Replace configurable NotesMigration with a stub implementation

Remove MutableNotesMigration, NotesMigration.Snapshot,
NotesMigrationState, and NoteDbMode. The only way to run tests is with
NoteDb enabled. (Tests passing GERRIT_NOTEDB in the environment or
gerrit.notedb as a system property will still continue to work; the
property is just ignored.)

The method bodies of NotesMigration now simply return constant values.
The next step will be to eliminate usages of these methods.

Change-Id: I808a7cc8b3dc4bedb072f3737c2df9758edbdea5
This commit is contained in:
Dave Borowitz
2018-12-12 14:40:45 -08:00
parent bb6be29240
commit d5d53b692e
33 changed files with 50 additions and 480 deletions

View File

@@ -64,6 +64,6 @@ public class ElasticV6QueryProjectsTest extends AbstractQueryProjectsTest {
InMemoryModule.setDefaults(elasticsearchConfig);
String indicesPrefix = getSanitizedMethodName();
ElasticTestUtils.configure(elasticsearchConfig, nodeInfo.port, indicesPrefix);
return Guice.createInjector(new InMemoryModule(elasticsearchConfig, notesMigration));
return Guice.createInjector(new InMemoryModule(elasticsearchConfig));
}
}