projects
/
demos
/
example-siren
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed an issue with the matching of the URIs for `actions`
[demos/example-siren]
/
spring-consumer
/
target
/
pacts
/
SpringConsumer-SirenOrderProvider.json
diff --git
a/spring-consumer/target/pacts/SpringConsumer-SirenOrderProvider.json
b/spring-consumer/target/pacts/SpringConsumer-SirenOrderProvider.json
index
d4dbfff
..
a8f8b03
100644
(file)
--- a/
spring-consumer/target/pacts/SpringConsumer-SirenOrderProvider.json
+++ b/
spring-consumer/target/pacts/SpringConsumer-SirenOrderProvider.json
@@
-3,6
+3,27
@@
"name": "SpringConsumer"
},
"interactions": [
"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": {
{
"description": "get all orders",
"request": {
@@
-65,12
+86,12
@@
},
"$.entities[*][0].href": {
"example": "http://localhost:8080/orders/1234",
},
"$.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",
"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": {
"type": "MockServerURL"
},
"$.links[0].href": {
@@
-103,7
+124,7
@@
"generators": {
"$.href": {
"example": "http://localhost:8080/orders/1234",
"generators": {
"$.href": {
"example": "http://localhost:8080/orders/1234",
- "regex": ".*\\/(\\Qorders\\E\\/\\
Q1234\\E
)$",
+ "regex": ".*\\/(\\Qorders\\E\\/\\
d+
)$",
"type": "MockServerURL"
}
},
"type": "MockServerURL"
}
},
@@
-114,23
+135,7
@@
"matchers": [
{
"match": "regex",
"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",
"generators": {
"$.href": {
"example": "http://localhost:8080/orders/1234",
- "regex": ".*\\/(\\Qorders\\E\\/\\
Q1234\\E
)$",
+ "regex": ".*\\/(\\Qorders\\E\\/\\
d+
)$",
"type": "MockServerURL"
}
},
"type": "MockServerURL"
}
},
@@
-151,23
+156,7
@@
"matchers": [
{
"match": "regex",
"matchers": [
{
"match": "regex",
- "regex": ".*\\/(\\Qorders\\E\\/\\Q1234\\E)$"
- }
- ]
- },
- "$.method": {
- "combine": "AND",
- "matchers": [
- {
- "match": "type"
- }
- ]
- },
- "$.name": {
- "combine": "AND",
- "matchers": [
- {
- "match": "type"
+ "regex": ".*\\/(\\Qorders\\E\\/\\d+)$"
}
]
}
}
]
}