ATS-252 : Use docker-maven-plugin for the integration tests

This commit is contained in:
Cezar.Leahu
2019-06-05 20:31:54 +03:00
committed by CezarLeahu
parent 8419cc4b6d
commit 69a836fc89
12 changed files with 181 additions and 26 deletions

View File

@@ -56,7 +56,6 @@
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>${dependency.spring-boot.version}</version>
<executions>
<execution>
<goals>
@@ -69,6 +68,14 @@
<groupId>org.codehaus.mojo</groupId>
<artifactId>license-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
</plugin>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>fabric8-maven-plugin</artifactId>
@@ -91,6 +98,19 @@
<profiles>
<profile>
<id>docker-it-setup</id>
<!-- raises an ActiveMq container for the Integration Tests -->
<build>
<plugins>
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>local</id>
<build>

View File

@@ -42,7 +42,7 @@ import org.springframework.test.context.junit4.SpringRunner;
*/
@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class ImageMagickQueueTransformServiceTest extends AbstractQueueTransformServiceIT
public class ImageMagickQueueTransformServiceIT extends AbstractQueueTransformServiceIT
{
@Override
protected TransformRequest buildRequest()