mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
Add support for creating a container from a TestImage value
This commit improves TestImage so that an explicit image can trigger the creation of the container, with optional additional setup. This removes the need of creating additional container types for images that have multiple flavors, and to please the static method that can only create a container based on a single match. Closes gh-51082
This commit is contained in:
+1
-1
@@ -52,7 +52,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
class BootBuildImageRegistryIntegrationTests {
|
||||
|
||||
@Container
|
||||
static final RegistryContainer registry = TestImage.container(RegistryContainer.class);
|
||||
static final RegistryContainer registry = TestImage.forContainer(RegistryContainer.class);
|
||||
|
||||
String registryAddress;
|
||||
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@ import static org.assertj.core.api.Assertions.assertThat;
|
||||
class BuildImageRegistryIntegrationTests extends AbstractArchiveIntegrationTests {
|
||||
|
||||
@Container
|
||||
static final RegistryContainer registry = TestImage.container(RegistryContainer.class);
|
||||
static final RegistryContainer registry = TestImage.forContainer(RegistryContainer.class);
|
||||
|
||||
DockerClient dockerClient;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user