Plugin pacts: gRPC and GraphQL
Hosted verification now replays two kinds of pact it used to list as unsupported. A gRPC call
that the Pact protobuf plugin recorded is replayed against a grpc or connect verification
target. A GraphQL operation recorded as an HTTP interaction is replayed as GraphQL. See
gRPC and GraphQL pacts.
- gRPC from the protobuf plugin. Apiome reads each call through the
.protodefinitions the plugin files in the pact, then compares the reply's status and message with what the consumer recorded, under the pact's matching rules. A mismatch names the field, such as/totalCents. - The same endpoint.
POST …/pact-verifier/pacts/provider/<provider>/verifynow takes agrpcorconnecttarget as well as anhttpone, and the response says which protocol it used. - GraphQL by operation type. A GraphQL
queryis no longer held back as a mutatingPOST; amutationstill needs the mutating opt-in. A reply witherrorsthe consumer did not record fails. - Nothing passes silently. A streaming method, a subscription, a plugin other than protobuf,
or a call whose definitions are missing is listed as unsupported with the reason. A mixed pact
run on one target is
incomplete, never green. Mapping GraphQL selections onto consumer contracts comes with GraphQL consumer contracts.
