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:
org.springframework.boot
spring-boot-maven-plugin
docker.io/springcloud/${project.artifactId}:${project.version}
build-image
${skip.build.image}
package
build-image
repackage
package
repackage
Notice this line:
docker.io/springcloud/${project.artifactId}:${project.version}
You must follow the same convention.
One more important part in this configuration is : "${skip.build.image}".
We use this setting in the build pipeline where in some stages we skip the image build,
only to have it build in some latter ones.