-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
71 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,49 +75,6 @@ jobs: | |
- name: Run tests with redis | ||
run: lein test :redis | ||
|
||
# FIXME: smoke test is currently too unstable | ||
# | ||
# smoketest: | ||
# runs-on: ubuntu-latest | ||
# | ||
# steps: | ||
# - uses: actions/checkout@v4 | ||
# - uses: actions/cache@v4 | ||
# with: { path: "~/.m2", key: "${{ runner.os }}-m2" } | ||
# | ||
# - name: Start Redis | ||
# uses: supercharge/[email protected] | ||
# with: | ||
# redis-version: 6.2 | ||
# | ||
# - name: Smoketest | ||
# env: | ||
# CLIENTS_INFO_PATH: ${{ secrets.CLIENTS_INFO_PATH }} | ||
# CLIENT_ID: ${{ secrets.CLIENT_ID }} | ||
# CLIENT_SECRET: ${{ secrets.CLIENT_SECRET }} | ||
# GATEWAY_PASSWORD: ${{ secrets.GATEWAY_PASSWORD }} | ||
# GATEWAY_ROOT_URL: ${{ secrets.GATEWAY_ROOT_URL }} | ||
# GATEWAY_USER: ${{ secrets.GATEWAY_USER }} | ||
# KEYSTORE_ALIAS: ${{ secrets.KEYSTORE_ALIAS }} | ||
# KEYSTORE_JKS_B64: ${{ secrets.KEYSTORE_JKS_B64 }} | ||
# KEYSTORE_PASSWORD: ${{ secrets.KEYSTORE_PASSWORD }} | ||
# RIO_RECIPIENT_OIN: ${{ secrets.RIO_RECIPIENT_OIN }} | ||
# RIO_ROOT_URL: ${{ secrets.RIO_ROOT_URL }} | ||
# RIO_SENDER_OIN: ${{ secrets.RIO_SENDER_OIN }} | ||
# SURF_CONEXT_CLIENT_ID: ${{ secrets.SURF_CONEXT_CLIENT_ID }} | ||
# SURF_CONEXT_CLIENT_SECRET: ${{ secrets.SURF_CONEXT_CLIENT_SECRET }} | ||
# SURF_CONEXT_INTROSPECTION_ENDPOINT: ${{ secrets.SURF_CONEXT_INTROSPECTION_ENDPOINT }} | ||
# TOKEN_ENDPOINT: ${{ secrets.TOKEN_ENDPOINT }} | ||
# TRUSTSTORE_JKS_B64: ${{ secrets.TRUSTSTORE_JKS_B64 }} | ||
# TRUSTSTORE_PASSWORD: ${{ secrets.TRUSTSTORE_PASSWORD }} | ||
# | ||
# TRUSTSTORE: truststore.jks | ||
# KEYSTORE: keystore.jks | ||
# run: | | ||
# echo "$KEYSTORE_JKS_B64" | base64 -d > keystore.jks | ||
# echo "$TRUSTSTORE_JKS_B64" | base64 -d > truststore.jks | ||
# ./smoketest.sh | ||
|
||
specs: | ||
runs-on: ubuntu-latest | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
## End to End tests | ||
|
||
Om de end-to-end tests te kunnen draaien moeten de volgende zaken geregeld zijn: | ||
|
||
- RIO toegang (zie [test/test-clients.json](test/test-clients.json)) | ||
|
||
- `CLIENTS_INFO_PATH` (= `test/test-clients.json`) | ||
|
||
- `KEYSTORE` (met daarin rio_test_surfeduhub_surf_nl certificaat | ||
met sleutel, zie ook de [README](../README.md) voor instructies voor het genereren) | ||
- `KEYSTORE_ALIAS` (= `test-surf`) | ||
- `KEYSTORE_PASSWORD` | ||
|
||
- `TRUSTSTORE` (= `truststore.jks`, bestand staat al in deze repository) | ||
- `TRUSTSTORE_PASSWORD` (= `xxxxxx`) | ||
|
||
- `RIO_RECIPIENT_OIN` | ||
- `RIO_SENDER_OIN` | ||
- `RIO_READ_URL` | ||
- `RIO_UPDATE_URL` | ||
|
||
- SURFconext toegang voor client ID | ||
|
||
- `SURF_CONEXT_CLIENT_ID` | ||
- `SURF_CONEXT_CLIENT_SECRET` | ||
- `SURF_CONEXT_INTROSPECTION_ENDPOINT` | ||
|
||
- `CLIENT_ID` (= `rio-mapper-dev.jomco.nl`, SURFconext account met toegang to `SURF_CONEXT_CLIENT_ID`) | ||
- `CLIENT_SECRET` | ||
- `TOKEN_ENDPOINT` (URL naar SURFconext token endpoint) | ||
|
||
- toegang tot SURF SWIFT Object Store voor opzetten van OOAPI test data | ||
|
||
- `OS_USERNAME` | ||
- `OS_PASSWORD` | ||
- `OS_AUTH_URL` | ||
- `OS_PROJECT_NAME` | ||
- `OS_CONTAINER_NAME` | ||
|
||
- een applicatie account op de test gateway welke toegang geeft tot bovenstaande Object Store | ||
|
||
- `GATEWAY_ROOT_URL` | ||
- `GATEWAY_USER` | ||
- `GATEWAY_PASSWORD` | ||
|
||
- er draait een lokaal toegankelijke *redis* server | ||
|
||
Als het bovenstaande geregeld is kunnen de tests gedraaid worden met: | ||
|
||
```sh | ||
lein test :e2e | ||
``` | ||
|
||
Tot slot is het verstandig om environment variabel | ||
`STORE_HTTP_REQUESTS` op `true` te zetten omdat dat meer informatie | ||
geeft over de gemaakte API calls door de mapper zelf. |