Giter Club home page Giter Club logo

div-case-data-formatter's Introduction

Divorce Case Formatter Service License: MIT

This is the Divorce Case Formatter Service which handles the different data conversion between different Divorce Components. For example this will convert the Front End Session Data to CCD data format and vice versa.

Setup

Prerequisites

Building

The project uses Gradle as a build tool but you don't have to install it locally since there is a ./gradlew wrapper script.

To build project please execute the following command:

./gradlew build

Running

First you need to create distribution by executing following command:

./gradlew installDist

When the distribution has been created in build/install/div-case-formatter-service directory, you can run the application by executing following command:

docker-compose up

As a result the following container(s) will get created and started:

  • long living container for API application exposing port 4011

Testing

To run all unit tests please execute following command:

./gradlew test

Mutation tests

To run all mutation tests execute the following command:

./gradlew pitest

Integration tests

To run all integration tests locally:

  • Make a copy of src/main/resources/example-application-aat.yml as src/main/resources/application-aat.yml
  • Make a copy of src/integrationTest/resources/example-application-local.properties as src/integrationTest/resources/application-local.properties
  • Replace the replace_me secrets in the newly created files. You can get the values from SCM and Azure secrets key vault (the new files are in .gitignore and should not be committed to git)
  • Start the app with AAT config:
    • Using gradle: ./gradlew clean bootRunAat
    • Using Intellij: edit Run Configuration and set Environment variables to http_proxy=http://proxyout.reform.hmcts.net:8080;SPRING_PROFILES_ACTIVE=aat
  • Run the tests with AAT config using ./gradlew clean functional

###Running additional tests in the Jenkins PR Pipeline

  1. Add one or more appropriate labels to your PR in GitHub. Valid labels are:
  • enable_fortify_scan
  1. 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.

Developing

Coding style tests

To run all checks (including unit tests) please execute following command:

./gradlew check

Versioning

We use SemVer for versioning. For the versions available, see the tags on this repository.

Standard API

We follow RESTful API standards.

API documentation

API documentation is provided with Swagger:

  • http://localhost:4011/swagger-ui.html - UI to interact with the API resources

License

This project is licensed under the MIT License - see the LICENSE.md file for details.

div-case-data-formatter's People

Contributors

alexwakeman avatar amobarak avatar cotterale avatar damongreen123 avatar davejones74 avatar david-gimelle avatar dizrupto avatar gurpiarbassi avatar hosainnet avatar iichr avatar jacmurphy avatar jakub-kozlowski avatar johnnyvineall avatar kleog avatar madjava avatar magicobject avatar michael1142 avatar mindgames2015 avatar mounikahmcts avatar mrganeshraja avatar mthava avatar qzhou-hmcts avatar ravinderpal avatar rishikrsharma avatar ruban72 avatar smillapalk avatar srizvihmcts avatar tchow8 avatar tseelig avatar vianvi avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

uk-gov-mirror

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.