Pension scheme return is the backend service for pension scheme return which is a feature on manage your pension.
Run the following command to start all of the related services for this project:
sm2 -start PSR_ALLIncluded in the above command is PENSION_SCHEME_RETURN, which is this repository's most recent release.
If you want to run your local version of this code instead, run:
sm2 -stop PENSION_SCHEME_RETURNthen:
sbt 'run'Note: this service runs on port 10700 by default, but a different port (e.g. 17000) may be specified, as shown in the example below:
sbt 'run 17000'sbt clean coverage test it/test coverageReportor
You can execute the runtests.sh file to run the tests and generate coverage report easily.
/bin/bash ./runtests.shIn order to use bruno script instead of frontend with full journey you need to import the bru files these are collections and environments, into Bruno.
-
Open Bruno
-
Select open collection
-
Navigate to the /test/resources/PSR with Login
-
Select PSR with Login and open
-
Gets all the collections and environment vars
pension-scheme-returnsets the host of the service requests to match the environmentauthsets the host of the service requests to match the environmentbearer_tokensets the Authorization token to satisfy backend authentication
PSR-Login request in the collection is required in order to hit the secured backend endpoints.
When you hit the PSR-LOGIN, we obtained the authToken from government-gateway/session/login url and setting it to the bearer_token field of environment variable. This bearer_token then will be used in any subsequent requests for Authorization.
This code is open source software licensed under the Apache 2.0 License.