mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-02-04 09:52:55 +00:00
* Add Parallel tests using the new SDK * Make tests faster and use new SDK * Add SDK based parallel tests * Add SDK based parallel tests * Fix from main * Add Fluen APIs for Tests * Add Fluen APIs for Tests * Add missing Fluent APIs for SDK * Add missing Fluent APIs for SDK - Data Contracts * Migrate all the integration tests to new module * Migrate all the integration tests to new module * Improve pagination test performance * Fix tests * Migration Complete * Fix the code styling; add github workflows, fix tags parallel issues * Update migration tracker, address flaky tests * Address comments * rename env -> bootstrap for java package * Fix YAML syntax in playwright-sso-tests.yml and update integration test workflows
336 lines
12 KiB
XML
336 lines
12 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|
<parent>
|
|
<artifactId>platform</artifactId>
|
|
<groupId>org.open-metadata</groupId>
|
|
<version>1.12.0-SNAPSHOT</version>
|
|
</parent>
|
|
<modelVersion>4.0.0</modelVersion>
|
|
<artifactId>openmetadata-integration-tests</artifactId>
|
|
<name>OpenMetadata Integration Tests</name>
|
|
<packaging>jar</packaging>
|
|
|
|
<properties>
|
|
<maven.surefire.version>3.1.2</maven.surefire.version>
|
|
<junit.jupiter.version>5.10.2</junit.jupiter.version>
|
|
<junit.platform.version>1.10.2</junit.platform.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<!-- SDK client -->
|
|
<dependency>
|
|
<groupId>org.open-metadata</groupId>
|
|
<artifactId>openmetadata-sdk</artifactId>
|
|
<version>${project.version}</version>
|
|
</dependency>
|
|
|
|
<!-- Service (for config types + app class) -->
|
|
<dependency>
|
|
<groupId>org.open-metadata</groupId>
|
|
<artifactId>openmetadata-service</artifactId>
|
|
<version>${project.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- Service test utilities (for RDF tests) -->
|
|
<dependency>
|
|
<groupId>org.open-metadata</groupId>
|
|
<artifactId>openmetadata-service</artifactId>
|
|
<version>${project.version}</version>
|
|
<type>test-jar</type>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- Testcontainers for infra -->
|
|
<dependency>
|
|
<groupId>org.testcontainers</groupId>
|
|
<artifactId>testcontainers</artifactId>
|
|
<version>1.20.3</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.testcontainers</groupId>
|
|
<artifactId>postgresql</artifactId>
|
|
<version>1.20.3</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.testcontainers</groupId>
|
|
<artifactId>mysql</artifactId>
|
|
<version>1.20.3</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.testcontainers</groupId>
|
|
<artifactId>elasticsearch</artifactId>
|
|
<version>1.20.3</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.opensearch</groupId>
|
|
<artifactId>opensearch-testcontainers</artifactId>
|
|
<version>2.0.1</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.testcontainers</groupId>
|
|
<artifactId>k3s</artifactId>
|
|
<version>1.20.3</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- Dropwizard testing harness -->
|
|
<dependency>
|
|
<groupId>io.dropwizard</groupId>
|
|
<artifactId>dropwizard-testing</artifactId>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- JUnit 5 -->
|
|
<dependency>
|
|
<groupId>org.junit.jupiter</groupId>
|
|
<artifactId>junit-jupiter</artifactId>
|
|
<version>${junit.jupiter.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- JUnit Platform Launcher (for LauncherSessionListener) -->
|
|
<dependency>
|
|
<groupId>org.junit.platform</groupId>
|
|
<artifactId>junit-platform-launcher</artifactId>
|
|
<version>${junit.platform.version}</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- Awaitility for eventual consistency -->
|
|
<dependency>
|
|
<groupId>org.awaitility</groupId>
|
|
<artifactId>awaitility</artifactId>
|
|
<version>4.2.0</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- JWT signing -->
|
|
<dependency>
|
|
<groupId>com.auth0</groupId>
|
|
<artifactId>java-jwt</artifactId>
|
|
<version>4.4.0</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
|
|
<!-- RDF support (Apache Jena) for RDF tests -->
|
|
<dependency>
|
|
<groupId>org.apache.jena</groupId>
|
|
<artifactId>jena-core</artifactId>
|
|
<version>5.0.0</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.jena</groupId>
|
|
<artifactId>jena-arq</artifactId>
|
|
<version>5.0.0</version>
|
|
<scope>test</scope>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>${maven.surefire.version}</version>
|
|
<configuration>
|
|
<!-- Single JVM fork - parallelism is handled by JUnit 5 internally -->
|
|
<!-- This ensures LauncherSessionListener starts containers ONCE -->
|
|
<forkCount>1</forkCount>
|
|
<reuseForks>true</reuseForks>
|
|
<argLine>-Xmx4096m -XX:+UseG1GC</argLine>
|
|
<includes>
|
|
<include>**/*IT.java</include>
|
|
<include>**/*Test.java</include>
|
|
</includes>
|
|
<systemPropertyVariables>
|
|
<junit.jupiter.extensions.autodetection.enabled>true</junit.jupiter.extensions.autodetection.enabled>
|
|
</systemPropertyVariables>
|
|
<!-- Report configuration for parallel execution -->
|
|
<trimStackTrace>false</trimStackTrace>
|
|
<reportFormat>plain</reportFormat>
|
|
<useFile>true</useFile>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
|
|
<profiles>
|
|
<!-- MySQL + Elasticsearch (default) -->
|
|
<profile>
|
|
<id>mysql-elasticsearch</id>
|
|
<activation>
|
|
<activeByDefault>true</activeByDefault>
|
|
</activation>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>${maven.surefire.version}</version>
|
|
<configuration>
|
|
<forkCount>1</forkCount>
|
|
<reuseForks>true</reuseForks>
|
|
<argLine>-Xmx4096m -XX:+UseG1GC</argLine>
|
|
<includes>
|
|
<include>**/*IT.java</include>
|
|
<include>**/*Test.java</include>
|
|
</includes>
|
|
<systemPropertyVariables>
|
|
<junit.jupiter.extensions.autodetection.enabled>true</junit.jupiter.extensions.autodetection.enabled>
|
|
<databaseType>mysql</databaseType>
|
|
<databaseImage>mysql:8.3.0</databaseImage>
|
|
<searchType>elasticsearch</searchType>
|
|
<searchImage>docker.elastic.co/elasticsearch/elasticsearch:8.11.4</searchImage>
|
|
</systemPropertyVariables>
|
|
<trimStackTrace>false</trimStackTrace>
|
|
<reportFormat>plain</reportFormat>
|
|
<useFile>true</useFile>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<!-- PostgreSQL + OpenSearch -->
|
|
<profile>
|
|
<id>postgres-opensearch</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>${maven.surefire.version}</version>
|
|
<configuration>
|
|
<forkCount>1</forkCount>
|
|
<reuseForks>true</reuseForks>
|
|
<argLine>-Xmx4096m -XX:+UseG1GC</argLine>
|
|
<includes>
|
|
<include>**/*IT.java</include>
|
|
<include>**/*Test.java</include>
|
|
</includes>
|
|
<systemPropertyVariables>
|
|
<junit.jupiter.extensions.autodetection.enabled>true</junit.jupiter.extensions.autodetection.enabled>
|
|
<databaseType>postgres</databaseType>
|
|
<databaseImage>postgres:15</databaseImage>
|
|
<searchType>opensearch</searchType>
|
|
<searchImage>opensearchproject/opensearch:2.19.0</searchImage>
|
|
</systemPropertyVariables>
|
|
<trimStackTrace>false</trimStackTrace>
|
|
<reportFormat>plain</reportFormat>
|
|
<useFile>true</useFile>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<!-- PostgreSQL + Elasticsearch -->
|
|
<profile>
|
|
<id>postgres-elasticsearch</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>${maven.surefire.version}</version>
|
|
<configuration>
|
|
<forkCount>1</forkCount>
|
|
<reuseForks>true</reuseForks>
|
|
<argLine>-Xmx4096m -XX:+UseG1GC</argLine>
|
|
<includes>
|
|
<include>**/*IT.java</include>
|
|
<include>**/*Test.java</include>
|
|
</includes>
|
|
<systemPropertyVariables>
|
|
<junit.jupiter.extensions.autodetection.enabled>true</junit.jupiter.extensions.autodetection.enabled>
|
|
<databaseType>postgres</databaseType>
|
|
<databaseImage>postgres:15</databaseImage>
|
|
<searchType>elasticsearch</searchType>
|
|
<searchImage>docker.elastic.co/elasticsearch/elasticsearch:8.11.4</searchImage>
|
|
</systemPropertyVariables>
|
|
<trimStackTrace>false</trimStackTrace>
|
|
<reportFormat>plain</reportFormat>
|
|
<useFile>true</useFile>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<!-- MySQL + OpenSearch -->
|
|
<profile>
|
|
<id>mysql-opensearch</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>${maven.surefire.version}</version>
|
|
<configuration>
|
|
<forkCount>1</forkCount>
|
|
<reuseForks>true</reuseForks>
|
|
<argLine>-Xmx4096m -XX:+UseG1GC</argLine>
|
|
<includes>
|
|
<include>**/*IT.java</include>
|
|
<include>**/*Test.java</include>
|
|
</includes>
|
|
<systemPropertyVariables>
|
|
<junit.jupiter.extensions.autodetection.enabled>true</junit.jupiter.extensions.autodetection.enabled>
|
|
<databaseType>mysql</databaseType>
|
|
<databaseImage>mysql:8.3.0</databaseImage>
|
|
<searchType>opensearch</searchType>
|
|
<searchImage>opensearchproject/opensearch:2.19.0</searchImage>
|
|
</systemPropertyVariables>
|
|
<trimStackTrace>false</trimStackTrace>
|
|
<reportFormat>plain</reportFormat>
|
|
<useFile>true</useFile>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
|
|
<!-- RDF integration tests profile -->
|
|
<profile>
|
|
<id>postgres-rdf-tests</id>
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.maven.plugins</groupId>
|
|
<artifactId>maven-surefire-plugin</artifactId>
|
|
<version>${maven.surefire.version}</version>
|
|
<configuration>
|
|
<reuseForks>true</reuseForks>
|
|
<forkCount>1</forkCount>
|
|
<argLine>-Xmx2G</argLine>
|
|
<systemPropertyVariables>
|
|
<enableRdf>true</enableRdf>
|
|
<rdfContainerImage>stain/jena-fuseki:latest</rdfContainerImage>
|
|
<databaseType>postgres</databaseType>
|
|
<databaseImage>postgres:15</databaseImage>
|
|
<searchType>elasticsearch</searchType>
|
|
<searchImage>docker.elastic.co/elasticsearch/elasticsearch:8.11.4</searchImage>
|
|
<junit.jupiter.extensions.autodetection.enabled>true</junit.jupiter.extensions.autodetection.enabled>
|
|
</systemPropertyVariables>
|
|
<includes>
|
|
<include>**/*IT.java</include>
|
|
<include>**/*Test.java</include>
|
|
</includes>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>
|
|
</build>
|
|
</profile>
|
|
</profiles>
|
|
|
|
</project>
|