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

Add MessagePact (Pact with Messages instead of Interactions) #74

Merged
merged 1 commit into from
Sep 10, 2020

Conversation

cstepanian
Copy link
Contributor

This adds an initial implementation of a Message Pact from the v3 spec.
MITRE plans to use this in the near future via FFI to support a basic Pact provider testing capability for message-based services written in C++.

This implementation is missing merge().
Since merge() is missing, no method is provided to write a MessagePact to disk and attempt to merge it.
Instead, overwrite_pact() is included, which just overwrites a file if it is present.
An additional merge_pact() method could be added later.

Notice

This software was produced for the U. S. Government under Contract No. FA8702-20-C-0001, and is subject to the Rights in Noncommercial Computer Software and Noncommercial Computer Software Documentation Clause DFARS 252.227-7014 (FEB 2014)

Approved for Public Release; Distribution Unlimited. Case Number 19-3203.

(c) 2020 The MITRE Corporation. All Rights Reserved.

This implementation is missing `merge()`.
Since `merge()` is missing, no method is provided to write a MessagePact
to disk and attempt to merge it.  Instead, `overwrite_pact()` is
included, which just overwrites a file if it is present.
An additional `merge_pact()` method could be added later.
@uglyog uglyog merged commit 0ce194e into pact-foundation:master Sep 10, 2020
@uglyog
Copy link
Member

uglyog commented Sep 10, 2020

Ah, the missing bit! Thanks!

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

Successfully merging this pull request may close these issues.

2 participants