Role Assignment Batch Service
Scheduled batch job for removing the expired assignment records from role-assignment-service database. This is spring batch application scheduled with Kubernetes and runs once in a day per cluster.
To run the project you will need to have the following installed:
- Java 17
- Docker
please ensure the following application components are already running:
- am-role-assignment-service
- am-role-assignment-database
To run the applicaiton quickly use the docker helper script as follows:
./bin/run-in-docker.sh install
or
docker-compose up
Alternatively, you can start the application from the current source files using Gradle as follows:
./gradlew clean bootRun
If required, to run with a low memory consumption, the following can be used:
./gradlew --no-daemon assemble && java -Xmx384m -jar build/libs/rd-case-worker-api.jar
If you have some time to spare, you can run the unit tests as follows:
./gradlew test
If you have some time to spare, you can run the mutation tests as follows:
./gradlew pitest
As the project grows, these tests will take longer and longer to execute but are useful indicators of the quality of the test suite.
More information about mutation testing can be found here: http://pitest.org/
Please refer to the confluence on how to run and publish PACT tests. https://tools.hmcts.net/confluence/display/RTRD/PACT+testing