Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Microcks mocking / contract/interaction testing + update to latest Dapr and Spring Boot on pizza-store #13

Merged
merged 1 commit into from
Feb 25, 2025

Conversation

lbroudoux
Copy link
Contributor

This PR is only for pizza-store module. It's similar to #12

Changes

  • Bump to Spring Boot 3.3.7
  • Bump to Dapr spring-boot-starter 0.14.0-SNAPSHOT (needed for HTTPEndpoint support)
  • Add KafkaContainer bound to Dapr sidecar
  • Add Microcks support for mocking, contract-testing and interaction-testing

New Microcks contract tests

  1. PizzaStoreContractTest.testPlaceOrderEndpointIsConformantToSpec()

Ensure that the exposed API POST /order conforms to the new store-openapi.yaml spec.
Handy to ensure we didn't break the backward compatibility when applying changes / adding new features.

  1. PizzaStoreInteractionTest.testKitchenPrepareIsCalledAfterOrderIsPlaced()

Ensure that placing an order via the API endpoint actually invokes the Kitchen service (that is mocked by Microcks)

  1. PizzaStoreInteractionTest.testDeliveryDeliverIsCalledWhenPreparationEventReceived()

Ensure that the application receives Kafka events coming from the Kitchen service through the Dapr Sidecar. Validates that on reception of such an event, the Delivery service (mocked by Microcks) is invoked.

…t Dapr and Spring Boot

Signed-off-by: Laurent Broudoux <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants