X-Git-Url: http://juplo.de/gitweb/?a=blobdiff_plain;f=spring-consumer%2Ftarget%2Fpacts%2FSpringConsumer-Siren%20Order%20Provider.json;h=aa58b365927e5271a9fbf3cf4d4dc019f6fb4119;hb=183534d582820e19c578cc03c3b60b37218b8554;hp=d14b5d0ddebdc6d67a80e0ca49856ff68447fe02;hpb=bbff8e069b37597c062a39384c18f326ee2d0a7c;p=demos%2Fexample-siren diff --git a/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json b/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json index d14b5d0..aa58b36 100644 --- a/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json +++ b/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json @@ -12,9 +12,25 @@ "response": { "body": { "actions": [ - "foo" + { + "href": "http://localhost:8080/RegexpMatcher(regex=\\d+, value=1234)", + "method": "PUT", + "name": "update" + } + ], + "entities": [ + ] }, + "generators": { + "body": { + "$[0].href": { + "example": "http://localhost:8080/RegexpMatcher(regex=\\d+, value=1234)", + "regex": ".*\\/(\\QRegexpMatcher(regex=\\d+, value=1234)\\E)$", + "type": "MockServerURL" + } + } + }, "headers": { "Content-Type": "application/vnd.siren+json" }, @@ -28,11 +44,32 @@ "variants": [ { "generators": { - + "$.href": { + "example": "http://localhost:8080/RegexpMatcher(regex=\\d+, value=1234)", + "regex": ".*\\/(\\QRegexpMatcher(regex=\\d+, value=1234)\\E)$", + "type": "MockServerURL" + } }, "index": 0, "rules": { - "$": { + "$.href": { + "combine": "AND", + "matchers": [ + { + "match": "regex", + "regex": ".*\\/(\\QRegexpMatcher(regex=\\d+, value=1234)\\E)$" + } + ] + }, + "$.method": { + "combine": "AND", + "matchers": [ + { + "match": "type" + } + ] + }, + "$.name": { "combine": "AND", "matchers": [ { @@ -50,19 +87,6 @@ }, "status": 200 } - }, - { - "description": "get root", - "request": { - "method": "GET", - "path": "/" - }, - "response": { - "headers": { - "Content-Type": "application/vnd.siren+json" - }, - "status": 200 - } } ], "metadata": {