exclude autobahn via surefire property
Signed-off-by: olivier lamy <oliver.lamy@gmail.com>
This commit is contained in:
parent
c46920dafd
commit
bf01cf280e
|
@ -60,6 +60,19 @@
|
|||
</dependencies>
|
||||
|
||||
<build>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<excludes>
|
||||
<exclude>**/AutobahnTests.java</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
|
@ -95,9 +108,9 @@
|
|||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<configuration>
|
||||
<systemPropertyVariables>
|
||||
<autobahn.tests>true</autobahn.tests>
|
||||
</systemPropertyVariables>
|
||||
<excludes>
|
||||
<exclude>none</exclude>
|
||||
</excludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
|
|
|
@ -88,9 +88,6 @@ public class AutobahnTests
|
|||
@Test
|
||||
public void testClient() throws Exception
|
||||
{
|
||||
if(!Boolean.getBoolean("autobahn.tests")){
|
||||
return;
|
||||
}
|
||||
try (GenericContainer<?> container = new GenericContainer<>(DockerImageName.parse("jettyproject/autobahn-testsuite:latest"))
|
||||
.withCommand("/bin/bash", "-c", "wstest -m fuzzingserver -s /config/fuzzingserver.json")
|
||||
.withExposedPorts(9001)
|
||||
|
@ -118,9 +115,6 @@ public class AutobahnTests
|
|||
@Test
|
||||
public void testServer() throws Exception
|
||||
{
|
||||
if(!Boolean.getBoolean("autobahn.tests")){
|
||||
return;
|
||||
}
|
||||
// We need to expose the host port of the server to the Autobahn Client in docker container.
|
||||
final int port = 9001;
|
||||
org.testcontainers.Testcontainers.exposeHostPorts(port);
|
||||
|
|
Loading…
Reference in New Issue