mirror of
https://github.com/apple/container.git
synced 2026-09-10 09:45:39 +00:00
Remove image push tests (#55)
This removes two image push tests. We cannot have the CI push to our ghcr registry since external users do not have write access for pushing the image. We will explore a better solution. Signed-off-by: Kathryn Baldauf <k_baldauf@apple.com>
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user