From: Kai Moritz Date: Sat, 21 May 2022 15:40:30 +0000 (+0200) Subject: WIP X-Git-Tag: wip-umbau-array-contains~8 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=3586a87b969f61e7d08b4a27e013295040516af8;p=demos%2Fexample-siren WIP --- 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": [