Repository navigation
Conversation
This enables creating a nicer API to expose publicly for use by plugin wrappers. See: pact-foundation#492
…ilder Setting the plugin contents completes a synchronous plugin interaction, so WithContent now returns void instead of the same builder. The plugin splits one contents document into the request and its responses itself: a second call would replace the request but append another response, which is why the builder no longer allows it. Provider states stay chainable via Given. Adds unit tests for the plugin request and pact builders and a docs page for the raw plugin API, linked from the README. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Add a public HTTP plugin pact/request/response API on top of the synchronous plugin prerequisite. Load content plugins through the existing factory, create HTTP rather than synchronous-message interactions, and route plugin contents independently to request and response parts. Reuse HTTP drivers for methods, paths, headers, queries and status; retain mock-server verification, logging, pact writing and plugin cleanup inside PactNet. Keep native handles and drivers internal. Reject repeated contents and response-stage reuse, validate HTTP status, and preserve header/query indexing. Add focused tests and HTTP plugin guidance. Asynchronous binary plugin message reification remains a separate contribution. Validation: 60 affected builder tests passed, including existing synchronous and HTTP behavior; the external Avro example passed native request/response and provider/mismatch verification with hominux avro 0.1.3 and FFI 0.4.27.
…rotobuf plugin 0.8.0 Brings in 92748436 as requested in the PR pact-foundation#551 review. - pact-ffi 0.4.27 -> 0.5.10; a request header configured with multiple values is now matched as one joined value, so the tests and the upgrading-to-5 doc reflect that - pact fixtures regenerated (pactRust metadata, merged X-Request header) - grpc sample pact regenerated with pact-protobuf-plugin 0.8.0 - grpc sample and plugin docs now request plugin 0.8.0 Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Replace build/install-plugins.sh with the pact-foundation/pact-cli action and `pact plugin install`, as suggested in review. The plugin is still pre-installed before the tests run so parallel test projects do not race each other auto-downloading it. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
MockServerLogs() drains the process-wide FFI log buffer, which other test classes running in parallel also drain on every Verify, so the assertion that it is non-empty fails intermittently. The logs are still written to the test output. Option 1 from the issue as a stop-gap; the per-server log fix stays open. Refs pact-foundation#568 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Updates the underlying Rust core from libpact_ffi 0.4.27 to 0.5.13, which moves the mock server to pact_mock_server v2 and brings a suite of improvements and bug fixes, including repeated custom headers continuing to match (pact-foundation/pact-reference#602). - Download pact_ffi from the cargo-dist `pact_ffi-v<version>` release: per-target .tar.xz/.zip archives, sha256 verified, with the shared library extracted to the same build/<os>/<arch>/ paths. - Refresh pact metadata to ffi 0.5.13 / models 1.3.18.
…SDK 11 The ubuntu-24.04-arm runner image now ships .NET SDK 11.0.100, which is picked over the setup-dotnet 8.0.x install. SDK 11 generates hot reload browser-tools static web assets for Web SDK projects in Debug, and the build then fails with "scoped css bundles do not have matching endpoints".
…SDK 11 The ubuntu-24.04-arm runner image now ships .NET SDK 11.0.100, which is picked over the setup-dotnet 8.0.x install. SDK 11 generates hot reload browser-tools static web assets for Web SDK projects in Debug, and the build then fails with "scoped css bundles do not have matching endpoints".
…fault The linux_arm64 protoc bundled with Grpc.Tools 2.71.0/2.72.0 (and 2.76.0) exits with code 139 when invoked by MSBuild, failing the build on ubuntu-24.04-arm. Pin Grpc.Tools 2.85.0 explicitly in both gRPC samples (GrpcGreeter previously pulled 2.71.0 transitively via Grpc.AspNetCore). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GrpcGreeter.Tests' two verifier tests auto-installed the plugin
concurrently and raced on the plugin directory ("Failed to creating
plugins directory" / "Was not able to start plugin process").
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings in the upstream review commits: pact-cli plugin pre-install (protobuf 0.8.0), arm64 protoc, Grpc 2.84 packages, FFI 0.5.10 with regenerated fixtures, and the flaky FFI log assertion removal. Replaces our own build/install-plugins.sh with the pact-cli step and keeps Grpc.Tools at 2.85.0 for linux-arm64. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Moves avro-http to FFI 0.5.13 to match avro-async. Restores the repeated-header PactExtensionsTests (fixed in 0.5.13) and updates the fixtures and sample pacts with the 0.5.13 metadata, including the mockserver version written by the mock server. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.