mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-09-26 01:15:08 +00:00
Minor: Fix maven profiles to run tests for MySQL and Postgres using maven profiles (#14094)
* Fix maven profiles, run the default profile once * Fix maven profiles, run the default profile once * Minor: Fix systemPropertyVariables for maven profiles, fixes postgres tests run * Minor: Fix systemPropertyVariables for maven profiles, fixes postgres tests run
This commit is contained in:
parent
f95867abc8
commit
845a2e585e
@ -557,33 +557,22 @@
|
|||||||
<parallel>classes</parallel>
|
<parallel>classes</parallel>
|
||||||
<forkCount>1C</forkCount>
|
<forkCount>1C</forkCount>
|
||||||
<argLine>-Xmx1G</argLine>
|
<argLine>-Xmx1G</argLine>
|
||||||
|
<systemPropertyVariables>
|
||||||
|
<jdbcContainerClassName>org.testcontainers.containers.PostgreSQLContainer</jdbcContainerClassName>
|
||||||
|
<jdbcContainerImage>postgres:15</jdbcContainerImage>
|
||||||
|
<elasticSearchContainerClassName>docker.elastic.co/elasticsearch/elasticsearch:8.10.2</elasticSearchContainerClassName>
|
||||||
|
<openSearchContainerClassName>opensearchproject/opensearch:2.7.0</openSearchContainerClassName>
|
||||||
|
<runESTestCases>false</runESTestCases>
|
||||||
|
</systemPropertyVariables>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>default-test</id>
|
|
||||||
<configuration>
|
|
||||||
<skip>true</skip>
|
|
||||||
<systemPropertyVariables>
|
|
||||||
<elasticSearchContainerClassName>docker.elastic.co/elasticsearch/elasticsearch:7.16.3</elasticSearchContainerClassName>
|
|
||||||
<openSearchContainerClassName>opensearchproject/opensearch:1.3.0</openSearchContainerClassName>
|
|
||||||
<runESTestCases>false</runESTestCases>
|
|
||||||
</systemPropertyVariables>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>test</goal>
|
|
||||||
</goals>
|
|
||||||
<id>postgres-integration-tests</id>
|
<id>postgres-integration-tests</id>
|
||||||
<phase>test</phase>
|
<phase>test</phase>
|
||||||
<configuration>
|
<configuration>
|
||||||
<includes>
|
<includes>
|
||||||
<include>**/*ResourceTest.java</include>
|
<include>**/*ResourceTest.java</include>
|
||||||
</includes>
|
</includes>
|
||||||
<systemPropertyVariables>
|
|
||||||
<jdbcContainerClassName>org.testcontainers.containers.PostgreSQLContainer</jdbcContainerClassName>
|
|
||||||
<jdbcContainerImage>postgres:15</jdbcContainerImage>
|
|
||||||
</systemPropertyVariables>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
@ -592,10 +581,10 @@
|
|||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>mysql-tests</id>
|
|
||||||
<activation>
|
<activation>
|
||||||
<activeByDefault>true</activeByDefault>
|
<activeByDefault>true</activeByDefault>
|
||||||
</activation>
|
</activation>
|
||||||
|
<id>mysql-tests</id>
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
@ -607,47 +596,22 @@
|
|||||||
<parallel>classes</parallel>
|
<parallel>classes</parallel>
|
||||||
<forkCount>1C</forkCount>
|
<forkCount>1C</forkCount>
|
||||||
<argLine>-Xmx1G</argLine>
|
<argLine>-Xmx1G</argLine>
|
||||||
|
<systemPropertyVariables>
|
||||||
|
<jdbcContainerClassName>org.testcontainers.containers.MySQLContainer</jdbcContainerClassName>
|
||||||
|
<jdbcContainerImage>mysql:8</jdbcContainerImage>
|
||||||
|
<elasticSearchContainerClassName>docker.elastic.co/elasticsearch/elasticsearch:8.10.2</elasticSearchContainerClassName>
|
||||||
|
<openSearchContainerClassName>opensearchproject/opensearch:2.7.0</openSearchContainerClassName>
|
||||||
|
<runESTestCases>false</runESTestCases>
|
||||||
|
</systemPropertyVariables>
|
||||||
</configuration>
|
</configuration>
|
||||||
<executions>
|
<executions>
|
||||||
<execution>
|
<execution>
|
||||||
<id>default-test</id>
|
|
||||||
<configuration>
|
|
||||||
<skip>true</skip>
|
|
||||||
<systemPropertyVariables>
|
|
||||||
<elasticSearchContainerClassName>docker.elastic.co/elasticsearch/elasticsearch:7.16.3</elasticSearchContainerClassName>
|
|
||||||
<openSearchContainerClassName>opensearchproject/opensearch:1.3.0</openSearchContainerClassName>
|
|
||||||
<runESTestCases>false</runESTestCases>
|
|
||||||
</systemPropertyVariables>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>test</goal>
|
|
||||||
</goals>
|
|
||||||
<id>unit-tests</id>
|
|
||||||
<configuration>
|
|
||||||
<includes>**/*Test.java</includes>
|
|
||||||
<excludes>**/*ResourceTest.java</excludes>
|
|
||||||
<systemPropertyVariables>
|
|
||||||
<jdbcContainerClassName>org.testcontainers.containers.MySQLContainer</jdbcContainerClassName>
|
|
||||||
<jdbcContainerImage>mysql:8</jdbcContainerImage>
|
|
||||||
</systemPropertyVariables>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<goals>
|
|
||||||
<goal>test</goal>
|
|
||||||
</goals>
|
|
||||||
<id>mysql-integration-tests</id>
|
<id>mysql-integration-tests</id>
|
||||||
<phase>test</phase>
|
<phase>test</phase>
|
||||||
<configuration>
|
<configuration>
|
||||||
<includes>
|
<includes>
|
||||||
<include>**/*ResourceTest.java</include>
|
<include>**/*ResourceTest.java</include>
|
||||||
</includes>
|
</includes>
|
||||||
<systemPropertyVariables>
|
|
||||||
<jdbcContainerClassName>org.testcontainers.containers.MySQLContainer</jdbcContainerClassName>
|
|
||||||
<jdbcContainerImage>mysql:8</jdbcContainerImage>
|
|
||||||
</systemPropertyVariables>
|
|
||||||
</configuration>
|
</configuration>
|
||||||
</execution>
|
</execution>
|
||||||
</executions>
|
</executions>
|
||||||
@ -656,7 +620,6 @@
|
|||||||
</build>
|
</build>
|
||||||
</profile>
|
</profile>
|
||||||
</profiles>
|
</profiles>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user