whenBuildImageIsInvokedWithPublish() — spring-boot Function Reference
Architecture documentation for the whenBuildImageIsInvokedWithPublish() function in BuildImageRegistryIntegrationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD d2a21545_70d3_0273_09ac_245a3da45a20["whenBuildImageIsInvokedWithPublish()"] 41f5c9ca_7a61_90cb_4750_c29c1a092e1c["DockerApi()"] d2a21545_70d3_0273_09ac_245a3da45a20 -->|calls| 41f5c9ca_7a61_90cb_4750_c29c1a092e1c 686f702f_99b2_00cb_e536_fc675d8e38f4["pull()"] d2a21545_70d3_0273_09ac_245a3da45a20 -->|calls| 686f702f_99b2_00cb_e536_fc675d8e38f4 56c6a94a_906f_bea5_18c0_207cf050ae68["of()"] d2a21545_70d3_0273_09ac_245a3da45a20 -->|calls| 56c6a94a_906f_bea5_18c0_207cf050ae68 6973e1db_a9cb_9d4d_d9b0_e1dd043abfb1["image()"] d2a21545_70d3_0273_09ac_245a3da45a20 -->|calls| 6973e1db_a9cb_9d4d_d9b0_e1dd043abfb1 e06ce851_18c5_fa12_ce9e_f2cd6d064b8d["remove()"] d2a21545_70d3_0273_09ac_245a3da45a20 -->|calls| e06ce851_18c5_fa12_ce9e_f2cd6d064b8d style d2a21545_70d3_0273_09ac_245a3da45a20 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
build-plugin/spring-boot-maven-plugin/src/dockerTest/java/org/springframework/boot/maven/BuildImageRegistryIntegrationTests.java lines 60–78
@TestTemplate
void whenBuildImageIsInvokedWithPublish(MavenBuild mavenBuild) {
String repoName = "test-image";
String imageName = this.registryAddress + "/" + repoName;
mavenBuild.project("dockerTest", "build-image-publish")
.goals("package")
.systemProperty("spring-boot.build-image.imageName", imageName)
.execute((project) -> {
assertThat(buildLog(project)).contains("Building image")
.contains("Successfully built image")
.contains("Pushing image '" + imageName + ":latest" + "'")
.contains("Pushed image '" + imageName + ":latest" + "'");
ImageReference imageReference = ImageReference.of(imageName);
DockerApi.ImageApi imageApi = new DockerApi().image();
Image pulledImage = imageApi.pull(imageReference, null, UpdateListener.none());
assertThat(pulledImage).isNotNull();
imageApi.remove(imageReference, false);
});
}
Domain
Subdomains
Source
Frequently Asked Questions
What does whenBuildImageIsInvokedWithPublish() do?
whenBuildImageIsInvokedWithPublish() is a function in the spring-boot codebase.
What does whenBuildImageIsInvokedWithPublish() call?
whenBuildImageIsInvokedWithPublish() calls 5 function(s): DockerApi, image, of, pull, remove.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free