You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: DTOSS-10479 add nems poison container and logic (#1440)
* feat: added infrastructure for nems-poison container in blob storage
* feat: if Nems PDS Update processing fails, copy file to nems-poison container
* fix: update ServiceBusConnectionString to ServiceBusConnectionString_client_internal in PdsProcessorTests
* feat: add support for handling failed NEMS updates by moving files to a poison container
* fix: update ProcessNemsUpdateTests to ensure proper logging for poison file operations
* test: enhance ProcessNemsUpdateTests to verify poison file handling for 404 responses
* fix: removed blobstream logic from ProcessNemsUpdate as no longer needed
* fix: streamline CopyToPoisonContainer method by using config for storage connection string
* feat: changing config name from fileExceptions to NemsPoisonContainer - to separate from caas function fully
* refactor: remove NemsMeshPoisonContainer from config and related tests in NemsMeshRetrieval function
* fix: remove unnecessary whitespace in NemsMeshRetrievalTests for cleaner code
* fix: remove unnecessary whitespace in NemsMeshRetrievalTests for cleaner code
* feat: add timestamp option to CopyFileToPoisonAsync overload for improved file management
* feat: add unit tests for BlobStorageHelper including timestamp generation and file copying functionality
* feat: add unit tests for UploadFileToBlobStorage and GetFileFromBlobStorage methods in BlobStorageHelper to improve code coverage
* feat: add BlobStorageHelperTests project to solution for code coverage reporting
* fix: update BlobStorageHelperTests project references and package versions
* fix: avoid using throws in logic - moving files to poison container is now explicit
* refactor: simplify CopyFileToPoisonAsync by delegating to overloaded method
* fix: correcting unit test assert post changes
* fix: corrected assert for error log in Run_FailsToRetrievePdsRecord_LogsError unit test
_logger.LogError("There was a problem validating the NHS number from blob store in the ProcessNemsUpdate function for file {FileName}. Moving to poison container.",name);
Copy file name to clipboardExpand all lines: application/CohortManager/src/Functions/NemsSubscriptionService/ProcessNemsUpdate/ProcessNemsUpdateConfig.cs
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -17,4 +17,7 @@ public class ProcessNemsUpdateConfig
_logger.LogError(ex,"There has been a problem while copying the file: {Message}",ex.Message);
39
-
throw;
57
+
thrownewInvalidOperationException($"Failed to copy file '{fileName}' from container '{containerName}' to poison container as '{destinationFileName}'.",ex);
0 commit comments