Skip to content

Commit d5bd102

Browse files
VIA-345 SB Fix for no-APIM situation.
1 parent 373f0e4 commit d5bd102

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

infrastructure/environments/test/fake-api/create_tokens.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ mkdir -p data/login/tokens
5050

5151
for nhs_num in "${NHS_NUMBERS[@]}"; do
5252
current_time=$(date +%s)
53-
expiration_time=$((current_time + 3600)) # Expires in 1 hour
53+
expiration_time=$((current_time + $EXPIRES_IN))
5454

5555
payload_json=$(jq -n \
5656
--arg iss "$ISSUER_URL" --arg sub "fake-login-sub" --arg aud "vita-app-sandpit" \

infrastructure/environments/test/fake-api/readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,14 @@ Tag, promote, and deploy to the test environment, as per the [usual process](htt
1515
```sh
1616
./create_tokens.sh "../../../../../vita-app-sandpit.pid" "http://localhost:9123" 86400
1717

18-
docker build --no-cache -t fake-api . # For local testing
18+
docker build --no-cache -t fake-api .
1919

2020
docker stop local-fake-api
2121

2222
docker run -d --rm -p 9123:9123 -e LOGIN_ROOT_URL="http://localhost:9123" -e ELID_DELAY_SECONDS=2 -e APIM_DELAY_SECONDS=10 --name local-fake-api fake-api
2323

24+
docker logs local-fake-login --follow | less +F # If you need to see what's going on in nginx
25+
2426
curl -v http://localhost:9123/health
2527

2628
curl http://localhost:9123/eligibility-signposting-api/patient-check/9658218989 | jq

0 commit comments

Comments
 (0)