Skip to content

Commit 3bff6de

Browse files
committed
Test Flyway etter oppgradering
1 parent 0b90a69 commit 3bff6de

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
-- ${flyway:timestamp}
2+
SELECT 1=1;

dp-inntekt-api/src/test/kotlin/no/nav/dagpenger/inntekt/db/PostgresTest.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ internal class PostgresTest {
3131
fun `Migration scripts are applied successfully`() {
3232
withCleanDb {
3333
val migrations = PostgresDataSourceBuilder.runMigration()
34-
assertEquals(18, migrations, "Wrong number of migrations")
34+
assertEquals(19, migrations, "Wrong number of migrations")
3535
}
3636
}
3737

@@ -47,7 +47,7 @@ internal class PostgresTest {
4747
fun `Migration of testdata `() {
4848
withCleanDb {
4949
val migrations = PostgresDataSourceBuilder.runMigration(locations = listOf("db/migration", "db/testdata"))
50-
assertEquals(23, migrations, "Wrong number of migrations")
50+
assertEquals(24, migrations, "Wrong number of migrations")
5151
}
5252
}
5353
}
@@ -84,7 +84,7 @@ internal class PostgresInntektStoreTest {
8484

8585
@Test
8686
fun ` Should insert different inntekt based on different aktørid and same vedtak id `() {
87-
val ident1 = "1234"
87+
val ident1 = "123'4"
8888
val ident2 = "5678"
8989

9090
withMigratedDb {

0 commit comments

Comments
 (0)