Home / Function/ getAuthHeaderWhenEmptyConfigDirectoryReturnsFallback() — spring-boot Function Reference

getAuthHeaderWhenEmptyConfigDirectoryReturnsFallback() — spring-boot Function Reference

Architecture documentation for the getAuthHeaderWhenEmptyConfigDirectoryReturnsFallback() function in DockerRegistryConfigAuthenticationTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  b9beac05_68aa_f864_d621_fa329447a787["getAuthHeaderWhenEmptyConfigDirectoryReturnsFallback()"]
  c3e7f0d3_50c7_ae54_85ad_da5e677154d9["toString()"]
  b9beac05_68aa_f864_d621_fa329447a787 -->|calls| c3e7f0d3_50c7_ae54_85ad_da5e677154d9
  56c6a94a_906f_bea5_18c0_207cf050ae68["of()"]
  b9beac05_68aa_f864_d621_fa329447a787 -->|calls| 56c6a94a_906f_bea5_18c0_207cf050ae68
  89d1cf4e_05c3_cecb_b45b_6bb19b354798["getAuthHeader()"]
  b9beac05_68aa_f864_d621_fa329447a787 -->|calls| 89d1cf4e_05c3_cecb_b45b_6bb19b354798
  8ca19ab7_f79e_e2f8_fdda_f3b17ee41a3e["decode()"]
  b9beac05_68aa_f864_d621_fa329447a787 -->|calls| 8ca19ab7_f79e_e2f8_fdda_f3b17ee41a3e
  style b9beac05_68aa_f864_d621_fa329447a787 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 158–173

	@WithResource(name = "config.json", content = """
			{
			}
			""")
	@Test
	void getAuthHeaderWhenEmptyConfigDirectoryReturnsFallback(@ResourcesRoot Path directory) {
		this.environment.put("DOCKER_CONFIG", directory.toString());
		ImageReference imageReference = ImageReference.of("docker.io/ubuntu:latest");
		String authHeader = getAuthHeader(imageReference, DockerRegistryAuthentication.EMPTY_USER);
		assertThat(authHeader).isNotNull();
		assertThat(decode(authHeader)).hasSize(4)
			.containsEntry("serveraddress", "")
			.containsEntry("username", "")
			.containsEntry("password", "")
			.containsEntry("email", "");
	}

Subdomains

Frequently Asked Questions

What does getAuthHeaderWhenEmptyConfigDirectoryReturnsFallback() do?
getAuthHeaderWhenEmptyConfigDirectoryReturnsFallback() is a function in the spring-boot codebase.
What does getAuthHeaderWhenEmptyConfigDirectoryReturnsFallback() call?
getAuthHeaderWhenEmptyConfigDirectoryReturnsFallback() calls 4 function(s): decode, getAuthHeader, of, toString.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free