Jegadeesan Ponnusamy
06/30/2023, 3:36 PMMatt (pactflow.io / pact-js / pact-go)
Jegadeesan Ponnusamy
07/03/2023, 12:34 PMJegadeesan Ponnusamy
07/03/2023, 12:36 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Also, if the same microservice acts as an consumer and provider with different interaction types (synchronous and message based), can we use the same name for all these interactions OR do we need to specifiy different names.. any thoughtBDCT does not support async, it only supports HTTP APIs
Matt (pactflow.io / pact-js / pact-go)
Jegadeesan Ponnusamy
07/04/2023, 3:58 PMMatt (pactflow.io / pact-js / pact-go)
Jegadeesan Ponnusamy
07/04/2023, 11:13 PMMatt (pactflow.io / pact-js / pact-go)
i.e. For BDCT, if microservice A acts as a provider (using BDCT) and also consumer of Microservice B, then do I need to use different names?You shouldn’t need to, no
Jegadeesan Ponnusamy
07/18/2023, 3:49 PMMatt (pactflow.io / pact-js / pact-go)
1. When I use the same pacticipant name “catalog-api”, the message based interactions are automatically getting verified based on the OAS document published as part of BDCT. But I was expecting that the message based interactions shouldnt be verified against OAS contract and wait until I run the Provider verifier tests for “catalog-api” events.
Yes this is tricky. the BDCT verification ignores non-HTTP based interactions so it will be “green” even though the messages aren’t included. This is because BDCT workflows need not have a Pact verification step.
Matt (pactflow.io / pact-js / pact-go)
Jegadeesan Ponnusamy
07/19/2023, 1:21 AMMatt (pactflow.io / pact-js / pact-go)
1. To work around the issue#1, I published the consumer contracts with a different pacticipant name for “catalog-api” i.e. “catalog”. I couldnt include 2 different events (i.e. ServiceCreate & ServiceDelete) in the same consumer contract and run the Provider verifications tests. The tests are failing with the generic error message “Pact net verification failed”. But when I include only one event type in the contract, the provider tests are running successfully without any issues.
I’m not sure what the problem is from this description. It should work. So it’s either: 1. A bug in your setup 2. A bug in Pact .NET To understand what the problem is, we’d need to a repro and a bug report on GitHub please
Matt (pactflow.io / pact-js / pact-go)
I will try creating a support request for further tracking on the issue# 1You could consider raising a feature request. I also will add it on our internal insights board for consideration