X-Git-Url: https://juplo.de/gitweb/?a=blobdiff_plain;f=spring-consumer%2Ftarget%2Fpacts%2FSpringConsumer-SirenOrderProvider.json;h=a8f8b03d80852e55e0e79ed459465cabafc94694;hb=b7873cf81430e1c8aaefa9a32a04496d73cbf160;hp=d4dbfff91ffb3e8faddf920b6f6412faa85ccdfb;hpb=9e571f48beb035de3fd36a1f21a7958aace4d121;p=demos%2Fexample-siren diff --git a/spring-consumer/target/pacts/SpringConsumer-SirenOrderProvider.json b/spring-consumer/target/pacts/SpringConsumer-SirenOrderProvider.json index d4dbfff..a8f8b03 100644 --- a/spring-consumer/target/pacts/SpringConsumer-SirenOrderProvider.json +++ b/spring-consumer/target/pacts/SpringConsumer-SirenOrderProvider.json @@ -3,6 +3,27 @@ "name": "SpringConsumer" }, "interactions": [ + { + "description": "delete order", + "request": { + "matchingRules": { + "path": { + "combine": "AND", + "matchers": [ + { + "match": "regex", + "regex": "/orders/\\d+" + } + ] + } + }, + "method": "DELETE", + "path": "/orders/1234" + }, + "response": { + "status": 200 + } + }, { "description": "get all orders", "request": { @@ -65,12 +86,12 @@ }, "$.entities[*][0].href": { "example": "http://localhost:8080/orders/1234", - "regex": ".*\\/(\\Qorders\\E\\/\\Q1234\\E)$", + "regex": ".*\\/(\\Qorders\\E\\/\\d+)$", "type": "MockServerURL" }, "$.entities[*][1].href": { "example": "http://localhost:8080/orders/1234", - "regex": ".*\\/(\\Qorders\\E\\/\\Q1234\\E)$", + "regex": ".*\\/(\\Qorders\\E\\/\\d+)$", "type": "MockServerURL" }, "$.links[0].href": { @@ -103,7 +124,7 @@ "generators": { "$.href": { "example": "http://localhost:8080/orders/1234", - "regex": ".*\\/(\\Qorders\\E\\/\\Q1234\\E)$", + "regex": ".*\\/(\\Qorders\\E\\/\\d+)$", "type": "MockServerURL" } }, @@ -114,23 +135,7 @@ "matchers": [ { "match": "regex", - "regex": ".*\\/(\\Qorders\\E\\/\\Q1234\\E)$" - } - ] - }, - "$.method": { - "combine": "AND", - "matchers": [ - { - "match": "type" - } - ] - }, - "$.name": { - "combine": "AND", - "matchers": [ - { - "match": "type" + "regex": ".*\\/(\\Qorders\\E\\/\\d+)$" } ] } @@ -140,7 +145,7 @@ "generators": { "$.href": { "example": "http://localhost:8080/orders/1234", - "regex": ".*\\/(\\Qorders\\E\\/\\Q1234\\E)$", + "regex": ".*\\/(\\Qorders\\E\\/\\d+)$", "type": "MockServerURL" } }, @@ -151,23 +156,7 @@ "matchers": [ { "match": "regex", - "regex": ".*\\/(\\Qorders\\E\\/\\Q1234\\E)$" - } - ] - }, - "$.method": { - "combine": "AND", - "matchers": [ - { - "match": "type" - } - ] - }, - "$.name": { - "combine": "AND", - "matchers": [ - { - "match": "type" + "regex": ".*\\/(\\Qorders\\E\\/\\d+)$" } ] }