asDockerConfigurationWithContextConfiguration() — spring-boot Function Reference
Architecture documentation for the asDockerConfigurationWithContextConfiguration() function in DockerTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD f3ad7ad5_7661_d66d_6d48_9c8a5c294139["asDockerConfigurationWithContextConfiguration()"] 9a08d1e5_3de7_caf2_d6f8_d31c58939529["createDockerConfiguration()"] f3ad7ad5_7661_d66d_6d48_9c8a5c294139 -->|calls| 9a08d1e5_3de7_caf2_d6f8_d31c58939529 c8116aea_c273_d1ee_399b_ec342e2087b5["decoded()"] f3ad7ad5_7661_d66d_6d48_9c8a5c294139 -->|calls| c8116aea_c273_d1ee_399b_ec342e2087b5 style f3ad7ad5_7661_d66d_6d48_9c8a5c294139 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
build-plugin/spring-boot-maven-plugin/src/test/java/org/springframework/boot/maven/DockerTests.java lines 90–113
@Test
void asDockerConfigurationWithContextConfiguration() {
Docker docker = new Docker();
docker.setContext("test-context");
BuilderDockerConfiguration dockerConfiguration = createDockerConfiguration(docker);
DockerConnectionConfiguration.Context context = (DockerConnectionConfiguration.Context) dockerConfiguration
.connection();
assertThat(context).isNotNull();
assertThat(context.context()).isEqualTo("test-context");
assertThat(dockerConfiguration.bindHostToBuilder()).isFalse();
DockerRegistryAuthentication builderRegistryAuthentication = createDockerConfiguration(docker)
.builderRegistryAuthentication();
assertThat(builderRegistryAuthentication).isNotNull();
assertThat(builderRegistryAuthentication.getAuthHeader()).isNull();
DockerRegistryAuthentication publishRegistryAuthentication = dockerConfiguration
.publishRegistryAuthentication();
assertThat(publishRegistryAuthentication).isNotNull();
String authHeader = publishRegistryAuthentication.getAuthHeader();
assertThat(authHeader).isNotNull();
assertThat(decoded(authHeader)).contains("\"username\" : \"\"")
.contains("\"password\" : \"\"")
.contains("\"email\" : \"\"")
.contains("\"serveraddress\" : \"\"");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does asDockerConfigurationWithContextConfiguration() do?
asDockerConfigurationWithContextConfiguration() is a function in the spring-boot codebase.
What does asDockerConfigurationWithContextConfiguration() call?
asDockerConfigurationWithContextConfiguration() calls 2 function(s): createDockerConfiguration, decoded.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free