Skip to content

Commit

Permalink
Merge pull request #584 from cescoffier/2.x-update-vertx-4.3.3
Browse files Browse the repository at this point in the history
2.x - update vertx 4.3.3
  • Loading branch information
cescoffier authored Aug 17, 2022
2 parents 9147465 + 20f589e commit 5b06eec
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 15 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ To generate the compatibility report, you need:
Generate the report with:

```bash
mvn verify -DskipTests revapi:report@revapi-check -Prevapi -DskipTests -Dmaven.javadoc.skip=true -pl \!vertx-mutiny-clients-bom
mvn verify -DskipTests revapi:report@revapi-check -Prevapi -DskipTests -Dmaven.javadoc.skip=true -pl \!vertx-mutiny-clients-bom -pl \!vertx-mutiny-clients/vertx-mutiny-sql-client
jbang CompatibilityReport.java && asciidoctor target/compatibility-report.adoc
```

Expand Down
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
<properties>
<sonar.coverage.jacoco.xmlReportPaths>target/site/jacoco/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>

<vertx.version>4.3.2</vertx.version>
<vertx.version>4.3.3</vertx.version>
<mutiny.version>1.7.0</mutiny.version>
<jackson.version>2.13.3</jackson.version>
<reactive-streams.version>1.0.4</reactive-streams.version>
Expand Down Expand Up @@ -222,7 +222,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.4.0</version>
<version>3.4.1</version>
<configuration>
<additionalJOption>-Xdoclint:none</additionalJOption>
</configuration>
Expand Down Expand Up @@ -340,7 +340,7 @@
<!-- Do not check for Vert.x, only focus on the client API -->
<checkDependencies>false</checkDependencies>
<generateSiteReport>false</generateSiteReport>
<oldVersion>2.23.0</oldVersion>
<oldVersion>2.25.0</oldVersion>
<newVersion>${project.version}</newVersion>

<analysisConfiguration>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,10 @@
public class AMQPClientTest {

@Rule
public GenericContainer<?> container = new GenericContainer<>("vromero/activemq-artemis:latest")
public GenericContainer<?> container = new GenericContainer<>("quay.io/artemiscloud/activemq-artemis-broker:1.0.6")
.withEnv("AMQ_USER", "admin")
.withEnv("AMQ_PASSWORD", "admin")
.withEnv("AMQ_EXTRA_ARGS", "--nio")
.withExposedPorts(5672);

private Vertx vertx;
Expand Down
14 changes: 14 additions & 0 deletions vertx-mutiny-clients/vertx-mutiny-db2-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,20 @@
<maven.test.skip>true</maven.test.skip>
</properties>
</profile>

<profile>
<id>arm</id>
<activation>
<os>
<arch>aarch64</arch>
</os>
</activation>
<properties>
<!-- No DB2 image for ARM - https://hub.docker.com/r/ibmcom/db2/tags -->
<maven.test.skip>true</maven.test.skip>
</properties>

</profile>
</profiles>

</project>
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.testcontainers.containers.BindMode;
import org.testcontainers.containers.GenericContainer;

import io.vertx.ext.mail.MailConfig;
Expand All @@ -19,9 +18,8 @@
public class MailClientTest {

@Rule
public GenericContainer<?> container = new GenericContainer<>("digiplant/fake-smtp:latest")
.withExposedPorts(25)
.withFileSystemBind("target", "/tmp/fakemail", BindMode.READ_WRITE);
public GenericContainer<?> container = new GenericContainer<>("mailhog/mailhog:latest")
.withExposedPorts(1025);

private Vertx vertx;

Expand All @@ -39,8 +37,8 @@ public void tearDown() {
@Test
public void testMutinyAPI() {
MailClient client = MailClient.createShared(vertx, new MailConfig()
.setPort(container.getMappedPort(25))
.setHostname(container.getContainerIpAddress()));
.setPort(container.getMappedPort(1025))
.setHostname(container.getHost()));
assertThat(client, is(notNullValue()));
client.sendMail(new MailMessage().setText("hello mutiny")
.setSubject("test email")
Expand All @@ -53,8 +51,8 @@ public void testMutinyAPI() {
@Test
public void testBlockingAPI() {
MailClient client = MailClient.createShared(vertx, new MailConfig()
.setPort(container.getMappedPort(25))
.setHostname(container.getContainerIpAddress()));
.setPort(container.getMappedPort(1025))
.setHostname(container.getHost()));
assertThat(client, is(notNullValue()));
client.sendMailAndAwait(new MailMessage().setText("hello mutiny")
.setSubject("test email")
Expand Down
3 changes: 1 addition & 2 deletions vertx-mutiny-clients/vertx-mutiny-web-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@
<dependency>
<groupId>${gen-source-groupId}</groupId>
<artifactId>${gen-source-artifactId}</artifactId>
<!-- This is because of the close method that changed its signature in 4.3.3 -->
<version>${vertx.version}.1</version>
<version>${vertx.version}</version>
</dependency>

<!-- Vert.x Mutiny Core -->
Expand Down

0 comments on commit 5b06eec

Please sign in to comment.