Skip to content

Commit

Permalink
Always use latest Exasol version
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklakariada committed Oct 2, 2023
1 parent 6afd1ee commit e3e0c0d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

public final class IntegrationTestConstants {
public static final String VIRTUAL_SCHEMAS_JAR_NAME_AND_VERSION = "virtual-schema-dist-11.0.2-oracle-2.4.2.jar";
public static final String EXASOL_DOCKER_IMAGE_REFERENCE = "exasol/docker-db:7.0.10";
public static final String ORACLE_CONTAINER_NAME = "gvenzl/oracle-xe:21.3.0";
public static final String SCHEMA_EXASOL = "SCHEMA_EXASOL";
public static final String TABLE_JOIN_1 = "TABLE_JOIN_1";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,20 @@
import org.junit.jupiter.params.ParameterizedTest;
import org.junit.jupiter.params.provider.CsvSource;
import org.junit.jupiter.params.provider.ValueSource;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.testcontainers.containers.output.Slf4jLogConsumer;
import org.testcontainers.junit.jupiter.Container;
import org.testcontainers.junit.jupiter.Testcontainers;

import com.exasol.bucketfs.Bucket;
import com.exasol.bucketfs.BucketAccessException;
import com.exasol.containers.ExasolContainer;
import com.exasol.containers.ExasolService;
import com.exasol.dbbuilder.dialects.exasol.*;
import com.exasol.udfdebugging.UdfTestSetup;
import com.github.dockerjava.api.model.ContainerNetwork;

@Tag("integration")
@Testcontainers
class OracleSqlDialectIT {
private static final Logger LOGGER = LoggerFactory.getLogger(OracleSqlDialectIT.class);

private static final String ORACLE_CONTAINER_NAME = IntegrationTestConstants.ORACLE_CONTAINER_NAME;

private static final String SCHEMA_ORACLE = "SCHEMA_ORACLE";
Expand All @@ -61,9 +57,8 @@ class OracleSqlDialectIT {
private static final String TABLE_ORACLE_TIMESTAMPS = "TABLE_ORACLE_TIMESTAMPS";

@Container
private static final ExasolContainer<? extends ExasolContainer<?>> exasolContainer = new ExasolContainer<>(
EXASOL_DOCKER_IMAGE_REFERENCE) //
.withLogConsumer(new Slf4jLogConsumer(LOGGER));
private static final ExasolContainer<? extends ExasolContainer<?>> exasolContainer = new ExasolContainer<>() //
.withRequiredServices(ExasolService.BUCKETFS, ExasolService.UDF).withReuse(true);
@Container
private static final OracleContainerDBA oracleContainer = new OracleContainerDBA(ORACLE_CONTAINER_NAME);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,12 @@ public class OracleVirtualSchemaIntegrationTestSetup implements Closeable {
private static final Path PATH_TO_VIRTUAL_SCHEMAS_JAR = Path.of("target", VIRTUAL_SCHEMAS_JAR_NAME_AND_VERSION);
private static final String SCHEMA_EXASOL = "SCHEMA_EXASOL";
private static final String ADAPTER_SCRIPT_EXASOL = "ADAPTER_SCRIPT_EXASOL";
private static final String EXASOL_DOCKER_IMAGE_REFERENCE = "exasol/docker-db:7.1.18";
private static final String ORACLE_CONTAINER_NAME = IntegrationTestConstants.ORACLE_CONTAINER_NAME;

private final Statement oracleStatement;
private final OracleContainerDBA oracleContainer = new OracleContainerDBA(ORACLE_CONTAINER_NAME);
private final ExasolContainer<? extends ExasolContainer<?>> exasolContainer = new ExasolContainer<>(
EXASOL_DOCKER_IMAGE_REFERENCE).withRequiredServices(ExasolService.BUCKETFS, ExasolService.UDF)
.withReuse(true);
private final ExasolContainer<? extends ExasolContainer<?>> exasolContainer = new ExasolContainer<>()
.withRequiredServices(ExasolService.BUCKETFS, ExasolService.UDF).withReuse(true);
private final Connection exasolConnection;
private final Statement exasolStatement;
private final AdapterScript adapterScript;
Expand Down

0 comments on commit e3e0c0d

Please sign in to comment.