From 81e8916860871cdea6da639f2d9dd47b1e3005a1 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Sat, 21 May 2022 17:39:41 +0200 Subject: [PATCH] WIP --- .../java/de/juplo/demos/pact/ContractTest.java | 2 +- .../SpringConsumer-Siren Order Provider.json | 17 +++-------------- 2 files changed, 4 insertions(+), 15 deletions(-) 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 0e43145..65ff03b 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 @@ -36,7 +36,7 @@ public class ContractTest { actions.object(object -> { - object.stringType("foo"); + object.stringType("name","update"); }); }); }).build()) diff --git a/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json b/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json index 1b63847..d1c58a6 100644 --- a/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json +++ b/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json @@ -13,18 +13,10 @@ "body": { "actions": [ { - "foo": "string" + "name": "update" } ] }, - "generators": { - "body": { - "$[0].foo": { - "size": 20, - "type": "RandomString" - } - } - }, "headers": { "Content-Type": "application/vnd.siren+json" }, @@ -38,14 +30,11 @@ "variants": [ { "generators": { - "$.foo": { - "size": 20, - "type": "RandomString" - } + }, "index": 0, "rules": { - "$.foo": { + "$.name": { "combine": "AND", "matchers": [ { -- 2.20.1