getAuthHeaderWhenUsingHelperFromCredHelpersUsesImageReferenceServerUrlAsFallback() — spring-boot Function Reference
Architecture documentation for the getAuthHeaderWhenUsingHelperFromCredHelpersUsesImageReferenceServerUrlAsFallback() function in DockerRegistryConfigAuthenticationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 0ab1c254_b6ef_ecc0_141e_26a4a05cc58e["getAuthHeaderWhenUsingHelperFromCredHelpersUsesImageReferenceServerUrlAsFallback()"] c3e7f0d3_50c7_ae54_85ad_da5e677154d9["toString()"] 0ab1c254_b6ef_ecc0_141e_26a4a05cc58e -->|calls| c3e7f0d3_50c7_ae54_85ad_da5e677154d9 fbe0e131_bc90_ac8e_a14b_d98f5e367279["mockHelper()"] 0ab1c254_b6ef_ecc0_141e_26a4a05cc58e -->|calls| fbe0e131_bc90_ac8e_a14b_d98f5e367279 56c6a94a_906f_bea5_18c0_207cf050ae68["of()"] 0ab1c254_b6ef_ecc0_141e_26a4a05cc58e -->|calls| 56c6a94a_906f_bea5_18c0_207cf050ae68 89d1cf4e_05c3_cecb_b45b_6bb19b354798["getAuthHeader()"] 0ab1c254_b6ef_ecc0_141e_26a4a05cc58e -->|calls| 89d1cf4e_05c3_cecb_b45b_6bb19b354798 8ca19ab7_f79e_e2f8_fdda_f3b17ee41a3e["decode()"] 0ab1c254_b6ef_ecc0_141e_26a4a05cc58e -->|calls| 8ca19ab7_f79e_e2f8_fdda_f3b17ee41a3e style 0ab1c254_b6ef_ecc0_141e_26a4a05cc58e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/configuration/DockerRegistryConfigAuthenticationTests.java lines 365–394
@WithResource(name = "config.json", content = """
{
"auths": {
"https://my-registry.example.com": {
"email": "test@example.com"
}
},
"credsStore": "desktop"
}
""")
@WithResource(name = "credentials.json", content = """
{
"Username": "username",
"Secret": "secret"
}
""")
@Test
void getAuthHeaderWhenUsingHelperFromCredHelpersUsesImageReferenceServerUrlAsFallback(@ResourcesRoot Path directory)
throws Exception {
this.environment.put("DOCKER_CONFIG", directory.toString());
mockHelper("desktop", "my-registry.example.com", "credentials.json");
ImageReference imageReference = ImageReference.of("my-registry.example.com/ubuntu:latest");
String authHeader = getAuthHeader(imageReference);
assertThat(authHeader).isNotNull();
assertThat(decode(authHeader)).hasSize(4)
.containsEntry("serveraddress", "my-registry.example.com")
.containsEntry("username", "username")
.containsEntry("password", "secret")
.containsEntry("email", "test@example.com");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does getAuthHeaderWhenUsingHelperFromCredHelpersUsesImageReferenceServerUrlAsFallback() do?
getAuthHeaderWhenUsingHelperFromCredHelpersUsesImageReferenceServerUrlAsFallback() is a function in the spring-boot codebase.
What does getAuthHeaderWhenUsingHelperFromCredHelpersUsesImageReferenceServerUrlAsFallback() call?
getAuthHeaderWhenUsingHelperFromCredHelpersUsesImageReferenceServerUrlAsFallback() calls 5 function(s): decode, getAuthHeader, mockHelper, of, toString.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free