remove outOfOrder test. We no longer support validating order.
This commit is contained in:
parent
828e6ebe9f
commit
831ce6a4a9
|
@ -17,7 +17,6 @@ import java.util.Properties;
|
|||
import java.util.Set;
|
||||
import java.util.function.Supplier;
|
||||
|
||||
import static org.hamcrest.CoreMatchers.containsString;
|
||||
import static org.hamcrest.CoreMatchers.startsWith;
|
||||
import static org.hamcrest.MatcherAssert.assertThat;
|
||||
import static org.hamcrest.Matchers.endsWith;
|
||||
|
@ -65,27 +64,6 @@ public class SchemaMigratorTest extends BaseTest {
|
|||
schemaMigrator.migrate();
|
||||
}
|
||||
|
||||
@ParameterizedTest(name = "{index}: {0}")
|
||||
@MethodSource("data")
|
||||
public void testOutOfOrderMigration(Supplier<TestDatabaseDetails> theTestDatabaseDetails) {
|
||||
before(theTestDatabaseDetails);
|
||||
|
||||
SchemaMigrator schemaMigrator = createSchemaMigrator("SOMETABLE", "create table SOMETABLE (PID bigint not null, TEXTCOL varchar(255))", "2");
|
||||
schemaMigrator.migrate();
|
||||
|
||||
AddTableRawSqlTask task1 = createAddTableTask("SOMEOTHERTABLE", "create table SOMEOTHERTABLE (PID bigint not null, TEXTCOL varchar(255))", "1");
|
||||
AddTableRawSqlTask task2 = createAddTableTask("SOMETABLE", "create table SOMETABLE (PID bigint not null, TEXTCOL varchar(255))", "2");
|
||||
schemaMigrator = createSchemaMigrator(task1, task2);
|
||||
|
||||
try {
|
||||
schemaMigrator.migrate();
|
||||
fail();
|
||||
} catch (HapiMigrationException e) {
|
||||
assertThat(e.getMessage(), containsString("Detected resolved migration not applied to database: 1.1"));
|
||||
}
|
||||
schemaMigrator.migrate();
|
||||
}
|
||||
|
||||
@ParameterizedTest(name = "{index}: {0}")
|
||||
@MethodSource("data")
|
||||
public void testSkipSchemaVersion(Supplier<TestDatabaseDetails> theTestDatabaseDetails) throws SQLException {
|
||||
|
|
Loading…
Reference in New Issue