Giter Club home page Giter Club logo

ccfr-fees-register-app's Introduction

Fees Register for HMCTS online services

Quality Gate Status Build Status Codacy Badge codecov

This project provides REST based web services for exposing fees related information for hearing fee and award fees.

Getting Started

This is SpringBoot based java application. Please see the Jenkinsfile in root folder to see the build and deployment pipeline.

Prerequisites

You will need jdk installed on your machine, and the fees_register database running, for which you can run:

$ docker-compose -f ./docker-compose.yml up fees-database

Installing

  1. Clone the repo to your machine using git clone [email protected]:hmcts/ccfr-fees-register-app.git
  2. Run $ ./gradlew build

Running the tests and other gradle tasks

To test locally all the tasks that run on the Jenkins master branch build, run:

'./gradlew test' for unit tests './gradlew smoke' './gradlew functional' but you will need some environment variables (see next section) './gradlew fortifyScan' './gradlew pitest' for mutation testing './gradlew runProviderPactVerification' to verify the provider contracts

Environment variables for functional tests

export OAUTH2_CLIENT_SECRET=ask someone for this export TEST_URL=http://fees-register-api-aat.service.core-compute-aat.internal
export IDAM_API_URL=https://idam-api.aat.platform.hmcts.net export OAUTH2_REDIRECT_URI=https://fees-register-frontend-aat.service.core-compute-aat.internal/oauth2

Deployment

See Jenkinsfile for the deployment details

DB migration task

To run the DB migration task locally, run

./gradlew --no-daemon '-Pdburl=localhost:5432/fees_register' -Pflyway.user=fees_register -Pflyway.password=fees_register migratePostgresDatabase

Run the application

To run the application at local developer machine use following command

$ ./gradlew bootRun

Once application server is started use swagger ui to find the endpoints and test these. http://localhost:8080/swagger-ui.html

or in dev/test environment you can use this link https://dev-proxy.fees-register.reform.hmcts.net/swagger-ui.html or https://test-proxy.fees-register.reform.hmcts.net/swagger-ui.html

Run the application using docker-compose

Please add the below environmental variables in .env in ccfr-fees-register-app/.env

FEE_REGISTER_PASS = fees_register OPENID_SPRING_DATASOURCE_PASSWORD = openidm IDAM_SPI_FORGEROCK_AM_PASSWORD = Pa55word11 IDAM_SPI_FORGEROCK_IDM_PASSWORD = openidm-admin IDAM_SPI_FORGEROCK_IDM_PIN_DEFAULTPASSWORD = BlaBlaBlackSh33p SECURITY_OAUTH2_CLIENT_CLIENTSECRET = password

docker-compose up

Service Endpoints

Some of the end points are as below. These might be out of date. Please look at the swagger-ui to be sure.

  • GET /fees-register/cmc
  • GET /fees-register/cmc/categories
  • GET /fees-register/cmc/categories/{id}/ranges/{amount}/fees
  • GET /fees-register/cmc/flat
  • GET /fees-register/cmc/flat/{id}

Service Versioning

We use SemVer for versioning.

ccfr-fees-register-app's People

Contributors

abdulkhan5 avatar adusumillipraveen avatar amitchidrewar1301 avatar anoojhmcts avatar anshikanigam15 avatar arbab-cog avatar chrisworthcgi avatar crazyfunker avatar davejones74 avatar eamagdalena avatar jaleen avatar jennings-hmcts avatar kaushikmaitra avatar krishnanuthalapati avatar larslunde-hmcts avatar mokainos avatar ollie-smith avatar pats-john avatar pragneshpatel2 avatar prashant-khunte avatar priyatham-bhikkumalla avatar sacsdam avatar satishramachandrappa avatar sayali-salunkhe avatar shravanmechineni avatar subrotomukherjee avatar tarun-palisetty avatar thor-tech-of-metal avatar vigneshpushkaranhmcts avatar vrajadurai 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ccfr-fees-register-app's Issues

Use of mutation testing in ccfr-fees-register-app - 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.

Rate-Limited

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

  • Update Helm release java to v5.0.4
  • Update plugin au.com.dius.pact to v4.6.6
  • Update plugin com.jfrog.bintray to v1.8.5
  • Update plugin org.owasp.dependencycheck to v9.0.9
  • Update plugin uk.gov.hmcts.java to v0.12.56
  • Update spring boot to v2.7.18 (org.springframework.boot:spring-boot-dependencies, org.springframework.boot)
  • Update dependency com.fasterxml.jackson.core:jackson-annotations to v2.16.1
  • Update dependency com.fasterxml.jackson.core:jackson-databind to v2.16.1
  • Update dependency com.github.hmcts.java-logging:logging-appinsights to v6.1.4
  • Update dependency com.github.hmcts:fortify-client to v1.4.1
  • Update dependency com.google.guava:guava to v27.1-jre
  • Update dependency commons-logging:commons-logging to v1.3.0
  • Update dependency hashicorp/terraform to v1.7.3
  • Update dependency info.solidsoft.gradle.pitest:gradle-pitest-plugin to v1.15.0
  • Update dependency joda-time:joda-time to v2.12.7
  • Update dependency junit:junit to v4.13.2
  • Update dependency net.logstash.logback:logstash-logback-encoder to v5.3
  • Update dependency net.serenity-bdd:serenity-single-page-report to v3.9.8
  • Update dependency org.apache.commons:commons-lang3 to v3.14.0
  • Update dependency org.assertj:assertj-core to v3.25.3
  • Update dependency org.hsqldb:hsqldb to v2.7.2
  • Update dependency org.pitest:pitest to v1.15.7
  • Update dependency org.postgresql:postgresql to v42.7.1
  • Update dependency org.springframework.security:spring-security-test to v5.8.9
  • Update log4j2 monorepo to v2.22.1 (org.apache.logging.log4j:log4j-core, org.apache.logging.log4j:log4j-api, org.apache.logging.log4j:log4j-bom)
  • Update plugin com.gorylenko.gradle-git-properties to v1.5.2
  • Update plugin info.solidsoft.pitest to v1.15.0
  • Update plugin io.spring.dependency-management to v1.1.4
  • Update plugin org.sonarqube to v3.5.0.2730
  • Update versions.serenity to v3.9.8 (net.serenity-bdd:serenity-spring, net.serenity-bdd:serenity-rest-assured, net.serenity-bdd:serenity-junit, net.serenity-bdd:serenity-core)
  • Update Terraform azuread to v2
  • Update actions/cache action to v4
  • Update actions/checkout action to v4
  • Update actions/setup-java action to v4
  • Update dependency com.github.tomakehurst:wiremock-standalone to v3
  • Update dependency com.google.guava:guava to v33
  • Update dependency com.sun.xml.bind:jaxb-osgi to v4
  • Update dependency io.github.openfeign:feign-jackson to v13
  • Update dependency net.logstash.logback:logstash-logback-encoder to v7
  • Update dependency net.serenity-bdd:serenity-cucumber to v4
  • Update dependency net.serenity-bdd:serenity-single-page-report to v4
  • Update dependency org.hibernate:hibernate-validator to v8
  • Update dependency org.mockito:mockito-core to v5
  • Update dependency org.springframework.security:spring-security-test to v6
  • Update hmctspublic.azurecr.io/base/java Docker tag to v21
  • Update plugin com.gorylenko.gradle-git-properties to v2
  • Update plugin org.sonarqube to v4
  • Update postgres Docker tag to v16
  • Update spring boot to v3 (major) (org.springframework.boot:spring-boot-dependencies, org.springframework.boot)
  • 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)
  • ๐Ÿ” Create all rate-limited PRs at once ๐Ÿ”

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
  • postgres 11-alpine
dockerfile
Dockerfile
  • hmctspublic.azurecr.io/base/java 17-distroless
github-actions
.github/workflows/ci.yml
  • actions/checkout v2
  • actions/setup-java v1
  • actions/cache v2
gradle
cve-resolution-strategy.gradle
settings.gradle
build.gradle
  • org.sonarqube 3.0
  • org.springframework.boot 2.7.13
  • io.spring.dependency-management 1.0.15.RELEASE
  • org.owasp.dependencycheck 9.0.4
  • uk.gov.hmcts.java 0.12.0
  • com.gorylenko.gradle-git-properties 1.4.21
  • com.jfrog.bintray 1.8.4
  • au.com.dius.pact 4.6.1
  • com.github.hmcts:fortify-client 1.2.1
  • org.springframework.boot:spring-boot-dependencies 2.7.13
  • org.apache.logging.log4j:log4j-bom 2.17.1
  • com.sun.xml.bind:jaxb-osgi 2.3.1
  • org.apache.logging.log4j:log4j-api 2.17.1
  • org.apache.logging.log4j:log4j-core 2.17.1
  • org.dom4j:dom4j 2.1.3
  • org.owasp.encoder:encoder 1.2
  • com.github.tomakehurst:wiremock-standalone 2.27.2
  • org.projectlombok:lombok 1.18.28
  • org.projectlombok:lombok 1.18.28
  • org.projectlombok:lombok 1.18.28
  • junit:junit 4.12
  • org.assertj:assertj-core 3.11.1
  • org.projectlombok:lombok 1.18.28
  • org.projectlombok:lombok 1.18.28
  • com.google.code.findbugs:annotations 3.0.1
  • joda-time:joda-time 2.9.9
  • org.springdoc:springdoc-openapi-ui 1.7.0
  • org.springdoc:springdoc-openapi-webmvc-core 1.7.0
api/liquibase.gradle
api/build.gradle
  • net.serenity-bdd:serenity-gradle-plugin 3.2.3
  • net.serenity-bdd:serenity-single-page-report 3.2.3
  • info.solidsoft.pitest 1.9.0
  • uk.gov.hmcts.reform.auth:auth-checker-lib 2.1.2
  • joda-time:joda-time 2.9.9
  • org.postgresql:postgresql 42.6.0
  • org.liquibase:liquibase-core 4.23.1
  • com.github.hmcts.java-logging:logging-appinsights 6.0.1
  • net.logstash.logback:logstash-logback-encoder 5.0
  • org.springframework.security:spring-security-test 5.2.1.RELEASE
  • org.hsqldb:hsqldb 2.3.5
  • org.projectlombok:lombok 1.18.28
  • org.projectlombok:lombok 1.18.28
  • org.projectlombok:lombok 1.18.28
  • org.projectlombok:lombok 1.18.28
  • org.projectlombok:lombok 1.18.28
  • io.github.openfeign:feign-jackson 9.7.0
  • net.serenity-bdd:serenity-core 3.2.3
  • net.serenity-bdd:serenity-cucumber 1.9.51
  • net.serenity-bdd:serenity-junit 3.2.3
  • net.serenity-bdd:serenity-rest-assured 3.2.3
  • net.serenity-bdd:serenity-spring 3.2.3
  • org.pitest:pitest 1.9.0
  • info.solidsoft.gradle.pitest:gradle-pitest-plugin 1.4.6
  • org.codehaus.sonar-plugins:sonar-pitest-plugin 0.5
api-contract/build.gradle
  • com.fasterxml.jackson.core:jackson-annotations 2.13.5
  • org.hibernate:hibernate-validator 7.0.1.Final
client/build.gradle
  • com.fasterxml.jackson.core:jackson-annotations 2.13.5
  • com.fasterxml.jackson.core:jackson-databind 2.13.5
  • org.apache.httpcomponents:httpclient 4.5.11
  • com.github.tomakehurst:wiremock-standalone 2.27.2
  • commons-logging:commons-logging 1.2
model/build.gradle
  • com.fasterxml.jackson.core:jackson-annotations 2.13.5
  • com.google.guava:guava 27.0-jre
  • org.apache.commons:commons-lang3 3.7
  • org.mockito:mockito-core 1.10.19
gradle-wrapper
gradle/wrapper/gradle-wrapper.properties
  • gradle 7.6.2
helm-values
charts/fees-register-api/values.yaml
helmv3
charts/fees-register-api/Chart.yaml
  • java 5.0.0
terraform
infrastructure/fee_reg_core.tf
infrastructure/main.tf
infrastructure/provider.tf
infrastructure/sdp.tf
infrastructure/state.tf
  • azuread 1.6.0
  • azurerm ~> 3.40
infrastructure/versions.tf
  • hashicorp/terraform >= 1.3.7
terraform-version
infrastructure/.terraform-version
  • hashicorp/terraform 1.3.7

  • 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.