Family public law's implementation of the CCD template
- Docker
- realpath-osx (Mac OS only)
- jq
Run command:
git submodule init
git submodule update
Add services, roles and users from fpla-docker repository.
Run
./bin/generate-local-user-mappings.sh
script each time new LA users are added in order to fix access segregation locally.
Load CCD definition:
CCD definition is stored in JSON format. To load it into CCD instance please run:
$ ./bin/import-ccd-definition.sh
Note: Above script will export JSON content into XLSX file and upload it into instance of CCD definition store.
Additional note:
You can skip some of the files by using -e option on the import-ccd-definitions, i.e.
$ ./bin/import-ccd-definition.sh -e 'UserProfile.json,*-nonprod.json
The command above will skip UserProfile.json and all files with -nonprod suffix (from the folders).
To ensure you have the correct dependencies run yarn install
in the command line.
To run code linting enter yarn lint
in the command line.
Some of the functionality requires Docmosis Tornado to be started.
It requires DOCMOSIS_KEY
to be exposed as environment variable on your machine.
Docker-compose runs FPL Service as well, refer the service README for additional explanation what's required to get the FPL service started by Docker Compose.
E2E tests are configured to run in parallel in 3 headless browsers by default.
To run e2e tests enter yarn test
in the command line.
To run all tests only in one browser please set PARALLEL_CHUNKS
environment variable to 1
. By default 3 chunks are enabled.
PARALLEL_CHUNKS=1 yarn test
To show tests in browser window as they run please set SHOW_BROWSER_WINDOW
environment variable to true
. By default browser window is hidden.
SHOW_BROWSER_WINDOW=true yarn test
To enable retry upon test failure please set TEST_RETRIES
environment variable to desired positive value. By default no retries are enabled.
TEST_RETRIES=2 yarn test
E2E tests can be used to create sample case with mandatory sections only. To do so please run the following command:
PARALLEL_CHUNKS=1 yarn test --grep '@create-case-with-mandatory-sections-only'
Note: Case number will be printed to the console while tests run e.g. Application draft #1571-7550-7484-8512 has been created
.
See fpl-service for more information.
Some external dependencies need to be stubbed (i.e. professional reference data). Stubbing is configured in fpla-docker repository
This project is licensed under the MIT License - see the LICENSE file for details.