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
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public async Task Does_CreateAioExchangeSets_Executes_Successfully()
.MustHaveHappenedOnceExactly();

A.CallTo(() => _fakefileSystemHelper.CreateZipFile(A<string>.Ignored, A<string>.Ignored, A<bool>.Ignored))
.MustHaveHappenedOnceExactly();
.MustHaveHappened(2, Times.Exactly);

A.CallTo(() => _fakeFssService.WriteBlockFile(A<string>.Ignored, A<string>.Ignored, A<IEnumerable<string>>.Ignored, A<string>.Ignored))
.MustHaveHappenedOnceOrMore();
Expand Down Expand Up @@ -219,13 +219,7 @@ public async Task Does_CreateAioExchangeSets_Executes_Successfully()
call.Method.Name == "Log"
&& call.GetArgument<LogLevel>(0) == LogLevel.Information
&& call.GetArgument<IEnumerable<KeyValuePair<string, object>>>(2).ToDictionary(c => c.Key, c => c.Value)["{OriginalFormat}"].ToString() == "Creating zip file of directory {fileName} started at {DateTime} | _X-Correlation-ID:{CorrelationId}"
).MustHaveHappenedOnceExactly();

A.CallTo(_fakeLogger).Where(call =>
call.Method.Name == "Log"
&& call.GetArgument<LogLevel>(0) == LogLevel.Information
&& call.GetArgument<IEnumerable<KeyValuePair<string, object>>>(2).ToDictionary(c => c.Key, c => c.Value)["{OriginalFormat}"].ToString() == "Creating zip file of directory {fileName} completed at {DateTime} | _X-Correlation-ID:{CorrelationId}"
).MustHaveHappenedOnceExactly();
).MustHaveHappened(2, Times.Exactly);

#endregion Log checks
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ private async Task CreateUpdateAIOExchangeSet(List<ProductVersionEntities> produ
ExtractExchangeSetZip(essFiles, essFileDownloadPath);
UpdateSerialAioFile(essFiles, essFileDownloadPath, "UPDATE", weekNumber);
var latestProductVersions = GetTheLatestUpdateNumber(essFileDownloadPath, aioCellNames, weekNumber);
CreateExchangeSetZip(essFiles, essFileDownloadPath);
isUpdateZipBatchCreated = await CreatePosBatch(essFileDownloadPath, UPDATEZIPEXCHANGESETFILEEXTENSION, Batch.AioUpdateZipBatch, weekNumber);

if (isUpdateZipBatchCreated)
Expand Down