36 lines
1.1 KiB
Plaintext
36 lines
1.1 KiB
Plaintext
Writing a new integration test should be done with minor things in mind, so that
|
|
tests are picked up by our CI/CD pipeline and work as expected. In particular when you
|
|
define the plugin that builds the image (integrations tests have a docker image build),
|
|
you must name the image with the same name as the module. For example:
|
|
|
|
|
|
<plugin>
|
|
<groupId>org.springframework.boot</groupId>
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
<configuration>
|
|
<imageName>docker.io/springcloud/${project.artifactId}:${project.version}</imageName>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>build-image</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>build-image-no-fork</goal>
|
|
</goals>
|
|
</execution>
|
|
<execution>
|
|
<id>repackage</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>repackage</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
Notice this line:
|
|
|
|
<imageName>docker.io/springcloud/${project.artifactId}:${project.version}</imageName>
|
|
|
|
You must follow the same convention.
|