Commit Graph

3290 Commits

Author SHA1 Message Date
Marcin Grzejszczak
cb803320cd Updated tests for the context path
without this change the explicit mode is broken and context path scenario can't be tested
    with this change you can provide the EXPLICIT mode with which you can set the RestAssured to send real requests. That way you can set up your application to listen on a socket and have the context path setup. The contracts need to include the context path too since in real world you'll send a request to a URL that contains a context path element.

    fixes #179 #117
2016-12-28 19:38:39 +01:00
Marcin Grzejszczak
2ecb426814 Merge branch '1.0.x'
fixes #167
2016-12-28 12:52:15 +01:00
Marcin Grzejszczak
0fd91976f3 Added excludeBuildFolders property
without this change when we work with the repo with common contracts then in the logs we can see that a lot of unnecessary files are processed. Those files are related to the fact that `target` / `build` folders are created and reside in the path in which we're searching for contracts. Due to this we have duplicates in terms of converting files.
with this change we add the `excludeBuildFolders` property that is by default turned off. If you enable it in the `pom.xml` that is used by the consumers to install stubs locally then the target folder gets ignored.

fixes #167
2016-12-28 12:28:07 +01:00
Marcin Grzejszczak
60648f6203 Updated video in the docs 2016-12-27 19:54:05 +01:00
Marcin Grzejszczak
492fc93511 Merge branch '1.0.x'
fixes #85
2016-12-27 14:18:53 +01:00
Marcin Grzejszczak
07bf0cb9c7 Fixed the way in JUnit we address list indices
without this change for some reason we're using .get() to address an entry in the list via a index
with this change we're doing it in the proper JSON path format which is `$[index]`

fixes #85
2016-12-27 14:18:40 +01:00
Marcin Grzejszczak
eda0e1d061 Merge branch '1.0.x'
fixes #178
2016-12-27 12:26:13 +01:00
Marcin Grzejszczak
b7beb322b5 Fixed deserialization of byte array
without this fix we're not assuming that the payload can be an array of bytes
with this fix we're converting an array of bytes into a String

fixes #178
2016-12-27 12:24:34 +01:00
Marcin Grzejszczak
405ca0186b Merge branch '1.0.x'
fixes #146
2016-12-23 14:38:57 +01:00
Marcin Grzejszczak
a509124976 Added info about WireMock exclusions to the docs
without this change if someone used the Spring Cloud BOM one could have some dependency related issues coming from exclusions of WireMock dependencies in SPring CLoud COntract
with this change we're informing the user about this

fixes #146
2016-12-23 14:38:46 +01:00
Marcin Grzejszczak
c334733993 Merge branch '1.0.x'
fixes #169
2016-12-23 14:31:15 +01:00
Marcin Grzejszczak
6da0cb25ac Unescaping escaped quotes
without this change we're escapng an already escaped quotes in a regex
with this change we're doing a hack to unescape a double escaped quote

fixes #169
2016-12-23 14:26:29 +01:00
Marcin Grzejszczak
aba1ddc0cd Merge branch '1.0.x'
fixes #176
2016-12-22 19:10:51 +01:00
Marcin Grzejszczak
4582a6a3bf Fixed invalid parsing of ids
without this change when someone has provided an empty value of port then a default classifier was set instead of picking the provided one

fixes #176
2016-12-22 19:10:42 +01:00
Marcin Grzejszczak
c1b2fd4432 Merge branch '1.0.x' 2016-12-22 18:50:58 +01:00
Marcin Grzejszczak
1fe79521ac Response body with text content type header still being verified using json matchers
- fixed the way that text/plain is dealt with
 - added compilation checks for Groovy / Java
 - added compilation check for JaxRs

This is an important commit since it's compiling the generated code to ensure that the tests we're generating
are compilable. It turned out that a couple of regex for Groovy were not properly set. With this change
if we produce code that doesn't compile

fixes #177 #172
2016-12-22 18:34:02 +01:00
Marcin Grzejszczak
9f71e50349 Fixed invalid OptionalProperty conversion
without this change a toString was executed on an optional property due to a missing method that parses those kind of props.
with this change we've added a missing method and also we've made optional property toString return the proper pattern

fixes #173
2016-12-21 16:14:49 +01:00
Marcin Grzejszczak
73d4d652ff Fixed invalid OptionalProperty conversion
without this change a toString was executed on an optional property due to a missing method that parses those kind of props.
with this change we've added a missing method and also we've made optional property toString return the proper pattern

fixes #173
2016-12-21 16:14:30 +01:00
Marcin Grzejszczak
4acc3ca1ee Creating missing folders if not present
without this fix sometimes when the folders are not created then exceptions occur while trying to process the project.

Related to #159
2016-12-21 14:37:38 +01:00
Marcin Grzejszczak
5a32b73f26 Creating missing folders if not present
without this fix sometimes when the folders are not created then exceptions occur while trying to process the project.

Related to #159
2016-12-21 14:36:58 +01:00
Marcin Grzejszczak
bde5270dcc Merge branch '1.0.x' 2016-12-20 19:12:29 +01:00
Marcin Grzejszczak
8951ea554f Fixed checking projects from root
without this change contracts are taken from a wrong directory and they tend to be always up to date in a multi module project
with this change we check the contract sources from the current project. also we've removed the up to date check

fixes #159
2016-12-20 19:12:06 +01:00
Marcin Grzejszczak
0a3e6a38bd Updated readme 2016-12-19 16:29:50 +01:00
koslowskyj
a646ca5be7 use method queryParam provided by MockMvc instead of appending Url 2016-12-19 16:29:49 +01:00
koslowskyj
2ce55a9ac0 support of encoded url parameters in MockMvc 2016-12-19 16:29:49 +01:00
Marcin Grzejszczak
40f335da21 Updated readme 2016-12-19 16:19:56 +01:00
koslowskyj
62a7720c96 use method queryParam provided by MockMvc instead of appending Url 2016-12-19 16:06:06 +01:00
koslowskyj
4bdf572f1e support of encoded url parameters in MockMvc 2016-12-19 16:05:57 +01:00
Dave Syer
fde66321b7 Merge branch '1.0.x' 2016-12-15 10:48:57 +00:00
Dave Syer
29a726e773 Add lifecycle mapping for m2e 2016-12-15 10:45:53 +00:00
Marcin Grzejszczak
b098e300e5 Merge branch '1.0.x' 2016-12-14 22:02:01 +01:00
Marcin Grzejszczak
f9961d17f6 Fixed missing regex value generation
without this change the autogenerated tests were wrong and contained a 'cursor' value
with this change it got fixed

fixes #168
2016-12-14 21:58:01 +01:00
Marcin Grzejszczak
6963528a4a Updated contract docs 2016-12-13 09:52:08 +01:00
Marcin Grzejszczak
faa18a69b1 Made stub downloading pluggable (#165)
* Added implementation for pluggable stub downloading
* Added docs and test for pluggable sub dowloader

fixes #165
2016-12-13 09:32:32 +01:00
Marcin Grzejszczak
a649ade37b Bumped to Boot 1.5 2016-12-12 18:11:11 +01:00
Marcin Grzejszczak
29c8bc82da Depend on Dalston in gradle files 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
980a0c9758 Depend on Dalston 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
9fe1a2e31b Removed unnecessary spring-core reference 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
06243abe3c Added a test with multiple contracts in a file 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
84d361bae7 Adding tests for multiple contracts 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
02bd7af2cd Polish 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
eabb0f6724 Updated docs 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
ff4297dc0b Added docs about stub runner 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
1923e6b890 Added a test with Moco as a stub provider 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
b81ecc36e4 Abstracted WireMock. Introduced the HttpServerStub abstraction 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
57bf619471 Polish 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
3e90c1ab9d Polish 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
d69670db68 Bumped up version and polished 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
96525b2ad5 Fixed Maven tests 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
39bef2ce08 Fixed equals and hashcode 2016-12-07 22:24:34 +01:00