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

loadLoadsImage() — spring-boot Function Reference

Architecture documentation for the loadLoadsImage() function in DockerApiTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  fdfb529d_e8a3_535f_4951_99d6de7ba6a0["loadLoadsImage()"]
  ffedf588_7c32_be87_49b5_6f0bec311aa1["http()"]
  fdfb529d_e8a3_535f_4951_99d6de7ba6a0 -->|calls| ffedf588_7c32_be87_49b5_6f0bec311aa1
  88e4c755_21cd_03d2_7b78_c0a678363843["responseOf()"]
  fdfb529d_e8a3_535f_4951_99d6de7ba6a0 -->|calls| 88e4c755_21cd_03d2_7b78_c0a678363843
  style fdfb529d_e8a3_535f_4951_99d6de7ba6a0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

buildpack/spring-boot-buildpack-platform/src/test/java/org/springframework/boot/buildpack/platform/docker/DockerApiTests.java lines 390–405

		@Test
		void loadLoadsImage() throws Exception {
			Image image = Image.of(getClass().getResourceAsStream("type/image.json"));
			ImageArchive archive = ImageArchive.from(image);
			URI loadUri = new URI(IMAGES_URL + "/load");
			given(http().post(eq(loadUri), eq("application/x-tar"), any())).willReturn(responseOf("load-stream.json"));
			this.api.load(archive, this.loadListener);
			InOrder ordered = inOrder(this.loadListener);
			ordered.verify(this.loadListener).onStart();
			ordered.verify(this.loadListener).onUpdate(any());
			ordered.verify(this.loadListener).onFinish();
			then(http()).should().post(any(), any(), this.writer.capture());
			ByteArrayOutputStream out = new ByteArrayOutputStream();
			this.writer.getValue().accept(out);
			assertThat(out.toByteArray()).hasSizeGreaterThan(21000);
		}

Subdomains

Frequently Asked Questions

What does loadLoadsImage() do?
loadLoadsImage() is a function in the spring-boot codebase.
What does loadLoadsImage() call?
loadLoadsImage() calls 2 function(s): http, responseOf.

Analyze Your Own Codebase

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

Try Supermodel Free