pact_broker icon indicating copy to clipboard operation
pact_broker copied to clipboard

You cannot create a pact for an integration that contains both messages and interactions

Open jameshalsall opened this issue 4 years ago • 1 comments

Pre issue-raising checklist

I have already (please mark the applicable with an x):

  • [x] Upgraded to the latest Pact Broker OR
  • [ ] Checked the CHANGELOG to see if the issue I am about to raise has been fixed
  • [ ] Created an executable example that demonstrates the issue using either a:
    • Dockerfile
    • Git repository with a Travis or Appveyor (or similar) build

Software versions

  • pactflow.io

Expected behaviour

When I publish a pact file that contains both "interactions" and "messages" keys, describing both HTTP and async communication, I expect both of these to be visible in the pact details page in the broker.

Actual behaviour

Instead, I can only see the messages in the pact details page.

Steps to reproduce

Define an integration that has both HTTP (sync) and messages (async) communication, publish it to the broker.

Relevant log files

N/A

jameshalsall avatar Sep 21 '20 08:09 jameshalsall

It's actually that the message contracts have no UI for them.

Also, defining a pact with both interactions and messages is not supported by any pact library yet. The feature is being discussed here https://github.com/pact-foundation/pact-specification/issues/79

bethesque avatar Sep 21 '20 22:09 bethesque