test: add an opt-in integration suite against the real emulator images (#44)

mvn test -Pintegration drives start, wait, status, env and stop for all four products through the CLI's own command tree, plus two AWS instances side by side, each container uniquely named on a free port and removed afterwards. Tests tagged integration are excluded from the default build. A new Integration workflow runs the suite on main, weekly and on demand.
This commit is contained in:
Hector Ventura authored and GitHub committed 2026-10-09 22:11:00 -05:00
1 parent a813a23785
commit 030d468fd3
4 files changed
+193

No files matched your search

+15
View File
@@ -27,6 +27,8 @@
<jackson.version>2.18.3</jackson.version>
<junit.version>5.11.4</junit.version>
<main.class>io.floci.cli.FlociCli</main.class>
<floci.test.groups></floci.test.groups>
<floci.test.excludedGroups>integration</floci.test.excludedGroups>
</properties>
<dependencies>
@@ -96,6 +98,12 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.5</version>
<configuration>
<!-- Tests tagged "integration" need Docker and the emulator images; they run
only with -Pintegration. -->
<groups>${floci.test.groups}</groups>
<excludedGroups>${floci.test.excludedGroups}</excludedGroups>
</configuration>
</plugin>
<!-- Fat JAR — JVM fallback when native binary is unavailable -->
@@ -126,6 +134,13 @@
</build>
<profiles>
<profile>
<id>integration</id>
<properties>
<floci.test.groups>integration</floci.test.groups>
<floci.test.excludedGroups>none</floci.test.excludedGroups>
</properties>
</profile>
<profile>
<id>native</id>
<activation>