Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Tests/ContainerizationOCITests/RegistryClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
8 changes: 8 additions & 0 deletions Tests/ContainerizationTests/ImageTests/ImageStoreTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down