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=953d4e6792a35f7aafebd12078deef261f464f55;hpb=d553ddf4d0da98b4999f609422e87fe9881148b1;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 953d4e6..aa58b36 100644 --- a/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json +++ b/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json @@ -11,27 +11,23 @@ }, "response": { "body": { - "age": 100, - "happy": true, - "hexCode": "1234a", - "id": 1234567890, - "localAddress": "127.0.0.1", - "name": "string" + "actions": [ + { + "href": "http://localhost:8080/RegexpMatcher(regex=\\d+, value=1234)", + "method": "PUT", + "name": "update" + } + ], + "entities": [ + + ] }, "generators": { "body": { - "$.hexCode": { - "digits": 10, - "type": "RandomHexadecimal" - }, - "$.id": { - "max": 2147483647, - "min": 0, - "type": "RandomInt" - }, - "$.name": { - "size": 20, - "type": "RandomString" + "$[0].href": { + "example": "http://localhost:8080/RegexpMatcher(regex=\\d+, value=1234)", + "regex": ".*\\/(\\QRegexpMatcher(regex=\\d+, value=1234)\\E)$", + "type": "MockServerURL" } } }, @@ -40,45 +36,50 @@ }, "matchingRules": { "body": { - "$.happy": { - "combine": "AND", - "matchers": [ - { - "match": "type" - } - ] - }, - "$.hexCode": { - "combine": "AND", - "matchers": [ - { - "match": "regex", - "regex": "[0-9a-fA-F]+" - } - ] - }, - "$.id": { - "combine": "AND", - "matchers": [ - { - "match": "type" - } - ] - }, - "$.localAddress": { + "$.actions": { "combine": "AND", "matchers": [ { - "match": "regex", - "regex": "(\\d{1,3}\\.)+\\d{1,3}" - } - ] - }, - "$.name": { - "combine": "AND", - "matchers": [ - { - "match": "type" + "match": "arrayContains", + "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": [ + { + "match": "type" + } + ] + } + } + } + ] } ] } @@ -86,19 +87,6 @@ }, "status": 200 } - }, - { - "description": "get root", - "request": { - "method": "GET", - "path": "/" - }, - "response": { - "headers": { - "Content-Type": "application/vnd.siren+json" - }, - "status": 200 - } } ], "metadata": {