Testing application using new Eventuate Tram saga API
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gradle/wrapper
invoice-service
order-service
service-model
shipment-service
.gitignore
LICENSE
README.adoc
build.gradle
docker-compose.yml
gradle.properties
gradlew
gradlew.bat
settings.gradle

README.adoc

eventuate-sagas

Testing application using Eventuate Tram saga API

Running

  1. ./gradlew clean build

  2. start docker

  3. docker-compose up -d --build

  4. test saga - curl -X POST --header "Content-Type: application/json" --header "Accept: /" -d "{\"comment\": \"testComment\", \"price\": 100, \"productId\": \"testProduct\"}" "http://localhost:8080/api/order"

    • for shipment failure - \"productId\": \"failShipment\"

    • for invoice failure - \"productId\": \"failInvoice\"

  5. observe the logs for results - docker container logs -f eventuatesagas_orderservice_1

Stopping and removing docker containers

docker-compose down --remove-orphans