Search in sources :

Example 11 with MigrationCompleted

use of org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.V20191203120602_MigrateSavedSearchesToViews.MigrationCompleted in project graylog2-server by Graylog2.

the class V20191203120602_MigrateSavedSearchesToViewsTest method writesMigrationCompletedAfterSuccess.

@Test
public void writesMigrationCompletedAfterSuccess() {
    this.migration.upgrade();
    final MigrationCompleted migrationCompleted = captureMigrationCompleted();
    assertThat(migrationCompleted.savedSearchIds()).isEmpty();
}
Also used : MigrationCompleted(org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.V20191203120602_MigrateSavedSearchesToViews.MigrationCompleted) Test(org.junit.Test)

Aggregations

MigrationCompleted (org.graylog.plugins.views.migrations.V20191203120602_MigrateSavedSearchesToViewsSupport.V20191203120602_MigrateSavedSearchesToViews.MigrationCompleted)11 Test (org.junit.Test)11 AbstractMap (java.util.AbstractMap)10 MongoDBFixtures (org.graylog.testing.mongodb.MongoDBFixtures)10