Skip to content

Commit

Permalink
tests: add mssql 2019 & mssql 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
mjeanroy committed Nov 12, 2023
1 parent 9c4cc77 commit e08d1c2
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@
import static com.github.mjeanroy.dbunit.tests.db.TestDbUtils.countUsers;
import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.MARIADB_10;
import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.MSSQL_2017;
import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.MSSQL_2019;
import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.MSSQL_2022;
import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.MYSQL_57;
import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.MYSQL_8;
import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.ORACLE_21;
Expand Down Expand Up @@ -153,7 +155,21 @@ class MariaDB10 extends AbstractDbUnitDbProductITest {
@DbUnitTestContainersTest
@DbUnitConfig(fkManagers = MsSQLForeignKeyManager.class)
@Nested
class MsSQL extends AbstractDbUnitDbProductITest {
class MsSQL2017 extends AbstractDbUnitDbProductITest {
}

@TestContainersTest(image = MSSQL_2019)
@DbUnitTestContainersTest
@DbUnitConfig(fkManagers = MsSQLForeignKeyManager.class)
@Nested
class MsSQL2019 extends AbstractDbUnitDbProductITest {
}

@TestContainersTest(image = MSSQL_2022)
@DbUnitTestContainersTest
@DbUnitConfig(fkManagers = MsSQLForeignKeyManager.class)
@Nested
class MsSQL2022 extends AbstractDbUnitDbProductITest {
}

@DisabledIfSystemProperty(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,7 @@ private TestContainersImages() {
public static final String POSTGRES_14 = "postgres:14-alpine";
public static final String POSTGRES_15 = "postgres:15-alpine";
public static final String MSSQL_2017 = "mcr.microsoft.com/mssql/server:2017-latest";
public static final String MSSQL_2019 = "mcr.microsoft.com/mssql/server:2019-latest";
public static final String MSSQL_2022 = "mcr.microsoft.com/mssql/server:2022-latest";
public static final String ORACLE_21 = "gvenzl/oracle-xe:21-slim-faststart";
}

0 comments on commit e08d1c2

Please sign in to comment.