contracts: consumer-driven contract testing lab (Spring Cloud Contract 5.0.3, Stubborn Contract 0.2.4, Pact JVM 4.7.7 on Spring Boot 4.2.0)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b7h4ZNF4BDUpJk3Zou
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
[INFO] Using the model-based test generator [stubborn.contract.verifier.model-based-generator != false]
|
||||
[INFO] Running com.ankurm.contracts.orders.OrdersTest
|
||||
|
||||
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: N s -- in com.ankurm.contracts.orders.OrdersTest
|
||||
[INFO] Running com.ankurm.contracts.orders.OrdersPactVerificationTest
|
||||
|
||||
Verifying a pact between checkout-consumer and orders-producer
|
||||
[Using File <repo>/contracts/orders-producer/target-stubborn/test-classes/pacts/checkout-consumer-orders-producer.json]
|
||||
Given order 42 exists and is confirmed
|
||||
a request for order 42
|
||||
returns a response which
|
||||
has status code 200 (OK)
|
||||
has a matching body (OK)
|
||||
|
||||
Verifying a pact between checkout-consumer and orders-producer
|
||||
[Using File <repo>/contracts/orders-producer/target-stubborn/test-classes/pacts/checkout-consumer-orders-producer.json]
|
||||
Given order 999 does not exist
|
||||
a request for an unknown order
|
||||
returns a response which
|
||||
has status code 404 (OK)
|
||||
has a matching body (OK)
|
||||
|
||||
Verifying a pact between checkout-consumer and orders-producer
|
||||
[Using File <repo>/contracts/orders-producer/target-stubborn/test-classes/pacts/checkout-consumer-orders-producer.json]
|
||||
Given orders can be created
|
||||
a request to create an order
|
||||
returns a response which
|
||||
has status code 201 (OK)
|
||||
has a matching body (OK)
|
||||
[INFO] Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: N s -- in com.ankurm.contracts.orders.OrdersPactVerificationTest
|
||||
[INFO] Tests run: 6, Failures: 0, Errors: 0, Skipped: 0
|
||||
[INFO] BUILD SUCCESS
|
||||
Reference in New Issue
Block a user