-
Notifications
You must be signed in to change notification settings - Fork 138
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
Feature/add support and example messenger consumer using rust engine 380 #699
Commits on May 22, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 31bd379 - Browse repository at this point
Copy the full SHA 31bd379View commit details -
created MessagePact, cleaned up the verify method to use interaction …
…iterator, other small tweaks
Configuration menu - View commit details
-
Copy full SHA for c6dd880 - Browse repository at this point
Copy the full SHA c6dd880View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2891e4a - Browse repository at this point
Copy the full SHA 2891e4aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 76e9ff2 - Browse repository at this point
Copy the full SHA 76e9ff2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1e62a37 - Browse repository at this point
Copy the full SHA 1e62a37View commit details -
Configuration menu - View commit details
-
Copy full SHA for d0daa48 - Browse repository at this point
Copy the full SHA d0daa48View commit details
Commits on May 23, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 3d7dc66 - Browse repository at this point
Copy the full SHA 3d7dc66View commit details
Commits on May 28, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 49f06ee - Browse repository at this point
Copy the full SHA 49f06eeView commit details
Commits on May 31, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 2e460f7 - Browse repository at this point
Copy the full SHA 2e460f7View commit details
Commits on Jun 5, 2024
-
Configuration menu - View commit details
-
Copy full SHA for 1645640 - Browse repository at this point
Copy the full SHA 1645640View commit details -
Configuration menu - View commit details
-
Copy full SHA for deec315 - Browse repository at this point
Copy the full SHA deec315View commit details
Commits on Jun 6, 2024
-
chore(examples): ensure docker compose is started
Ensure that the Postgres image is fully up and running before launching the broker. This is unlikely to be an issue, but there's hardly any impact to adding this. Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9db0021 - Browse repository at this point
Copy the full SHA 9db0021View commit details -
chore(examples): wait for servers to start
In some circumstances, the test will try and connect to the FastAPI/Flask server before the server has had a chance to be fully initialised. As these are very lightweight servers, a simple second wait after the process is spawned should suffice. Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9aef6b4 - Browse repository at this point
Copy the full SHA 9aef6b4View commit details -
docs(examples): explain the purpose for fs class
As the examples are meant to be pedagogical, the docstrings have been expanded to explain _why_ there is a Filesystem class which only raises `NotImplementedError`. Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dbcfe80 - Browse repository at this point
Copy the full SHA dbcfe80View commit details -
chore(examples): remove redundant v3 in filename
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 713e59d - Browse repository at this point
Copy the full SHA 713e59dView commit details -
fix(examples): typing annotations
There were a few minor issues with the typing annotations: - `Callable` takes two arguments: 1. A list of types for the arguments of the function 2. A single type for the function's return - Prefer the use of the (more succinct) `|` instead of `Union[...]` Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4070ecd - Browse repository at this point
Copy the full SHA 4070ecdView commit details -
chore(examples): silence deprecation warnings
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cef8f21 - Browse repository at this point
Copy the full SHA cef8f21View commit details -
refactor(v3): rename AsyncMessagePactResult to AsyncInteractionResult
As the result is from a single asynchronous message interaction, it seemed like a more appropriate name. As part of the refactor, the declaration of the class has been moved and some minor refactoring took place too. Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0f76c5f - Browse repository at this point
Copy the full SHA 0f76c5fView commit details -
refactor(v3): merge Pact classes
From Pact V4, it is possible for a single Pact to mix different interaction types; that is, to combine sync/async messages, and HTTP interactions. As such, I think it is best to keep a single `Pact` class. Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 57d1a07 - Browse repository at this point
Copy the full SHA 57d1a07View commit details -
chore(v3): remove _pact_handle as it is never used
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7bfa7b8 - Browse repository at this point
Copy the full SHA 7bfa7b8View commit details -
docs(v3): add some clarity about interaction parts
Especially in light of the addition of asynchronous messages which only have one part. Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 07d413b - Browse repository at this point
Copy the full SHA 07d413bView commit details -
docs(ffi): remove unnecessary safety message
The safety concern is handled by the use of `OwnedString`. Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a972986 - Browse repository at this point
Copy the full SHA a972986View commit details -
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 941f123 - Browse repository at this point
Copy the full SHA 941f123View commit details -
chore(v3): minor refactor of with_contents
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7258455 - Browse repository at this point
Copy the full SHA 7258455View commit details -
chore(v3): remove public reify
I doubt this will be useful to end-users. Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dd4af8a - Browse repository at this point
Copy the full SHA dd4af8aView commit details -
chore(v3): use with_metadata_v2
also remove the deprecated `message_with_metadata` function from the FFI Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 8f0815d - Browse repository at this point
Copy the full SHA 8f0815dView commit details -
chore(v3): publicly export Pact and Verifier
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for f79a20d - Browse repository at this point
Copy the full SHA f79a20dView commit details
Commits on Jun 7, 2024
-
chore(ffi): minor type/style fixes
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9326a90 - Browse repository at this point
Copy the full SHA 9326a90View commit details
Commits on Jun 11, 2024
-
Configuration menu - View commit details
-
Copy full SHA for f777d0c - Browse repository at this point
Copy the full SHA f777d0cView commit details -
Configuration menu - View commit details
-
Copy full SHA for ed26782 - Browse repository at this point
Copy the full SHA ed26782View commit details -
chore(ffi): remove message handle
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 4e13c37 - Browse repository at this point
Copy the full SHA 4e13c37View commit details
Commits on Jun 12, 2024
-
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 1b14be1 - Browse repository at this point
Copy the full SHA 1b14be1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 73f82fc - Browse repository at this point
Copy the full SHA 73f82fcView commit details -
The functionality is covered by the existing `with_body` Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 980565b - Browse repository at this point
Copy the full SHA 980565bView commit details -
chore: remove interaction verify
Interaction should be done at the Pact level, not at each Interaction. Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 55b42ea - Browse repository at this point
Copy the full SHA 55b42eaView commit details -
feat(ffi): use the new with_metadata
We prefer the use of `InteractionHandle` over `MessageHandle`. The functionality to add metadata has been added to the FFI, so this function can make use of this now. Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 2d92f86 - Browse repository at this point
Copy the full SHA 2d92f86View commit details
Commits on Jun 16, 2024
-
chore(ffi): add enum type alias
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for e56f018 - Browse repository at this point
Copy the full SHA e56f018View commit details -
Large commit which implements quite a large number of FFI functions. Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for aafeeda - Browse repository at this point
Copy the full SHA aafeedaView commit details -
feat(v3): implement interactions iterator
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 466e107 - Browse repository at this point
Copy the full SHA 466e107View commit details -
chore(v3): remove messages iterator
The `interactions` method provides the necessary functionality Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ab3c02b - Browse repository at this point
Copy the full SHA ab3c02bView commit details -
feat(v3): add verify method for pact messages
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5aaf1a7 - Browse repository at this point
Copy the full SHA 5aaf1a7View commit details -
chore(v3): remove get_provider_states
The provider states don't make sense for pacts, as they are associated with the individual interactions, as opposed to the pact itself. Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d64abb0 - Browse repository at this point
Copy the full SHA d64abb0View commit details -
fix(v3): various typing issues
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7ab24c8 - Browse repository at this point
Copy the full SHA 7ab24c8View commit details
Commits on Jun 18, 2024
-
feat: optional freeing of memory
Objects generated by the FFI may sometimes be owned by another object, in which case deleting them when they are out of scope in Python is invalid. The instantiators for these classes have been adjusted to take an optional `owned` keyword argument. If `owned` is `True`, then the `__del__` function for the class will do nothing. Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for ee99af7 - Browse repository at this point
Copy the full SHA ee99af7View commit details -
chore(ffi): minor fixes and implementations
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d1c0d1b - Browse repository at this point
Copy the full SHA d1c0d1bView commit details -
fix(ffi): ensure parent outline dependent objects
The use of `yield from` may sometimes result in the parent instance being dropped, which then invalidates the underlying iterator. Adding a final `return` statement (even if it does nothing) ensures that Python finishes the `yield from` statement first before the function is finished. Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5107a59 - Browse repository at this point
Copy the full SHA 5107a59View commit details -
feat(ffi): add
generate_contents
methodsThe former `get_contents` FFI return the raw body of the interaction, including matching rules and generators, which aren't very useful when verifying a message consume. The new methods processes the payload, replacing the matching rules and generators with values as would be actually expected by the consumer. Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for d118431 - Browse repository at this point
Copy the full SHA d118431View commit details -
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for db2d343 - Browse repository at this point
Copy the full SHA db2d343View commit details -
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for aeb2e95 - Browse repository at this point
Copy the full SHA aeb2e95View commit details
Commits on Jun 19, 2024
-
feat(v3): add new exception types
The exceptions are to be returned during verification. Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dccb863 - Browse repository at this point
Copy the full SHA dccb863View commit details -
fix(v3): interactions iterator
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for c3ddcd5 - Browse repository at this point
Copy the full SHA c3ddcd5View commit details -
chore(test): use named tuple more broadly
The named tuple provides an improved experience for developers. Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 6f0eff6 - Browse repository at this point
Copy the full SHA 6f0eff6View commit details -
refactor(test): v3 message consumer
With the other changes in the FFI and Pact Python library, a significant refactor of the tests was introduced. A few steps were combined, though by and large the functionality remains the same. Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for cf6cfd7 - Browse repository at this point
Copy the full SHA cf6cfd7View commit details -
refactor(examples): v3 message consumer
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a9fa8f0 - Browse repository at this point
Copy the full SHA a9fa8f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 67f5322 - Browse repository at this point
Copy the full SHA 67f5322View commit details -
feat(ffi): upgrade ffi library to v0.4.21
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 654c904 - Browse repository at this point
Copy the full SHA 654c904View commit details -
Now that the FFI library supports Windows ARM, we can add it to the list. Also a minor update to make use of the ARM runners when building the macOS ARM wheel. Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 999fb45 - Browse repository at this point
Copy the full SHA 999fb45View commit details -
chore(v3): remove defunct test
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for aed2e09 - Browse repository at this point
Copy the full SHA aed2e09View commit details
Commits on Jun 20, 2024
-
refactor(tests): minor drying message consumer tests
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 31b9ed4 - Browse repository at this point
Copy the full SHA 31b9ed4View commit details
Commits on Jun 21, 2024
-
Signed-off-by: JP-Ellis <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for dd14a47 - Browse repository at this point
Copy the full SHA dd14a47View commit details -
Configuration menu - View commit details
-
Copy full SHA for 9e210f6 - Browse repository at this point
Copy the full SHA 9e210f6View commit details