From 3586a87b969f61e7d08b4a27e013295040516af8 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 21 May 2022 17:40:30 +0200 Subject: [PATCH] WIP --- .../src/test/java/de/juplo/demos/pact/ContractTest.java | 1 + .../pacts/SpringConsumer-Siren Order Provider.json | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/spring-consumer/src/test/java/de/juplo/demos/pact/ContractTest.java b/spring-consumer/src/test/java/de/juplo/demos/pact/ContractTest.java index 65ff03b..9486001 100644 --- a/spring-consumer/src/test/java/de/juplo/demos/pact/ContractTest.java +++ b/spring-consumer/src/test/java/de/juplo/demos/pact/ContractTest.java @@ -37,6 +37,7 @@ public class ContractTest actions.object(object -> { object.stringType("name","update"); + object.stringType("method", "PUT"); }); }); }).build()) diff --git a/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json b/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json index d1c58a6..9356980 100644 --- a/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json +++ b/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json @@ -13,6 +13,7 @@ "body": { "actions": [ { + "method": "PUT", "name": "update" } ] @@ -34,6 +35,14 @@ }, "index": 0, "rules": { + "$.method": { + "combine": "AND", + "matchers": [ + { + "match": "type" + } + ] + }, "$.name": { "combine": "AND", "matchers": [ -- 2.20.1