Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hmcts/div-decree-absolute-frontend

Citizen frontend application for Decree Absolute stage of Divorce
https://github.com/hmcts/div-decree-absolute-frontend

jenkins-cft jenkins-cft-d-i

Last synced: about 1 month ago
JSON representation

Citizen frontend application for Decree Absolute stage of Divorce

Awesome Lists containing this project

README

        

# Divorce Decree Absolute

## Getting started

#### Install dependencies

```shell
yarn install
```

#### Start application

Run Redis DB using Docker

```shell
docker-compose up redis
```

To start running the application on ```https://localhost:3000```. (Note https not http)

```shell
yarn dev
```

This will create a new endpoint of ```"/session"``` where you can view and edit the current session.
(Note: each time you login/logout of IDAM the session will be reset)

```shell
yarn mocks
```

#### Test application

```shell
yarn test
```

#### Run Functional tests locally

```shell
yarn test:functional
```

#### Run Functional tests locally against AAT

* Connect to the VPN

* Make a copy of `config/example-local-aat.yml` as `config/local-aat.yml` (which is ignored by git)

* Substitute any secret values in ***local-aat.yml*** from SCM - Do not add/commit secrets to the example file!

* If you want to point to a PR, modify `tests.functional.url` accordingly.

* Run ```NODE_ENV=aat yarn test:functional```. This would your tests to pick up the new `local-aat.yml`.

### Running additional tests in the Jenkins PR Pipeline

1. Add one or more appropriate labels to your PR in GitHub. Valid labels are:

- ```enable_full_functional_tests```
- ```enable_fortify_scan```

2. Trigger a build of your PR in Jenkins. Fortify scans will take place asynchronously as part of the Static Checks/Container Build step.
- Check the Blue Ocean view for live monitoring, and review the logs once complete for any issues.
- As Fortify scans execute during the Static Checks/Container Build step, you will need to ensure this is triggered by making a minor change to the PR, such as bumping the chart version.