asDockerConfigurationWithUserAuth() — spring-boot Function Reference
Architecture documentation for the asDockerConfigurationWithUserAuth() function in DockerTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 299294e1_e5c8_3dc5_0f3e_7eee02825465["asDockerConfigurationWithUserAuth()"] 9a08d1e5_3de7_caf2_d6f8_d31c58939529["createDockerConfiguration()"] 299294e1_e5c8_3dc5_0f3e_7eee02825465 -->|calls| 9a08d1e5_3de7_caf2_d6f8_d31c58939529 c8116aea_c273_d1ee_399b_ec342e2087b5["decoded()"] 299294e1_e5c8_3dc5_0f3e_7eee02825465 -->|calls| c8116aea_c273_d1ee_399b_ec342e2087b5 style 299294e1_e5c8_3dc5_0f3e_7eee02825465 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 153–179
@Test
void asDockerConfigurationWithUserAuth() {
Docker docker = new Docker();
docker.setBuilderRegistry(
new Docker.DockerRegistry("user1", "secret1", "https://docker1.example.com", "docker1@example.com"));
docker.setPublishRegistry(
new Docker.DockerRegistry("user2", "secret2", "https://docker2.example.com", "docker2@example.com"));
BuilderDockerConfiguration dockerConfiguration = createDockerConfiguration(docker);
DockerRegistryAuthentication builderRegistryAuthentication = dockerConfiguration
.builderRegistryAuthentication();
assertThat(builderRegistryAuthentication).isNotNull();
String authHeader = builderRegistryAuthentication.getAuthHeader();
assertThat(authHeader).isNotNull();
assertThat(decoded(authHeader)).contains("\"username\" : \"user1\"")
.contains("\"password\" : \"secret1\"")
.contains("\"email\" : \"docker1@example.com\"")
.contains("\"serveraddress\" : \"https://docker1.example.com\"");
DockerRegistryAuthentication publishRegistryAuthentication = dockerConfiguration
.publishRegistryAuthentication();
assertThat(publishRegistryAuthentication).isNotNull();
authHeader = publishRegistryAuthentication.getAuthHeader();
assertThat(authHeader).isNotNull();
assertThat(decoded(authHeader)).contains("\"username\" : \"user2\"")
.contains("\"password\" : \"secret2\"")
.contains("\"email\" : \"docker2@example.com\"")
.contains("\"serveraddress\" : \"https://docker2.example.com\"");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does asDockerConfigurationWithUserAuth() do?
asDockerConfigurationWithUserAuth() is a function in the spring-boot codebase.
What does asDockerConfigurationWithUserAuth() call?
asDockerConfigurationWithUserAuth() 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