From c604f89164cea79469c73f21fdf775c1a5a4ea28 Mon Sep 17 00:00:00 2001 From: Andre Kurait Date: Sun, 1 Nov 2026 15:33:33 -0600 Subject: [PATCH] test(docker): restore platform fixture image tag (#7239) Restore the pre-existing foreign-platform fixture image tag or its original absence using the accepted PreservedImageTag helper. Preserve existing container architecture assertions and cleanup. Signed-off-by: Andre Kurait --- .../docker/ContainerPlatformDockerIntegrationTest.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/test/java/io/github/hectorvent/floci/core/common/docker/ContainerPlatformDockerIntegrationTest.java b/src/test/java/io/github/hectorvent/floci/core/common/docker/ContainerPlatformDockerIntegrationTest.java index fb8338191f..cef10647e7 100644 --- a/src/test/java/io/github/hectorvent/floci/core/common/docker/ContainerPlatformDockerIntegrationTest.java +++ b/src/test/java/io/github/hectorvent/floci/core/common/docker/ContainerPlatformDockerIntegrationTest.java @@ -53,6 +53,14 @@ class ContainerPlatformDockerIntegrationTest { .withCmd(List.of("uname", "-m")) .build(); + try (PreservedImageTag ignored = new PreservedImageTag(dockerClient, + IMAGE.substring(0, IMAGE.lastIndexOf(':')), IMAGE.substring(IMAGE.lastIndexOf(':') + 1))) { + createAndVerify(spec, platform, armHost, hostArchitecture, requestedArchitecture); + } + } + + private void createAndVerify(ContainerSpec spec, String platform, boolean armHost, String hostArchitecture, + String requestedArchitecture) { String containerId = null; try { containerId = lifecycleManager.create(spec, platform);