mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-22 21:50:47 -05:00
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:
1 parent
a813a23785
commit
030d468fd3
4 files changed
+193
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user