X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=spring-consumer%2Ftarget%2Fpacts%2FSpringConsumer-Siren%20Order%20Provider.json;h=dbc0978b3dee0dde76ad3a07d1cd86fc5da1017b;hb=49e45926969ea3a8ab118738a65bd2f75210db84;hp=7a05c082e5b55d636c24b19e26f688d8c32584ac;hpb=0957e8787f764d1d8d58aa391641055ad9c47472;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 7a05c08..dbc0978 100644 --- a/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json +++ b/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json @@ -13,9 +13,14 @@ "body": { "actions": [ { - "href": "http://localhost:8080/RegexpMatcher(regex=\\d+, value=1234)", + "href": "http://localhost:8080/1234", "method": "PUT", "name": "update" + }, + { + "href": "http://localhost:8080/1234", + "method": "DELETE", + "name": "delete" } ], "entities": [ @@ -25,8 +30,13 @@ "generators": { "body": { "$[0].href": { - "example": "http://localhost:8080/RegexpMatcher(regex=\\d+, value=1234)", - "regex": ".*\\/(\\QRegexpMatcher(regex=\\d+, value=1234)\\E)$", + "example": "http://localhost:8080/1234", + "regex": ".*\\/(\\Q1234\\E)$", + "type": "MockServerURL" + }, + "$[1].href": { + "example": "http://localhost:8080/1234", + "regex": ".*\\/(\\Q1234\\E)$", "type": "MockServerURL" } } @@ -45,8 +55,8 @@ { "generators": { "$.href": { - "example": "http://localhost:8080/RegexpMatcher(regex=\\d+, value=1234)", - "regex": ".*\\/(\\QRegexpMatcher(regex=\\d+, value=1234)\\E)$", + "example": "http://localhost:8080/1234", + "regex": ".*\\/(\\Q1234\\E)$", "type": "MockServerURL" } }, @@ -57,7 +67,44 @@ "matchers": [ { "match": "regex", - "regex": ".*\\/(\\QRegexpMatcher(regex=\\d+, value=1234)\\E)$" + "regex": ".*\\/(\\Q1234\\E)$" + } + ] + }, + "$.method": { + "combine": "AND", + "matchers": [ + { + "match": "type" + } + ] + }, + "$.name": { + "combine": "AND", + "matchers": [ + { + "match": "type" + } + ] + } + } + }, + { + "generators": { + "$.href": { + "example": "http://localhost:8080/1234", + "regex": ".*\\/(\\Q1234\\E)$", + "type": "MockServerURL" + } + }, + "index": 1, + "rules": { + "$.href": { + "combine": "AND", + "matchers": [ + { + "match": "regex", + "regex": ".*\\/(\\Q1234\\E)$" } ] }, @@ -87,19 +134,6 @@ }, "status": 200 } - }, - { - "description": "get root", - "request": { - "method": "GET", - "path": "/" - }, - "response": { - "headers": { - "Content-Type": "application/vnd.siren+json" - }, - "status": 200 - } } ], "metadata": {