xstefank / eventuate-tram-service

Testing application using new Eventuate Tram saga API
GNU Lesser General Public License v2.1
1 stars 2 forks source link

= eventuate-sagas

Testing application using http://eventuate.io/abouteventuatetram.html[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