-
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
Changes from 66 commits
07b96d1
2d14e9a
f8afd54
dad2cd3
1d8877c
9b81688
d4867f7
87dbc14
5bef9f0
83edb87
084387d
1e49731
3de1187
ebe7a46
9605cc1
f63c56c
de61fb5
96cae6c
e17f1e9
0747ee8
bdbed53
71a243d
24e5ac3
401c50f
229af63
9485cda
3c850de
1f0dde2
d7623ae
92c039c
f29edc1
5b648b7
7b545da
ccca6ab
6873446
9fbe6fa
885cd21
bc83820
cf0489f
91371ae
000d590
06558f7
0fba3fb
a9cf564
7a13855
8ca3337
5086197
85b11b6
17a5382
77d9c71
b67cd88
7143562
c87d402
e6e7fbd
4977b2f
f5b1220
b0da8ac
870cfdb
4412f6e
59f0c1a
8e9b069
7ba9b0b
1232ae4
c4b79e9
2943f8f
2e34325
5124bdc
88a11fc
a9c0bc4
ef3d035
897e2fd
0847dc8
ef12692
c95c0ad
72dc7d6
cf22c63
09baadc
ed42620
5bbcb57
9a4eb00
7ae9e0c
e499659
19dc37b
3db4f37
6b6ba9c
6cbe53e
456d294
edca887
ad17fa0
7040fe1
10cfe66
c754061
5aee5e8
b4fb22d
36a56b1
b205243
e7b1b64
36d5d51
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,23 +6,10 @@ on: | |
workflow_dispatch: | ||
|
||
jobs: | ||
test_files: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run automated tests | ||
env: | ||
AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.AUTOMATED_TEST_AZURE_STORAGE_CONNECTION_STRING }} | ||
run: ./gradlew rs-e2e:clean rs-e2e:automatedTest | ||
|
||
- name: Send slack notification on test failure | ||
if: failure() | ||
uses: slackapi/[email protected] | ||
with: | ||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
webhook-type: incoming-webhook | ||
payload: | | ||
text: "Automated Staging RS Integration Test Failed!: https://github.com/CDCgov/trusted-intermediary/actions/runs/${{ github.run_id }}" | ||
call-staging-test-run: | ||
uses: ./.github/workflows/staging-test-run_reusable.yml | ||
with: | ||
FILE_PATH: '../examples/Test/Automated/Assertion/' | ||
NAME: 'Automated' | ||
TEST_TYPE: 'automatedTest' | ||
secrets: inherit # pragma: allowlist secret |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
name: Golden Copy Staging Test - Run integration tests | ||
|
||
on: | ||
pull_request: | ||
schedule: | ||
- cron: "10 7 * * 2-6" # Tuesday to Saturday at 2am EST (7:10am UTC) - two hours after `automated-staging-test-submit` runs | ||
workflow_dispatch: | ||
|
||
jobs: | ||
call-staging-test-run: | ||
uses: ./.github/workflows/staging-test-run_reusable.yml | ||
with: | ||
FILE_PATH: '../examples/Test/Automated/GoldenCopy/Expected/' | ||
NAME: 'Golden Copy' | ||
TEST_TYPE: 'goldenCopyTest' | ||
secrets: inherit # pragma: allowlist secret |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Staging Test - Run integration tests | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
TEST_TYPE: | ||
type: string | ||
description: The e2e test to run | ||
required: true | ||
default: 'automatedTest' | ||
NAME: | ||
type: string | ||
description: The name of test | ||
required: true | ||
default: 'Automated' | ||
FILE_PATH: | ||
type: string | ||
description: The path to local files | ||
required: true | ||
default: '../examples/Test/Automated/Assertion/' | ||
secrets: | ||
AUTOMATED_TEST_AZURE_STORAGE_CONNECTION_STRING: | ||
required: true | ||
SLACK_WEBHOOK_URL: | ||
required: true | ||
|
||
jobs: | ||
test_files: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out the repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Run automated tests | ||
env: | ||
AZURE_STORAGE_CONNECTION_STRING: ${{ secrets.AUTOMATED_TEST_AZURE_STORAGE_CONNECTION_STRING }} | ||
LOCAL_FILE_PATH: ${{ inputs.FILE_PATH }} | ||
pluckyswan marked this conversation as resolved.
Show resolved
Hide resolved
|
||
run: | | ||
./gradlew rs-e2e:clean rs-e2e:${{ inputs.TEST_TYPE }} | ||
|
||
- name: Send slack notification on test failure | ||
if: failure() | ||
uses: slackapi/[email protected] | ||
with: | ||
webhook: ${{ secrets.SLACK_WEBHOOK_URL }} | ||
webhook-type: incoming-webhook | ||
payload: | | ||
text: "${{ inputs.NAME }} Staging RS Integration Test Failed!: https://github.com/CDCgov/trusted-intermediary/actions/runs/${{ github.run_id }}" |
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
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.
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.