-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Golden Copy Tests #1674
base: main
Are you sure you want to change the base?
Add Golden Copy Tests #1674
Conversation
Co-Authored-By: Sylvie <[email protected]> Co-Authored-By: Samuel Aquino <[email protected]>
Co-Authored-By: Samuel Aquino <[email protected]> Co-Authored-By: Bella L. Quintero <[email protected]>
Co-Authored-By: Samuel Aquino <[email protected]> Co-Authored-By: Bella L. Quintero <[email protected]>
Co-Authored-By: Samuel Aquino <[email protected]> Co-Authored-By: Bella L. Quintero <[email protected]>
Co-Authored-By: Samuel Aquino <[email protected]> Co-Authored-By: Bella L. Quintero <[email protected]>
Co-Authored-By: Samuel Aquino <[email protected]> Co-Authored-By: Bella L. Quintero <[email protected]>
Co-authored-by: saquino0827 <[email protected]>
Co-authored-by: saquino0827 <[email protected]>
Co-authored-by: saquino0827 <[email protected]>
Co-authored-by: saquino0827 <[email protected]>
Co-authored-by: saquino0827 <[email protected]>
Co-authored-by: saquino0827 <[email protected]>
Co-authored-by: saquino0827 <[email protected]>
Co-authored-by: saquino0827 <[email protected]>
Co-authored-by: saquino0827 <[email protected]> Co-authored-by: Sylvie <[email protected]> Co-authored-by: jcrichlake <[email protected]>
Co-authored-by: jcrichlake <[email protected]>
…structure Co-authored-by: jcrichlake <[email protected]>
Co-authored-by: jcrichlake <[email protected]>
Co-authored-by: jcrichlake <[email protected]>
Co-authored-by: jcrichlake <[email protected]> Co-authored-by: James Herr <[email protected]>
Co-authored-by: James Herr <[email protected]> Co-authored-by: jcrichlake <[email protected]>
Co-authored-by: James Herr <[email protected]>
Co-authored-by: James Herr <[email protected]>
Co-authored-by: James Herr <[email protected]>
Co-authored-by: James Herr <[email protected]>
Co-authored-by: James Herr <[email protected]>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
// when its pulled down and modify destinationName to be test folder specific | ||
// possibly use a different receiver and filter on that | ||
|
||
String testTypeAndSourceName = "Automated/" + sourceName; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider refactoring the blob naming and organizing logic into a separate method or class to improve modularity and testability. This change would help isolate the blob management logic, making the code cleaner and easier to maintain. [important]
for (filePair in matchedFiles) { | ||
def actualFile = filePair.getKey() | ||
def expectedFile = filePair.getValue() | ||
if (!actualFile.equals(expectedFile)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Implement additional logging for each file comparison in the 'Compare files' test to provide more detailed feedback on which files are being compared and the result of each comparison. This enhancement would be beneficial for debugging and understanding test failures. [medium]
if (files_path.contains("GoldenCopy")) { | ||
pathPrefix += datePrefix + "GoldenCopy/"; | ||
} | ||
|
||
ListBlobsOptions options = new ListBlobsOptions().setPrefix(pathPrefix); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add error handling for the Azure blob fetching process to manage exceptions and provide meaningful error messages if the fetching fails. This would improve the robustness of the file fetching mechanism. [important]
PR Code Suggestions ✨No code suggestions found for the PR. |
Co-authored-by: James Herr <[email protected]> Co-authored-by: basiliskus <[email protected]>
Co-authored-by: James Herr <[email protected]> Co-authored-by: basiliskus <[email protected]>
Co-authored-by: James Herr <[email protected]> Co-authored-by: basiliskus <[email protected]>
Co-authored-by: James Herr <[email protected]> Co-authored-by: basiliskus <[email protected]>
Co-authored-by: basiliskus <[email protected]>
Co-authored-by: basiliskus <[email protected]>
@Override | ||
public List<HL7FileStream> fetchFiles() { | ||
String files_path = System.getenv("LOCAL_FILE_PATH"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a reminder to add instructions to the readme on how to set up the LOCAL_FILE_PATH env var. You could also consider adding it to generate_env.sh
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't realize this changes are in AzureBlobFileFetcher. This class is meant only for blobs in Azure. To grab local files, the correct one is LocalFileFetcher
Co-Authored-By: Bella L. Quintero <[email protected]> Co-Authored-By: Jeremy Rosenfeld <[email protected]>
Co-Authored-By: Bella L. Quintero <[email protected]> Co-Authored-By: Jeremy Rosenfeld <[email protected]> Co-Authored-By: Basilio Bogado <[email protected]>
Co-Authored-By: Bella L. Quintero <[email protected]> Co-Authored-By: Jeremy Rosenfeld <[email protected]> Co-Authored-By: Basilio Bogado <[email protected]>
Co-Authored-By: Bella L. Quintero <[email protected]> Co-Authored-By: Jeremy Rosenfeld <[email protected]> Co-Authored-By: Basilio Bogado <[email protected]>
Co-Authored-By: Bella L. Quintero <[email protected]> Co-Authored-By: Luis Pabon <[email protected]> Co-Authored-By: Jeremy Rosenfeld <[email protected]> Co-Authored-By: Basilio Bogado <[email protected]>
Quality Gate passedIssues Measures |
Description
Added golden copy test to RS-E2E tests. The golden copy workflow will take the input files and submit them through the workflow. Then, it will fetch the output from Azure and compare them to the expected files. This utilizes the existing automated staging test submit workflow to send all files and adds a new run workflow specific to golden copy test.
Issue
#1600
Checklist
Note: You may remove items that are not applicable