Stefano Lucka
04/12/2022, 4:30 PM.given("product with stock availability")
.given("transport API being down")
.uponReceiving("A request on /product-availability endpoint")
.willRespondWith()
.status(200)
.body(aValidResponseBodyUsingLikeEverywhere())
One part of our group says this is a valid test case, because we've made our verbal contract "On outage of your Transport API dependency we still expect a valid response from you" explicit now. On the other hand the second part of our POC group says, this is an implementation detail and we should not even know, that the provider is using a "transport api" to do its job.
Are there any best practices on such an example?Yousaf Nabi (pactflow.io)
Justin Berger
04/12/2022, 6:15 PMStefano Lucka
04/12/2022, 6:27 PMMatt (pactflow.io / pact-js / pact-go)
.given("a downstream system is unavailable")
Matt (pactflow.io / pact-js / pact-go)
Stefano Lucka
04/19/2022, 3:24 PM