mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 20:38:08 +08:00
test(sync): consolidate all sync tests (#1332)
Signed-off-by: Petu Eusebiu <peusebiu@cisco.com>
This commit is contained in:
@@ -682,6 +682,9 @@ func syncImageWithRefs(ctx context.Context, localRepo, upstreamRepo, reference s
|
||||
if mediaType == ispec.MediaTypeArtifactManifest {
|
||||
err = sig.syncOCIArtifact(localRepo, upstreamRepo, reference, manifestBuf) //nolint
|
||||
if err != nil {
|
||||
log.Error().Err(err).Msgf("couldn't sync oci artifact with artifact mediaType: %s",
|
||||
upstreamImageRef.DockerReference())
|
||||
|
||||
return skipped, err
|
||||
}
|
||||
}
|
||||
@@ -786,5 +789,7 @@ func syncImageWithRefs(ctx context.Context, localRepo, upstreamRepo, reference s
|
||||
return skipped, err
|
||||
}
|
||||
|
||||
log.Info().Msgf("successfully synced image %s", upstreamImageRef.DockerReference())
|
||||
|
||||
return skipped, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user