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:
@@ -64,6 +64,6 @@ public class ElasticV7QueryAccountsTest extends AbstractQueryAccountsTest {
|
||||
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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user