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

V4: Tracking issue for support of synchronous messages #86

Closed
uglyog opened this issue Apr 25, 2021 · 6 comments
Closed

V4: Tracking issue for support of synchronous messages #86

uglyog opened this issue Apr 25, 2021 · 6 comments

Comments

@uglyog
Copy link
Member

uglyog commented Apr 25, 2021

Synchronous messages support a scheme were a request message is sent (via some messaging mechanism) and then a number response messages are expected back (could be from a different messaging mechanism, like a request is sent to one queue and the response comes back from another).

@uglyog uglyog added the v4 label Apr 25, 2021
@uglyog uglyog changed the title V4: Tracking issuer for support of synchronous messages V4: Tracking issue for support of synchronous messages Apr 25, 2021
@uglyog uglyog mentioned this issue Apr 25, 2021
@uglyog
Copy link
Member Author

uglyog commented Apr 25, 2021

Initial models to support this have been added to Pact-Rust. Sample JSON file format:

{
  "consumer": {
    "name": "consumer"
  },
  "interactions": [
    {
      "description": "Test Interaction",
      "key": "a0395223ce6c542b",
      "providerStates": [
        {
          "name": "Good state to be in"
        }
      ],
      "request": {
        "description": "Request Message",
        "key": "eb97728e3ed8475f",
        "contents": {
           "contentType": "application/json",
           "encoded": false,
           "content": {
              "a": "1234-1234"
           }
       },
        "type": "Asynchronous/Messages"
      },
      "response": [
        {
          "description": "Message Response",
          "key": "eb97728e3ed8475f",
           "contents": {
             "contentType": "application/json",
             "encoded": false,
             "content": {
                "a": "1234-1234"
             }
         },
          "type": "Asynchronous/Messages"
        }
      ],
      "type": "Synchronous/Messages"
    }
  ],
  "metadata": {
    "pactSpecification": {
      "version": "4.0"
    }
  },
  "provider": {
    "name": "write_pact_test_provider"
  }
}

@bethesque
Copy link
Member

What does the key do?

@uglyog
Copy link
Member Author

uglyog commented Apr 25, 2021

What does the key do?

#72

@bethesque
Copy link
Member

Sweet!

@mefellows
Copy link
Member

I can't see this documented here https://github.com/pact-foundation/pact-specification/tree/version-4 Ron, should it be there now also?

@uglyog
Copy link
Member Author

uglyog commented Jan 10, 2022

Now documented in the main readme

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

No branches or pull requests

3 participants