Giter Club home page Giter Club logo

div-case-maintenance-service's Introduction

Divorce Case Maintenance Service License: MIT

This is a case maintenance service. This service facilitates all the communication between Core Case Data and the Divorce system.

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

If the build failed because of tests try running the following

./gradlew build -x test

This command will run the build task but it will exclude the test task

Running

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

docker-compose up

(If build/install/div-case-maintenance-service does not exist try running ./gradlew build again ) As a result the following container(s) will get created and started:

  • long living container for API application exposing port 4010

Testing

To run all unit tests please execute following command:

./gradlew test

Coding style tests

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

./gradlew check

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 SPRING_PROFILES_ACTIVE=aat
  • Start the test 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
  • enable_security_scan
  • enable_full_functional_tests
  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 API documentation

API documentation is provided with Swagger:

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

The documentation.swagger.enabled property should be 'true' to enable Swagger.

Versioning

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

Standard API

We follow RESTful API standards.

License

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

div-case-maintenance-service's People

Contributors

adusumillipraveen avatar alexwakeman avatar borislavpetrovhmcts avatar cotterale avatar damongreen123 avatar david-gimelle avatar dependabot-preview[bot] avatar harryh96 avatar hosainnet avatar iichr avatar jacmurphy avatar johnnyvineall avatar kleog avatar madjava avatar michael1142 avatar mindgames2015 avatar mounikahmcts avatar ms-ek avatar mthava avatar nsingamsetty avatar qzhou-hmcts avatar renovate[bot] avatar rishikrsharma avatar ruban72 avatar smillapalk avatar tchow8 avatar timja avatar timwebster9 avatar tseelig avatar vianvi avatar

Stargazers

 avatar  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

div-case-maintenance-service's Issues

Use of mutation testing in div-case-maintenance-service - Help needed

Hello there!

My name is Ana. I noted that you use the mutation testing tool Pit in the project.
I am a postdoctoral researcher at the University of Seville (Spain), and my colleagues and I are studying how mutation testing tools are used in practice. With this aim in mind, we have analysed over 3,500 public GitHub repositories using mutation testing tools, including yours! This work has recently been published in a journal paper available at https://link.springer.com/content/pdf/10.1007/s10664-022-10177-8.pdf.

To complete this study, we are asking for your help to understand better how mutation testing is used in practice, please! We would be extremely grateful if you could contribute to this study by answering a brief survey of 21 simple questions (no more than 6 minutes). This is the link to the questionnaire https://forms.gle/FvXNrimWAsJYC1zB9.

We apologize if you have already received message multiple times or if you have already had the opportunity to complete the survey. If you have already shared your feedback, we want to convey our appreciation, kindly disregard this message, and please accept our apologies for any inconvenience.

Drop me an e-mail if you have any questions or comments ([email protected]). Thank you very much in advance!!

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Repository problems

These problems occurred while renovating this repository. View logs.

  • WARN: Package lookup failures

Rate-Limited

These updates are currently rate-limited. Click on a checkbox below to force their creation now.

  • Update dependency gradle to v7.6.4
  • Update dependency io.swagger.core.v3:swagger-annotations to v2.2.22
  • Update dependency org.projectlombok:lombok to v1.18.34
  • Update dependency org.skyscreamer:jsonassert to v1.5.3
  • Update dependency org.springframework.cloud:spring-cloud-dependencies to v2021.0.9
  • Update netty monorepo to v4.1.112.Final (io.netty:netty-transport, io.netty:netty-resolver, io.netty:netty-handler, io.netty:netty-common, io.netty:netty-codec-http, io.netty:netty-codec, io.netty:netty-buffer)
  • Update plugin io.spring.dependency-management to v1.1.6
  • Update plugin org.owasp.dependencycheck to v8.4.3
  • Update plugin uk.gov.hmcts.java to v0.12.63
  • Update spring boot to v2.7.18 (org.springframework.boot, org.springframework.boot:spring-boot-dependencies, org.springframework.boot:spring-boot-gradle-plugin)
  • Update spring core to v5.3.39 (org.springframework:spring-webmvc, org.springframework:spring-web, org.springframework:spring-jcl, org.springframework:spring-expression, org.springframework:spring-core, org.springframework:spring-context-support, org.springframework:spring-context, org.springframework:spring-beans, org.springframework:spring-aop)
  • Update spring security (org.springframework.security:spring-security-rsa, org.springframework.security:spring-security-crypto)
  • Update versions.tomcat to v9.0.93 (org.apache.tomcat.embed:tomcat-embed-el, org.apache.tomcat.embed:tomcat-embed-websocket, org.apache.tomcat.embed:tomcat-embed-core)
  • Update Helm release java to v5.2.1
  • Update Terraform azurerm to v3.116.0
  • Update dependency com.fasterxml.jackson.core:jackson-databind to v2.17.2
  • Update dependency com.fasterxml.jackson.datatype:jackson-datatype-jsr310 to v2.17.2
  • Update dependency com.github.hmcts:fortify-client to v1.4.4
  • Update dependency com.github.tomakehurst:wiremock to v2.35.2
  • Update dependency commons-io:commons-io to v2.16.1
  • Update dependency hashicorp/terraform to v1.9.5
  • Update dependency org.apache.commons:commons-lang3 to v3.16.0
  • Update dependency org.pitest:pitest to v1.16.1
  • Update dependency org.springdoc:springdoc-openapi-ui to v1.8.0
  • Update junit5 monorepo (org.junit.platform:junit-platform-commons, org.junit.jupiter:junit-jupiter-engine, org.junit.jupiter:junit-jupiter-api)
  • Update log4j2 monorepo to v2.23.1 (org.apache.logging.log4j:log4j-to-slf4j, org.apache.logging.log4j:log4j-api)
  • Update plugin com.github.ben-manes.versions to v0.51.0
  • Update versions.jackson to v2.17.2 (com.fasterxml.jackson.core:jackson-core, com.fasterxml.jackson.core:jackson-annotations)
  • Update Terraform azurerm to v4
  • Update dependency com.google.guava:guava to v33
  • Update dependency org.yaml:snakeyaml to v2
  • Update hmctspublic.azurecr.io/base/java Docker tag to v21
  • Update plugin org.owasp.dependencycheck to v10
  • Update plugin org.sonarqube to v5
  • Update spring boot to v3 (major) (org.springframework.boot, org.springframework.boot:spring-boot-dependencies, org.springframework.boot:spring-boot-gradle-plugin)
  • Update spring cloud (major) (org.springframework.cloud:spring-cloud-contract-wiremock, org.springframework.cloud:spring-cloud-dependencies)
  • Update spring core to v6 (major) (org.springframework:spring-webmvc, org.springframework:spring-web, org.springframework:spring-jcl, org.springframework:spring-expression, org.springframework:spring-core, org.springframework:spring-context-support, org.springframework:spring-context, org.springframework:spring-beans, org.springframework:spring-aop)
  • Update versions.restAssured to v5 (major) (io.rest-assured:rest-assured-all, io.rest-assured:rest-assured)
  • Update versions.serenity to v4 (major) (net.serenity-bdd:serenity-spring, net.serenity-bdd:serenity-rest-assured, net.serenity-bdd:serenity-junit, net.serenity-bdd:serenity-core)
  • Update versions.tomcat to v10 (major) (org.apache.tomcat.embed:tomcat-embed-el, org.apache.tomcat.embed:tomcat-embed-websocket, org.apache.tomcat.embed:tomcat-embed-core)
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

Warning

Renovate failed to look up the following dependencies: Failed to look up maven package uk.gov.hmcts.reform:properties-volume-spring-boot-starter, Failed to look up maven package uk.gov.hmcts.reform:logging, Failed to look up maven package uk.gov.hmcts.reform:logging-appinsights, Failed to look up maven package uk.gov.hmcts.reform:logging-spring, Failed to look up maven package uk.gov.hmcts.reform:logging-httpcomponents, Failed to look up maven package uk.gov.hmcts.reform:idam-client, Failed to look up maven package uk.gov.hmcts.reform:service-auth-provider-client, Failed to look up maven package uk.gov.hmcts.reform:core-case-data-store-client.

Files affected: build.gradle


Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

docker-compose
docker-compose.yml
dockerfile
Dockerfile
  • hmctspublic.azurecr.io/base/java 17-distroless
gradle
settings.gradle
build.gradle
  • org.springframework.boot:spring-boot-gradle-plugin 2.7.17
  • net.serenity-bdd:serenity-gradle-plugin 2.5.7
  • com.github.ben-manes.versions 0.49.0
  • com.jfrog.bintray 1.8.5
  • info.solidsoft.pitest 1.15.0
  • io.spring.dependency-management 1.1.3
  • org.owasp.dependencycheck 8.4.2
  • org.sonarqube 4.4.1.3373
  • org.springframework.boot 2.7.17
  • au.com.dius.pact 4.2.3
  • uk.gov.hmcts.java 0.12.47
  • org.projectlombok:lombok 1.18.30
  • com.github.hmcts:fortify-client 1.3.0
  • com.sun.xml.bind:jaxb-osgi 4.0.4
  • com.fasterxml.jackson.core:jackson-databind 2.15.3
  • com.fasterxml.jackson.core:jackson-annotations 2.15.3
  • com.puppycrawl.tools:checkstyle 8.45.1
  • commons-io:commons-io 2.15.0
  • org.springdoc:springdoc-openapi-ui 1.7.0
  • io.swagger.core.v3:swagger-annotations 2.2.18
  • org.apache.commons:commons-lang3 3.13.0
  • uk.gov.hmcts.reform:properties-volume-spring-boot-starter 0.1.0
  • ch.qos.logback:logback-classic 1.2.10
  • ch.qos.logback:logback-core 1.2.10
  • org.apache.httpcomponents:httpclient 4.5.14
  • org.apache.httpcomponents:fluent-hc 4.5.14
  • uk.gov.hmcts.reform:logging 5.1.7
  • uk.gov.hmcts.reform:logging-appinsights 5.1.7
  • uk.gov.hmcts.reform:logging-spring 5.1.7
  • uk.gov.hmcts.reform:logging-httpcomponents 5.1.7
  • uk.gov.hmcts.reform:idam-client 1.1.0
  • uk.gov.hmcts.reform:service-auth-provider-client 3.1.4
  • uk.gov.hmcts.reform:core-case-data-store-client 4.7.6
  • org.apache.tomcat.embed:tomcat-embed-core 9.0.82
  • org.apache.tomcat.embed:tomcat-embed-websocket 9.0.82
  • org.apache.tomcat.embed:tomcat-embed-el 9.0.82
  • com.google.guava:guava 32.1.3-jre
  • org.bouncycastle:bcpkix-jdk15on 1.70
  • org.springframework.security:spring-security-rsa 1.1.1
  • org.springframework.security:spring-security-crypto 5.8.8
  • org.pitest:pitest 1.15.3
  • info.solidsoft.gradle.pitest:gradle-pitest-plugin 1.15.0
  • org.codehaus.sonar-plugins:sonar-pitest-plugin 0.5
  • com.github.tomakehurst:wiremock 2.27.2
  • org.springframework.cloud:spring-cloud-contract-wiremock 2.2.6.RELEASE
  • com.mashape.unirest:unirest-java 1.4.9
  • junit:junit 4.13.2
  • net.serenity-bdd:serenity-core 2.6.0
  • net.serenity-bdd:serenity-cucumber 1.9.51
  • net.serenity-bdd:serenity-junit 2.6.0
  • net.serenity-bdd:serenity-rest-assured 2.6.0
  • net.serenity-bdd:serenity-spring 2.6.0
  • io.rest-assured:rest-assured 4.5.1
  • io.rest-assured:rest-assured-all 4.5.1
  • org.skyscreamer:jsonassert 1.5.1
  • com.fasterxml.jackson.datatype:jackson-datatype-jsr310 2.15.3
  • com.fasterxml.jackson.datatype:jackson-datatype-jsr310 2.15.3
  • org.springframework.boot:spring-boot-dependencies 2.7.17
  • org.springframework.cloud:spring-cloud-dependencies 2021.0.8
  • commons-beanutils:commons-beanutils 1.9.4
  • org.yaml:snakeyaml 1.33
  • io.netty:netty-buffer 4.1.100.Final
  • io.netty:netty-codec 4.1.100.Final
  • io.netty:netty-codec-http 4.1.100.Final
  • io.netty:netty-common 4.1.100.Final
  • io.netty:netty-handler 4.1.100.Final
  • io.netty:netty-resolver 4.1.100.Final
  • io.netty:netty-transport 4.1.100.Final
  • org.apache.logging.log4j:log4j-api 2.21.1
  • org.apache.logging.log4j:log4j-to-slf4j 2.21.1
  • org.springframework:spring-aop 5.3.30
  • org.springframework:spring-beans 5.3.30
  • org.springframework:spring-context 5.3.30
  • org.springframework:spring-context-support 5.3.30
  • org.springframework:spring-core 5.3.30
  • org.springframework:spring-expression 5.3.30
  • org.springframework:spring-jcl 5.3.30
  • org.springframework:spring-web 5.3.30
  • org.springframework:spring-webmvc 5.3.30
  • com.fasterxml.jackson.core:jackson-core 2.15.3
  • org.glassfish:jakarta.el 3.0.4
  • au.com.dius.pact.consumer:junit5 4.1.7
  • au.com.dius.pact.consumer:java8 4.1.7
  • org.junit.jupiter:junit-jupiter-api 5.10.1
  • org.junit.jupiter:junit-jupiter-engine 5.10.1
  • org.junit.platform:junit-platform-commons 1.10.1
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 7.6.3
helmv3
charts/div-cms/Chart.yaml
  • java 5.0.0
terraform
infrastructure/main.tf
infrastructure/state.tf
  • azurerm 3.79.0
terraform-version
infrastructure/.terraform-version
  • hashicorp/terraform 1.6.3

  • Check this box to trigger a request for Renovate to run again on this repository

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.