Skip to content

Commit

Permalink
#300: created setup for PostgreSQLSqlDialectIT
Browse files Browse the repository at this point in the history
  • Loading branch information
AnastasiiaSergienko committed Jan 16, 2020
1 parent a99e3e8 commit 2886325
Show file tree
Hide file tree
Showing 7 changed files with 925 additions and 707 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<img alt="virtual-schemas logo" src="doc/images/virtual-schemas_128x128.png" style="float:left; padding:0px 10px 10px 10px;"/>

[![Build Status](https://travis-ci.org/exasol/virtual-schemas.svg?branch=master)](https://travis-ci.org/exasol/virtual-schemas)
[![Build Status](https://travis-ci.com/exasol/virtual-schemas.svg?branch=master)](https://travis-ci.com/exasol/virtual-schemas)

SonarCloud results:

Expand Down
69 changes: 42 additions & 27 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
<surefire.and.failsafe.plugin.version>3.0.0-M4</surefire.and.failsafe.plugin.version>
<vscjava.version>8.0.1</vscjava.version>
<vscjdbc.version>2.0.1</vscjdbc.version>
<org.testcontainers.version>1.12.3</org.testcontainers.version>
<sonar.coverage.jacoco.xmlReportPaths>target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml
</sonar.coverage.jacoco.xmlReportPaths>
</properties>
Expand Down Expand Up @@ -121,41 +122,60 @@
<artifactId>virtual-schema-common-jdbc</artifactId>
<version>${vscjdbc.version}</version>
</dependency>
<!--The EXASOL JDBC driver is included into dist package-->
<dependency>
<groupId>com.exasol</groupId>
<artifactId>exasol-testcontainers</artifactId>
<version>1.4.0</version>
<scope>test</scope>
<artifactId>exasol-jdbc</artifactId>
<version>6.2.1</version>
</dependency>
<!--Test dependencies-->
<dependency>
<groupId>com.exasol</groupId>
<artifactId>hamcrest-resultset-matcher</artifactId>
<version>0.1.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.exasol</groupId>
<artifactId>virtual-schema-common-jdbc</artifactId>
<version>${vscjdbc.version}</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.exasol</groupId>
<artifactId>exasol-testcontainers</artifactId>
<version>1.4.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testcontainers</groupId>
<artifactId>junit-jupiter</artifactId>
<version>1.12.3</version>
<version>${org.testcontainers.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.exasol</groupId>
<artifactId>virtual-schema-common-jdbc</artifactId>
<version>${vscjdbc.version}</version>
<type>test-jar</type>
<groupId>org.testcontainers</groupId>
<artifactId>postgresql</artifactId>
<version>${org.testcontainers.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<version>2.2</version>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>42.2.9</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.skyscreamer</groupId>
<artifactId>jsonassert</artifactId>
<version>1.5.0</version>
<groupId>com.zaxxer</groupId>
<artifactId>HikariCP-java6</artifactId>
<version>2.3.13</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest</artifactId>
<version>2.2</version>
<scope>test</scope>
</dependency>
<dependency>
Expand Down Expand Up @@ -186,13 +206,21 @@
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>3.2.4</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-junit-jupiter</artifactId>
<version>3.2.4</version>
<scope>test</scope>
</dependency>
<!--From here: legacy dependencies that should be checked later (most of them were used in old integration tests)-->
<dependency>
<groupId>org.skyscreamer</groupId>
<artifactId>jsonassert</artifactId>
<version>1.5.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
Expand Down Expand Up @@ -230,19 +258,6 @@
<version>4.5.2</version>
<scope>integration-test</scope>
</dependency>
<!-- The EXASOL jdbc driver is only needed for verify scope, however we add it always so that you can always create
virtual schemas to an EXASOL -->
<dependency>
<groupId>com.exasol</groupId>
<artifactId>exasol-jdbc</artifactId>
<version>6.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.derby</groupId>
<artifactId>derby</artifactId>
<version>10.14.2.0</version>
<scope>test</scope>
</dependency>
</dependencies>
<build>
<plugins>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.exasol.adapter.dialects;

import java.nio.file.Path;

public final class IntegrationTestsConstants {
public static final String VIRTUAL_SCHEMAS_JAR_NAME_AND_VERSION = "virtualschema-jdbc-adapter-dist-3.0.1.jar";
public static final Path PATH_TO_VIRTUAL_SCHEMAS_JAR = Path.of("target/" + VIRTUAL_SCHEMAS_JAR_NAME_AND_VERSION);
public static final String SCHEMA_EXASOL_TEST = "SCHEMA_EXASOL_TEST";
}
Loading

0 comments on commit 2886325

Please sign in to comment.