From 1ba5871ad2013bd6e648ad6f5478fa7a471cd5a8 Mon Sep 17 00:00:00 2001 From: Kathryn Baldauf Date: Mon, 9 Jun 2025 16:29:32 -0700 Subject: [PATCH] Remove image push tests Signed-off-by: Kathryn Baldauf --- Tests/ContainerizationOCITests/RegistryClientTests.swift | 2 +- .../ImageTests/ImageStoreTests.swift | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Tests/ContainerizationOCITests/RegistryClientTests.swift b/Tests/ContainerizationOCITests/RegistryClientTests.swift index 32d316a6..cf2ea0e6 100644 --- a/Tests/ContainerizationOCITests/RegistryClientTests.swift +++ b/Tests/ContainerizationOCITests/RegistryClientTests.swift @@ -166,7 +166,7 @@ struct OCIClientTests: ~Copyable { #expect(done) } - @Test(.enabled(if: hasRegistryCredentials)) + @Test(.disabled("External users cannot push images, disable while we find a better solution")) func pushIndex() async throws { let client = RegistryClient(host: "ghcr.io", authentication: Self.authentication) let indexDescriptor = try await client.resolve(name: "apple/containerization/emptyimage", tag: "0.0.1") diff --git a/Tests/ContainerizationTests/ImageTests/ImageStoreTests.swift b/Tests/ContainerizationTests/ImageTests/ImageStoreTests.swift index 756cd9ea..b4ecf775 100644 --- a/Tests/ContainerizationTests/ImageTests/ImageStoreTests.swift +++ b/Tests/ContainerizationTests/ImageTests/ImageStoreTests.swift @@ -72,6 +72,14 @@ public class ImageStoreTests: ContainsAuth { let tempFile = self.dir.appending(path: "export.tar") try await self.store.save(references: [imageReference, expectedLoadedImage], out: tempFile) + } + + @Test(.disabled("External users cannot push images, disable while we find a better solution")) + func testImageStorePush() async throws { + guard let authentication = Self.authentication else { + return + } + let imageReference = "ghcr.io/apple/containerization/dockermanifestimage:0.0.2" let remoteImageName = "ghcr.io/apple/test-images/image-push" let epoch = Int(Date().timeIntervalSince1970.description)