-
Notifications
You must be signed in to change notification settings - Fork 37
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
1634 E2E tests #2053
1634 E2E tests #2053
Conversation
a0dda34
to
0717eac
Compare
0717eac
to
16c3f2e
Compare
565c9e0
to
e5cd64a
Compare
0289925
to
0f43822
Compare
.github/workflows/a-wip-test-e2e.yml
Outdated
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.
This was used to test the intermittent execution of E2E tests, which is not an issue anymore (after we removed the release step).
@@ -88,7 +86,6 @@ jobs: | |||
working-directory: "./" | |||
env: | |||
TEST_API_KEY: ${{ secrets.TEST_API_KEY }} | |||
TEST_ACC_ID: ${{ secrets.TEST_ACC_ID }} |
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.
Removed as its not used anywhere
0f43822
to
c444a2f
Compare
73c9258
to
96102ff
Compare
7209e71
to
c5857ab
Compare
firstName: "Junhdjjdkksuyujebeb", | ||
lastName: "Xamuscaeyttyworo", | ||
dob: "1900-01-01", |
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.
Fixing to something that won't have a match
@@ -12,7 +12,7 @@ export const testApiKey = getEnvVarOrFail("TEST_API_KEY"); | |||
export const baseURL = getEnvVarOrFail("API_URL"); | |||
|
|||
export const api = Axios.create({ | |||
timeout: 10_000, | |||
timeout: 20_000, |
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.
Try to avoid the timeout from FHIR server to search by org name
dotenv.config({ path: path.resolve(...paths, ".env") }); | ||
dotenv.config({ path: path.resolve(...paths, ".env.test") }); |
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.
This prioritizes the .env local if available
@@ -22,6 +22,6 @@ export function makeDocumentQueryProgress( | |||
return { | |||
download: makeProgress(seed.download), | |||
convert: makeProgress(seed.convert), | |||
requestId: seed.requestId === null ? undefined : seed.requestId ?? faker.datatype.uuid(), | |||
requestId: seed.requestId === null ? undefined : seed.requestId ?? faker.string.uuid(), |
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.
Replace the deprecated version
c4636f9
to
734213c
Compare
07f78cc
to
ddcd5b2
Compare
patient: Patient, | ||
facilityId: string | ||
): Promise<CommonwellPatient | undefined> { | ||
const { debug } = Util.out(`CW get - M patientId ${patient.id}`); |
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.
Seems to be using the deprecated Util.Out
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 was following the other functions on the same file, but updated them all to use the active one. 👍
facilityId, | ||
debug, | ||
}); | ||
if (!cwEnabled) return undefined; |
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 know this function isnt being used yet but it would help to add a log here so we can better diagnose if we didnt get anyting when its in prod
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.
The other endpoints don't log directly, they all do through validateCWEnabled()
.
9463176
to
84f745b
Compare
- WIP simplified e2e test - add "Run E2E test" GH workflow to be run manually Ref. metriport/metriport-internal#1634
Ref. metriport/metriport-internal#1634 Signed-off-by: Rafael Leite <[email protected]>
Ref. metriport/metriport-internal#1634 Signed-off-by: Rafael Leite <[email protected]>
a76c377
to
2d16f1e
Compare
Ref: #000 - [email protected] - @metriport/[email protected] - @metriport/[email protected] - @metriport/[email protected] - @metriport/[email protected] - @metriport/[email protected] - @metriport/[email protected] - @metriport/[email protected] - @metriport/[email protected] - [email protected] - @metriport/[email protected] - @metriport/[email protected] - [email protected]
Ticket: https://github.com/metriport/metriport-internal/issues/1634
Dependencies
Description
V1 of E2E tests in
production
:Those tests are the first iteration of the E2E tests in production. For the complete list please refer to the ticket.
Testing
Release Plan
Release Python SDK