Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating to newer version of velocity and wiremock. adding basic support
for query paramters in templates.
- Loading branch information
Showing
29 changed files
with
1,731 additions
and
1,129 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"requestAbsoluteUrl" : "$requestAbsoluteUrl", | ||
"requestBody" : $requestBody, | ||
"requestBodySomeKeyValue" : "$requestBody.someKey", | ||
"requestMethod" : "$requestMethod", | ||
"requestHeaderHost" : "$requestHeaderHost", | ||
"requestHeaderUserAgent" : "$requestHeaderUserAgent", | ||
"requestHeaderAcceptAccept" : "$requestHeaderAccept", | ||
"requestHeaderAcceptLanguage" : "$requestHeaderAcceptLanguage", | ||
"requestHeaderAcceptEncoding" : "$requestHeaderAcceptEncoding", | ||
"requestHeaderConnection" : "$requestHeaderConnection", | ||
#if($requestAbsoluteUrl == 'http://localhost:8089/my/resource') | ||
"customProp" : "customValue", | ||
"customProp2" : "customValue2", | ||
#else | ||
"customProp" : "customValue", | ||
#end | ||
"date" : "$date.getMonth()", | ||
"math" : "$math.floor(2.5)" | ||
} |
22 changes: 22 additions & 0 deletions
22
functional/__files/response-test-body-with-query-params.vm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"requestAbsoluteUrl" : "$requestAbsoluteUrl", | ||
"requestMethod" : "$requestMethod", | ||
"requestHeaderHost" : "$requestHeaderHost", | ||
"requestHeaderUserAgent" : "$requestHeaderUserAgent", | ||
"requestHeaderAcceptAccept" : "$requestHeaderAccept", | ||
"requestHeaderAcceptLanguage" : "$requestHeaderAcceptLanguage", | ||
"requestHeaderAcceptEncoding" : "$requestHeaderAcceptEncoding", | ||
"requestHeaderConnection" : "$requestHeaderConnection", | ||
#if($requestAbsoluteUrl == 'http://localhost:8089/my/resource') | ||
"customProp" : "customValue", | ||
"customProp2" : "customValue2", | ||
#else | ||
"customProp" : "customValue", | ||
#end | ||
"date" : "$date.getMonth()", | ||
"math" : "$math.floor(2.5)", | ||
"startDate1" : "$startDate1", | ||
"endDate1" : "$endDate1", | ||
"productCode1" : "$productcode1", | ||
"productCode2" : "$productcode2" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,18 @@ | ||
{ | ||
"requestAbsoluteUrl" : "$requestAbsoluteUrl", | ||
"requestBody" : "$requestBody", | ||
"requestMethod" : "$requestMethod", | ||
"requestHeaderHost" : "$requestHeaderHost", | ||
"requestHeaderUserAgent" : "$requestHeaderUserAgent", | ||
"requestHeaderAcceptAccept" : "$requestHeaderAccept", | ||
"requestHeaderAcceptLanguage" : "$requestHeaderAcceptLanguage", | ||
"requestHeaderAcceptEncoding" : "$requestHeaderAcceptEncoding", | ||
"requestHeaderConnection" : "$requestHeaderConnection", | ||
"date" : "$date", | ||
"math": "$math.round(22.2)", | ||
#if($requestAbsoluteUrl == 'http://localhost:8089/my/resource') | ||
"requestAbsoluteUrl" : "$requestAbsoluteUrl", | ||
"requestMethod" : "$requestMethod", | ||
"requestHeaderHost" : "$requestHeaderHost", | ||
"requestHeaderUserAgent" : "$requestHeaderUserAgent", | ||
"requestHeaderAcceptAccept" : "$requestHeaderAccept", | ||
"requestHeaderAcceptLanguage" : "$requestHeaderAcceptLanguage", | ||
"requestHeaderAcceptEncoding" : "$requestHeaderAcceptEncoding", | ||
"requestHeaderConnection" : "$requestHeaderConnection", | ||
#if($requestAbsoluteUrl == 'http://localhost:8089/my/resource') | ||
"customProp" : "customValue", | ||
"customProp2" : "customValue2", | ||
#else | ||
#else | ||
"customProp" : "customValue", | ||
#end | ||
"date" : "$date.getMonth()", | ||
"math" : "$math.floor(2.5)" | ||
#end | ||
"date" : "$date.getMonth()", | ||
"math" : "$math.floor(2.5)" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"request": { | ||
"urlPattern": "/resource", | ||
"method": "GET" | ||
}, | ||
"response": { | ||
"status": 200, | ||
"bodyFileName": "response-test-body-for-post.vm", | ||
"headers": { | ||
"Content-Type": "application/json" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file renamed
BIN
+8.46 MB
functional/wiremock-standalone-2.1.12.jar → functional/wiremock-standalone-2.14.0.jar
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file renamed
BIN
+13.2 MB
...k-velocity-transformer-standalone-1.4.jar → ...k-velocity-transformer-standalone-1.5.jar
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#!/bin/bash | ||
java -cp "wiremock-velocity-transformer-standalone-1.4.jar:wiremock-standalone-2.1.12.jar" com.github.tomakehurst.wiremock.standalone.WireMockServerRunner --verbose --extensions com.github.adamyork.wiremock.transformer.VelocityResponseTransformer | ||
java -cp "wiremock-standalone-2.14.0.jar:wiremock-velocity-transformer-standalone-1.5.jar" com.github.tomakehurst.wiremock.standalone.WireMockServerRunner --verbose --extensions com.github.adamyork.wiremock.transformer.VelocityResponseTransformer |
Oops, something went wrong.