Skip to content
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

Open
wants to merge 78 commits into
base: main
Choose a base branch
from
Open

Add Golden Copy Tests #1674

wants to merge 78 commits into from

Conversation

pluckyswan
Copy link
Contributor

@pluckyswan pluckyswan commented Dec 23, 2024

Description

Added golden copy test to RS-E2E tests. It currently is located in the same test class as the automated staging integration test. One submit workflow is responsible for sending all files including assertion and golden copy input. Then, it will fetch the output from Azure and compare them to the expected files based on the run workflow chosen.

TLDR - 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

  • I have added tests to cover my changes
  • I have added logging where useful (with appropriate log level)
  • I have updated the documentation accordingly

Note: You may remove items that are not applicable

jherrflexion and others added 30 commits December 16, 2024 16:56
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: Sylvie <[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]>
jherrflexion and others added 10 commits December 27, 2024 11:05
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]>
Co-Authored-By: Sylvie <[email protected]>
Co-Authored-By: James Gilmore <[email protected]>
Co-Authored-By: Sylvie <[email protected]>
Co-Authored-By: James Gilmore <[email protected]>
name: Golden Copy Staging Test - Run integration tests

on:
pull_request:
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Once the PR is approved, I will remove pull_request. It is only included because a workflow has to be merged into main to be called/updated.

Copy link

sonarqubecloud bot commented Jan 8, 2025

@pluckyswan pluckyswan marked this pull request as ready for review January 8, 2025 22:40
@@ -51,10 +51,22 @@ public static FileFetcher getInstance() {

@Override
public List<HL7FileStream> fetchFiles() {
String rse2ELocalInputFilePath = System.getenv("RSE2E_LOCAL_INPUT_FILE_PATH");
Copy link
Contributor

@basiliskus basiliskus Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think the azure blob fetcher implementation should care about the file fetcher implementation details (like the value for RSE2E_LOCAL_INPUT_FILE_PATH). Also, figuring out if we're using the golden copy or RS integration test with the RSE2E_LOCAL_INPUT_FILE_PATH value won't work because we need to run both but have only one possible value for that envvar. Instead, you could pass a parameter to fetchFiles (for both local and azure implementation), which will determine if we're fetching files/blobs for the golden copy test or the RS integration test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants