pact-reference
pact-reference copied to clipboard
Reference implementations for the pact specifications
Current Hyper is locked to 0.14.x, Rustls to 0.24.x and tokio-rustls to 0.24.x. To upgrade the TLS crates seems to need Hyper to be upgraded to 1.0+. The current mock...
Given the pact JSON with `term` matcher on `Content-Type` header: ```json "response": { "status": 200, "headers": { "Content-Type": "text/plain" }, "body": "fake-header.fake-token.fake-signature", "matchingRules": { "$.headers.Content-Type": { "match": "regex", "regex": "^text\\/plain"...
The pact-stub-server has a `--provider-state-header-name` that allows for selecting a better matching interaction based on a header containing the requested provider state. The pact-verifier-cli (rust implementation) is missing this option....
Publish pre-releases from master builds / Trigger dependant client libraries workflows to raise PR's
The current ecosystem is large and we are currently growing the number of client libraries consuming the pact ffi library. In some cases, the test suites of the consuming the...
See https://github.com/pact-foundation/pact-net/issues/488. I'm wondering if this ever worked. Given that we use [`rustls-tls-native-roots`](https://github.com/pact-foundation/pact-reference/blob/master/rust/pact_ffi/Cargo.toml#L58), the `reqwest` library seems to [only support](https://github.com/seanmonstar/reqwest/blob/e639bdc1264c266a84dae3bae3193e07cae6861b/src/async_impl/client.rs#L1336) for other types: ```rust /// Controls the use of certificate...
**FFI Version**: 0.4.16 **Specification Version**: 4 I have a test in PactNet which is very simple, like this: ```csharp this.pact .UponReceiving("a request for an order with an unknown ID") .WithRequest(HttpMethod.Get,...
The verification results published from the Rust verifier are extremely streamlined, containing only the interaction ID, success boolean and any mismatches. This is easier to parse than the old verification...
If I create an interaction with a provider state parameter that I specify as a string, e.g. in PactNet: ```csharp this.pact .UponReceiving("a request for an order by ID") // 👇👇👇...
### Feature description We use the stub server extensively to provide frontend developers with good examples. A common use case is that APIs return a list of objects: ```json [...
We are using pact to test endpoints that return signed JWTs. As JWTs are not plain json we can't specify the structure of the data using `newJsonBody()` etc which makes...