Skip to content

Commit

Permalink
chore(ci): run test container on lower and upper bound version for RDBMS
Browse files Browse the repository at this point in the history
fixes AM-4597
  • Loading branch information
leleueri committed Jan 6, 2025
1 parent c5837d7 commit 700629a
Show file tree
Hide file tree
Showing 4 changed files with 117 additions and 17 deletions.
4 changes: 2 additions & 2 deletions .circleci/workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -811,7 +811,7 @@ jobs:
parameters:
jdbcType:
type: enum
enum: [ "postgres", "mysql", "mariadb", "mssql" ]
enum: ["postgres", "mysql", "mariadb", "mssql", "postgres-min", "mysql-min", "mariadb-min", "mssql-min"]
steps:
- attach_workspace:
at: /tmp
Expand Down Expand Up @@ -1993,7 +1993,7 @@ workflows:
- /^(\d|[1-9]\d*)\.(\d|[1-9]\d*)\.x$/
matrix:
parameters:
jdbcType: ["postgres", "mysql", "mariadb", "mssql"]
jdbcType: ["postgres", "mysql", "mariadb", "mssql", "postgres-min", "mysql-min", "mariadb-min", "mssql-min"]

build_branch:
when:
Expand Down
81 changes: 74 additions & 7 deletions gravitee-am-reporter/gravitee-am-reporter-jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

<properties>
<skip-reporters-tests>true</skip-reporters-tests>
<jdbcType>postgresql-tc~17.2</jdbcType>
</properties>

<dependencies>
Expand Down Expand Up @@ -207,17 +208,83 @@

<profiles>
<profile>
<id>cicd</id>
<id>postgres</id>
<properties>
<jdbcType>${testcontainer-upper-version-psql}</jdbcType>
</properties>
</profile>
<profile>
<id>mysql</id>
<properties>
<jdbcType>${testcontainer-upper-version-mysql}</jdbcType>
</properties>
</profile>
<profile>
<id>mariadb</id>
<properties>
<jdbcType>${testcontainer-upper-version-maria}</jdbcType>
</properties>
</profile>
<profile>
<id>mssql</id>
<properties>
<jdbcType>${testcontainer-upper-version-mssql}</jdbcType>
</properties>
</profile>
<profile>
<id>postgres-min</id>
<properties>
<jdbcType>${testcontainer-lower-version-psql}</jdbcType>
</properties>
</profile>
<profile>
<id>mysql-min</id>
<properties>
<jdbcType>${testcontainer-lower-version-mysql}</jdbcType>
</properties>
</profile>
<profile>
<id>mariadb-min</id>
<properties>
<jdbcType>${testcontainer-lower-version-maria}</jdbcType>
</properties>
</profile>
<profile>
<id>mssql-min</id>
<properties>
<jdbcType>${testcontainer-lower-version-mssql}</jdbcType>
</properties>
</profile>
<profile>
<id>cicd-jdbc</id>
<build>
<plugins>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>false</skipTests>
<argLine>-Xmx1024m</argLine>
<systemPropertyVariables>
<jdbcType>${jdbcType}</jdbcType>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>cicd-full</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>false</skipTests>
<argLine>-Xmx1024m</argLine>
<systemPropertyVariables>
<jdbcType>postgresql-tc~17.2</jdbcType>
<jdbcType>${testcontainer-upper-version-psql}</jdbcType>
</systemPropertyVariables>
</configuration>
<executions>
Expand All @@ -228,18 +295,18 @@
</goals>
<configuration>
<systemPropertyVariables>
<jdbcType>mysql-tc~8.4</jdbcType>
<jdbcType>${testcontainer-upper-version-mysql}</jdbcType>
</systemPropertyVariables>
</configuration>
</execution>
<execution>
<id>mariadb-10.6</id>
<id>mariadb-10.5</id>
<goals>
<goal>test</goal>
</goals>
<configuration>
<systemPropertyVariables>
<jdbcType>mariadb-tc~11.6.2</jdbcType>
<jdbcType>${testcontainer-upper-version-maria}</jdbcType>
</systemPropertyVariables>
</configuration>
</execution>
Expand All @@ -250,7 +317,7 @@
</goals>
<configuration>
<systemPropertyVariables>
<jdbcType>mssql-tc~2022-latest</jdbcType>
<jdbcType>${testcontainer-upper-version-mssql}</jdbcType>
</systemPropertyVariables>
</configuration>
</execution>
Expand Down
40 changes: 32 additions & 8 deletions gravitee-am-repository/gravitee-am-repository-jdbc/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -362,25 +362,49 @@
<profile>
<id>postgres</id>
<properties>
<jdbcType>postgresql-tc~17.2</jdbcType>
<jdbcType>${testcontainer-upper-version-psql}</jdbcType>
</properties>
</profile>
<profile>
<id>mysql</id>
<properties>
<jdbcType>mysql-tc~8.4</jdbcType>
<jdbcType>${testcontainer-upper-version-mysql}</jdbcType>
</properties>
</profile>
<profile>
<id>mariadb</id>
<properties>
<jdbcType>mariadb-tc~11.6.2</jdbcType>
<jdbcType>${testcontainer-upper-version-maria}</jdbcType>
</properties>
</profile>
<profile>
<id>mssql</id>
<properties>
<jdbcType>mssql-tc~2022-latest</jdbcType>
<jdbcType>${testcontainer-upper-version-mssql}</jdbcType>
</properties>
</profile>
<profile>
<id>postgres-min</id>
<properties>
<jdbcType>${testcontainer-lower-version-psql}</jdbcType>
</properties>
</profile>
<profile>
<id>mysql-min</id>
<properties>
<jdbcType>${testcontainer-lower-version-mysql}</jdbcType>
</properties>
</profile>
<profile>
<id>mariadb-min</id>
<properties>
<jdbcType>${testcontainer-lower-version-maria}</jdbcType>
</properties>
</profile>
<profile>
<id>mssql-min</id>
<properties>
<jdbcType>${testcontainer-lower-version-mssql}</jdbcType>
</properties>
</profile>
<profile>
Expand Down Expand Up @@ -412,7 +436,7 @@
<skipTests>false</skipTests>
<argLine>-Xmx1024m</argLine>
<systemPropertyVariables>
<jdbcType>postgresql-tc~15.1</jdbcType>
<jdbcType>${testcontainer-upper-version-psql}</jdbcType>
</systemPropertyVariables>
</configuration>
<executions>
Expand All @@ -423,7 +447,7 @@
</goals>
<configuration>
<systemPropertyVariables>
<jdbcType>mysql-tc~8.0.27</jdbcType>
<jdbcType>${testcontainer-upper-version-mysql}</jdbcType>
</systemPropertyVariables>
</configuration>
</execution>
Expand All @@ -434,7 +458,7 @@
</goals>
<configuration>
<systemPropertyVariables>
<jdbcType>mariadb-tc~10.6.5</jdbcType>
<jdbcType>${testcontainer-upper-version-maria}</jdbcType>
</systemPropertyVariables>
</configuration>
</execution>
Expand All @@ -445,7 +469,7 @@
</goals>
<configuration>
<systemPropertyVariables>
<jdbcType>mssql-tc~2019-latest</jdbcType>
<jdbcType>${testcontainer-upper-version-mssql}</jdbcType>
</systemPropertyVariables>
</configuration>
</execution>
Expand Down
9 changes: 9 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,15 @@
<jdbc-mysql.version>8.0.33</jdbc-mysql.version>
<jdbc-mariadb.version>2.4.0</jdbc-mariadb.version>

<testcontainer-upper-version-psql>postgresql-tc~17.2</testcontainer-upper-version-psql>
<testcontainer-upper-version-mysql>mysql-tc~8.4</testcontainer-upper-version-mysql>
<testcontainer-upper-version-maria>mariadb-tc~11.6.2</testcontainer-upper-version-maria>
<testcontainer-upper-version-mssql>mssql-tc~2022-latest</testcontainer-upper-version-mssql>
<testcontainer-lower-version-psql>postgresql-tc~11.20-bullseye</testcontainer-lower-version-psql>
<testcontainer-lower-version-mysql>mysql-tc~8.0</testcontainer-lower-version-mysql>
<testcontainer-lower-version-maria>mariadb-tc~10.3</testcontainer-lower-version-maria>
<testcontainer-lower-version-mssql>mssql-tc~2017-latest</testcontainer-lower-version-mssql>

<!-- External plugins versions -->
<gravitee-policy-callout-http.version>3.0.0</gravitee-policy-callout-http.version>
<gravitee-policy-groovy.version>2.5.2</gravitee-policy-groovy.version>
Expand Down

0 comments on commit 700629a

Please sign in to comment.