Skip to content

Commit

Permalink
tests: specify oracle-xe version
Browse files Browse the repository at this point in the history
  • Loading branch information
mjeanroy committed Nov 4, 2023
1 parent 516a19d commit e6fb0b8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
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.MYSQL_57;
import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.ORACLE;
import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.ORACLE_21;
import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.POSTGRES_13;

class AutoDetectForeignKeyManagerTest {
Expand Down Expand Up @@ -86,7 +86,7 @@ class AutoDetectMsSQLForeignKeyManagerTest extends BaseAutoAutoDetectForeignKeyM
matches = "aarch64",
disabledReason = "Oracle Container does not work on Apple M1"
)
@TestContainersTest(image = ORACLE, resolveConnection = true)
@TestContainersTest(image = ORACLE_21, resolveConnection = true)
class AutoDetectOracleForeignKeyManagerTest extends BaseAutoAutoDetectForeignKeyManagerTest {
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
import com.github.mjeanroy.dbunit.tests.jupiter.TestContainersTest;
import org.junit.jupiter.api.condition.DisabledIfSystemProperty;

import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.ORACLE;
import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.ORACLE_21;

@DisabledIfSystemProperty(
named = "os.arch",
matches = "aarch64",
disabledReason = "Oracle Container does not work on Apple M1"
)
@TestContainersTest(image = ORACLE, resolveConnection = true)
@TestContainersTest(image = ORACLE_21, resolveConnection = true)
class OracleForeignKeyManagerTest extends AbstractForeignKeyManagerTest {

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.MSSQL_2017;
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;
import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.ORACLE_21;
import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.POSTGRES_12;
import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.POSTGRES_13;
import static com.github.mjeanroy.dbunit.tests.utils.TestContainersImages.POSTGRES_14;
Expand Down Expand Up @@ -161,7 +161,7 @@ class MsSQL extends AbstractDbUnitDbProductITest {
matches = "aarch64",
disabledReason = "Oracle Container does not work on Apple M1"
)
@TestContainersTest(image = ORACLE)
@TestContainersTest(image = ORACLE_21)
@DbUnitTestContainersTest
@DbUnitConfig(fkManagers = OracleForeignKeyManager.class)
@Nested
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@ 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 ORACLE = "gvenzl/oracle-xe:21-slim-faststart";
public static final String ORACLE_21 = "gvenzl/oracle-xe:21-slim-faststart";
}

0 comments on commit e6fb0b8

Please sign in to comment.