A micro-frontend service - This service provides an interface which allows the user to download and view historic documents
This service is built following GDS standards to WCAG 2.2 AA
We use the GOV.UK design system to ensure consistency and compliance through the project
This applications lives in the "public" zone. It integrates with:
Secure Payments Service (SPS) / Enterprise Tax Management Platform (ETMP) via the Customs Financials API
Secure Document Exchange Service (SDES) bulk data API via the SDES proxy
From the root directory
sbt run - starts the service locally
sbt runAllChecks - Will run all checks required for a successful build
Default service port on local - 9396
There are a number of dependencies required to run the service.
The easiest way to get started with these is via the service manager CLI - you can find the installation guide here
| Command | Description |
|---|---|
sm2 --start CUSTOMS_FINANCIALS_ALL |
Runs all dependencies |
sm2 -s |
Shows running services |
sm2 --stop CUSTOMS_HISTORIC_STATEMENT |
Stop the micro service |
sbt run |
(from root dir) to compile the current service with your changes |
AUTHAUTH_LOGIN_STUBAUTH_LOGIN_APIBAS_GATEWAYCA_FRONTENDSSOUSER_DETAILSCUSTOMS_FINANCIALS_APICUSTOMS_FINANCIALS_HODS_STUBCUSTOMS_FINANCIALS_SDES_STUBCONTACT_FRONTEND
The service can be accessed by using below enrolments and with below sample EORI numbers, via http://localhost:9949/auth-login-stub/gg-sign-in (on local) or https://host:port/auth-login-stub/gg-sign-in on DEV/QA/STAGING
Redirect URL - /customs/payment-records
| Enrolment Key | Identifier Name | Identifier Value |
|---|---|---|
HMRC-CUS-ORG |
EORINumber |
GB744638982000 |
HMRC-CUS-ORG |
EORINumber |
GB744638982001 |
The minimum requirement for test coverage is 90%. Builds will fail when the project drops below this threshold.
| Command | Description |
|---|---|
sbt test |
Runs unit tests locally |
sbt "test:testOnly *TEST_FILE_NAME*" |
runs tests for a single file |
| Command | Description |
|---|---|
sbt clean coverage test coverageReport |
Generates a unit test coverage report that you can find here target/scala-3.3.5/scoverage-report/index.html |
You can find a list of microservice specific routes here - /conf/app.routes
Application entrypoint: /customs/payment-records
There's a risk of WIP features being exposed in production! Don't enable features in
application.conf, as this will apply globally by default
| Command | Description |
|---|---|
sbt "run -Dfeatures.some-feature-name=true" |
enables a feature locally without risking exposure |
| Flag | Description |
|---|---|
fixed-systemdate-for-tests |
Fix the system date for running tests |
Note: Microservices must be running with test-only routes explicitly enabled, via this switch in the
app-config-<env>, the service manager microservice profile, or just viasbt runlocally:"-Dapplication.router=testOnlyDoNotUseInAppConf.Routes"
| Command | Description |
|---|---|
sbt runAllChecks |
Runs all standard code checks |
sbt clean |
Cleans code |
sbt compile |
Better to say 'Compiles the code' |
sbt coverage |
Prints code coverage |
sbt test |
Runs unit tests |
sbt it/test |
Runs integration tests |
sbt scalafmtCheckAll |
Runs code formatting checks based on .scalafmt.conf |
sbt scalastyle |
Runs code style checks based on /scalastyle-config.xml |
sbt Test/scalastyle |
Runs code style checks for unit test code /test-scalastyle-config.xml |
sbt coverageReport |
Produces a code coverage report |
sbt "test:testOnly *TEST_FILE_NAME*" |
runs tests for a single file |
sbt clean coverage test coverageReport |
Generates a unit test coverage report that you can find here target/scala-3.3.5/scoverage-report/index.html |
sbt "run -Dfeatures.some-feature-name=true" |
enables a feature locally without risking exposure |