feat(applications): preserve submitted packages

This commit is contained in:
cesnimda
2026-08-31 16:54:41 +02:00
parent 47e8e3e50e
commit 5337ba3a5e
22 changed files with 903 additions and 11 deletions
@@ -275,10 +275,12 @@ public sealed class AttachmentConsistencyTests
public bool FailPromote { get; init; }
public bool FailDeletePurge { get; init; }
public string CreateFinalPath(int jobId, string storedFileName) => inner.CreateFinalPath(jobId, storedFileName);
public string CreatePackagePath(int jobId, int packageVersion, string storedFileName) => inner.CreatePackagePath(jobId, packageVersion, storedFileName);
public string StagePath(string finalPath) => inner.StagePath(finalPath);
public string DeletePath(string finalPath) => inner.DeletePath(finalPath);
public bool IsManagedPath(string path) => inner.IsManagedPath(path);
public Task StageAsync(IFormFile file, string stagePath, CancellationToken cancellationToken) => inner.StageAsync(file, stagePath, cancellationToken);
public Task<StoredSnapshotFile> SnapshotAsync(string sourcePath, string destinationPath, CancellationToken cancellationToken) => inner.SnapshotAsync(sourcePath, destinationPath, cancellationToken);
public void Promote(string stagePath, string finalPath)
{
if (FailPromote) throw new IOException("Synthetic promotion failure.");