Skip to content

Orchestrator service that will facilitate interactions between CCD, the bundling stitching service, and any services using bundling.

License

Notifications You must be signed in to change notification settings

hmcts/em-ccd-orchestrator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

EVIDENCE MANAGEMENT CCD Orchestrator

Build Status codecov License: MIT

CCD Orchestrator is a backend service that facilitates interactions between CCD, the EM Stitching service, and a calling service.

Setup

Install https://stedolan.github.io/jq/

For linux: sudo apt-get install jq

For mac: brew install jq

To clone repo and prepare to pull containers:

git clone https://github.com/hmcts/em-ccd-orchestrator.git
cd em-ccd-orchestrator

Clean and build the application:

./gradlew clean
./gradlew build

To run the application:

VPN connection is required

./gradlew bootRun

To run functional tests, em-stitching-api must also be running. Please follow the instructions in the README for em-stitching-api on how to do so.

This will start the API container exposing the application's port (set to 8080 in this template app).

In order to test if the application is up, you can call its health endpoint:

  curl http://localhost:8080/health

You should get a response similar to this:

  {"status":"UP","components":{"discoveryComposite":{"description":"Discovery Client not initialized","status":"UNKNOWN",
"components":{"discoveryClient":{"description":"Discovery Client not initialized","status":"UNKNOWN"}}},
"ping":{"status":"UP"},"refreshScope":{"status":"UP"},"serviceAuth":{"status":"UP"}}}

Tech

It uses:

  • Java 11
  • Spring boot
  • Junit, Mockito and SpringBootTest and Powermockito
  • Gradle
  • lombok project - Lombok project

Plugins

Swagger UI

To view our REST API go to http://{HOST}/swagger-ui/index.html On local machine with server up and running, link to swagger is as below

http://localhost:8080/swagger-ui/index.html if running on AAT, replace localhost with ingressHost data inside values.yaml class in the necessary component, making sure port number is also removed.

API Endpoints

A list of our endpoints can be found here

https://hmcts.github.io/reform-api-docs/swagger.html?url=https://hmcts.github.io/reform-api-docs/specs/rpa-em-ccd-orchestrator.json

Automated Bundling Configuration Validation

The bundle configuration files can be validated by executing the validateYaml task:

./gradew validateYaml

Plugins

The template contains the following plugins:

License

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

Check the build

Running contract or pact tests:

You can run contract or pact tests as follows:

./gradlew clean
./gradlew contract

You can then publish your pact tests locally by first running the pact docker-compose:

docker-compose -f docker-pactbroker-compose.yml up

and then using it to publish your tests:

./gradlew pactPublish

About

Orchestrator service that will facilitate interactions between CCD, the bundling stitching service, and any services using bundling.

Topics

Resources

License

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published