projects
/
demos
/
example-siren
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
WIP
[demos/example-siren]
/
spring-consumer
/
target
/
pacts
/
SpringConsumer-Siren Order Provider.json
diff --git
a/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json
b/spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json
index
9356980
..
aa58b36
100644
(file)
--- a/
spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json
+++ b/
spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json
@@
-13,11
+13,24
@@
"body": {
"actions": [
{
"body": {
"actions": [
{
+ "href": "http://localhost:8080/RegexpMatcher(regex=\\d+, value=1234)",
"method": "PUT",
"name": "update"
}
"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"
},
"headers": {
"Content-Type": "application/vnd.siren+json"
},
@@
-31,10
+44,23
@@
"variants": [
{
"generators": {
"variants": [
{
"generators": {
-
+ "$.href": {
+ "example": "http://localhost:8080/RegexpMatcher(regex=\\d+, value=1234)",
+ "regex": ".*\\/(\\QRegexpMatcher(regex=\\d+, value=1234)\\E)$",
+ "type": "MockServerURL"
+ }
},
"index": 0,
"rules": {
},
"index": 0,
"rules": {
+ "$.href": {
+ "combine": "AND",
+ "matchers": [
+ {
+ "match": "regex",
+ "regex": ".*\\/(\\QRegexpMatcher(regex=\\d+, value=1234)\\E)$"
+ }
+ ]
+ },
"$.method": {
"combine": "AND",
"matchers": [
"$.method": {
"combine": "AND",
"matchers": [
@@
-61,19
+87,6
@@
},
"status": 200
}
},
"status": 200
}
- },
- {
- "description": "get root",
- "request": {
- "method": "GET",
- "path": "/"
- },
- "response": {
- "headers": {
- "Content-Type": "application/vnd.siren+json"
- },
- "status": 200
- }
}
],
"metadata": {
}
],
"metadata": {