Skip to content

Commit

Permalink
[#643] AMQP adapter integration tests
Browse files Browse the repository at this point in the history
Signed-off-by: Alfusainey Jallow <alf.jallow@gmail.com>
  • Loading branch information
Alfusainey authored and Kai Hudalla committed Jul 31, 2018
1 parent 1afbef0 commit 1f892a9
Show file tree
Hide file tree
Showing 6 changed files with 672 additions and 0 deletions.
58 changes: 58 additions & 0 deletions tests/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -576,6 +576,64 @@ Test cases are run against Docker images of Hono server + (Apache Qpid Dispatch
</wait>
</run>
</image>
<!-- ##### AMQP adapter ##### -->
<image>
<name>${docker.image.org-name}/hono-adapter-amqp-test</name>
<alias>amqp-adapter</alias>
<build>
<from>${docker.image.org-name}/hono-adapter-amqp-vertx:${project.version}</from>
<assembly>
<mode>dir</mode>
<basedir>/etc/hono</basedir>
<inline>
<id>config</id>
<fileSets>
<fileSet>
<directory>${project.basedir}/src/test/resources/amqp</directory>
<outputDirectory>.</outputDirectory>
<includes>
<include>*</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.build.directory}/certs</directory>
<outputDirectory>certs</outputDirectory>
</fileSet>
</fileSets>
</inline>
</assembly>
</build>
<run>
<ports>
<port>+adapter.amqp.ip:adapter.amqp.port:4040</port>
<port>+adapter.amqp.ip:adapter.amqp.health.port:8088</port>
<port>8000:8000</port>
</ports>
<network>
<mode>custom</mode>
<name>hono</name>
<alias>hono-adapter-amqp-vertx.hono</alias>
</network>
<env>
<LOGGING_CONFIG>file:///etc/hono/logback-spring.xml</LOGGING_CONFIG>
<SPRING_CONFIG_LOCATION>file:///etc/hono/</SPRING_CONFIG_LOCATION>
<SPRING_PROFILES_ACTIVE>prod</SPRING_PROFILES_ACTIVE>
<!--<_JAVA_OPTIONS>-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y</_JAVA_OPTIONS> -->
</env>
<log>
<prefix>AMQP</prefix>
<color>RED</color>
</log>
<wait>
<time>${service.startup.timeout}</time>
<http>
<method>GET</method>
<url>http://${adapter.amqp.ip}:${adapter.amqp.health.port}/readiness</url>
<status>200..299</status>
</http>
</wait>
</run>
</image>
</images>
</configuration>
<executions>
Expand Down

0 comments on commit 1f892a9

Please sign in to comment.