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
1b63847
..
a325ecb
100644
(file)
--- a/
spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json
+++ b/
spring-consumer/target/pacts/SpringConsumer-Siren Order Provider.json
@@
-13,15
+13,18
@@
"body": {
"actions": [
{
"body": {
"actions": [
{
- "foo": "string"
+ "href": "http://localhost:8080/RegexpMatcher(regex=\\d+, value=1234)",
+ "method": "PUT",
+ "name": "update"
}
]
},
"generators": {
"body": {
}
]
},
"generators": {
"body": {
- "$[0].foo": {
- "size": 20,
- "type": "RandomString"
+ "$[0].href": {
+ "example": "http://localhost:8080/RegexpMatcher(regex=\\d+, value=1234)",
+ "regex": ".*\\/(\\QRegexpMatcher(regex=\\d+, value=1234)\\E)$",
+ "type": "MockServerURL"
}
}
},
}
}
},
@@
-38,14
+41,32
@@
"variants": [
{
"generators": {
"variants": [
{
"generators": {
- "$.foo": {
- "size": 20,
- "type": "RandomString"
+ "$.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": {
- "$.foo": {
+ "$.href": {
+ "combine": "AND",
+ "matchers": [
+ {
+ "match": "regex",
+ "regex": ".*\\/(\\QRegexpMatcher(regex=\\d+, value=1234)\\E)$"
+ }
+ ]
+ },
+ "$.method": {
+ "combine": "AND",
+ "matchers": [
+ {
+ "match": "type"
+ }
+ ]
+ },
+ "$.name": {
"combine": "AND",
"matchers": [
{
"combine": "AND",
"matchers": [
{