Skip to content

Commit

Permalink
[FAPI] add README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
anjuchamantha committed Jan 2, 2024
1 parent c31a3f8 commit 349dee6
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/fapi-oidc-conformance-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This workflow will test IS for OIDC FAPI conformance

name: FAPI-OIDC-Conformance-Test
name: FAPI OIDC Conformance Test

on:
schedule:
Expand Down Expand Up @@ -240,6 +240,10 @@ jobs:
else
RESOURCE=${{github.event.inputs.tag}}
fi
RECEIVER_LIST=${{secrets.FAPI_RECEIVER_LIST}}
if [[ -z "${RECEIVER_LIST}" ]]; then
RECEIVER_LIST=${{secrets.RECEIVER_LIST}}
fi
python3 ./product-is/oidc-conformance-tests/send_email.py $CONFORMANCE_SUITE_URL $GITHUB_RUN_NUMBER ${{job.status}} ${{github.repository}} ${{github.run_id}} ${{secrets.SENDER_EMAIL}} ${{secrets.PASSWORD}} ${{secrets.FAPI_RECEIVER_LIST}} $RESOURCE
elif [ $SEND_EMAIL == "NO" ]; then
echo "========================================"
Expand Down
23 changes: 23 additions & 0 deletions oidc-fapi-conformance-tests/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
This folder contains the configuration files and scripts that can be used to automate OIDC FAPI conformance testing. These tests can be run using GitHub actions or locally.

## Testing using GitHub actions

OIDC FAPI conformance test workflow can be used to for this purpose.
1. Go to Actions tab in your repository
2. Click on FAPI OIDC Conformance Test workflow
3. Click on Run workflow
4. You need to provide the product-is release tag version you want to test (by default, it builds the latest IS by source)
5. Also by default FAPI conformance suite is built from the latest released branch in https://gitlab.com/openid/conformance-suite.git. You can run against a specific conformance suite version also.
6. Set 'Send test results to email' to 'yes' if you want to send test summary to a list of pre-configured email addresses. (default is 'no')
7. Click on Run workflow
8. After tests are completed you can view test results on the test summary page
9. Two types of artifacts are saved after the test execution is completed
- test-logs - a log file is generated for each test plan. This log contains a summary of test cases with failures and warnings
- test-results - a zip file is generated for each test plan. You can use a web browser to view a detailed report of the test plan by extracting this zip file

An email containing the same test summary will also be sent to a pre-configured list of email addresses. The sender email, password and the receiver emil list are the same as for OIDC action build. If you need to have a seperate receiver email list for FAPI Conformance action,
* Save the list of receiver email as 'FAPI_RECEIVER_LIST' seperated by comma.

Default configuration is to use Gmail SMTP server. You can change that by modifying `SMTP_SERVER` and `SMTP_SERVER_PORT` in `constants_fapi.py`

This workflow is scheduled to run daily at 08:30 UTC (2:00 AM SL time) and will also automatically trigger after a release or a pre-release.
5 changes: 5 additions & 0 deletions oidc-fapi-conformance-tests/constants_fapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,3 +156,8 @@
"jwks_uri": JWKS_2,
"require_pushed_authorization_requests" : "true",
}


SMTP_SERVER = "smtp.gmail.com"

SMTP_SERVER_PORT = 465

0 comments on commit 349dee6

Please sign in to comment.