Commit Graph

194 Commits

Author SHA1 Message Date
Marcin Grzejszczak
2ce4b2e67c Added an option to use Rest Assured version 3.0
without this change it's impossible to use Rest Assured 3.0 with Spring Cloud Contract. That's because we are adding Rest Assured 2.0 imports.
with this change we detect Rest Assured version. If 3.0 is available on the classpath we change the imports

fixes #266
2017-04-14 15:31:22 +02:00
Marcin Grzejszczak
d8aa81bf44 Updated docs 2017-04-10 14:42:03 +02:00
Marcin Grzejszczak
c8aeaa5c28 Updated docs 2017-04-10 14:34:16 +02:00
Marcin Grzejszczak
d8b4452c2a Merge branch '1.0.x' 2017-03-03 17:34:47 +01:00
Marcin Grzejszczak
c25e375241 Elaborated more on base class config in step by step part
fixes #239
2017-03-03 17:17:22 +01:00
Marcin Grzejszczak
59bde4b640 Made headers private 2017-03-02 10:36:30 +01:00
Marcin Grzejszczak
1e82a3b9db Updated docs 2017-03-02 10:16:22 +01:00
Marcin Grzejszczak
d6f2227f89 Referencing request from response (#238)
The best situation is to provide fixed values but sometimes you need to reference a request in your response. In order to do this you can profit from the fromRequest() method that allows you to reference a bunch of elements from the HTTP request. You can use the following options:

- `fromRequest().url()` - return the request URL
- `fromRequest().query(String key)` - return the first query parameter with a given name
- `fromRequest().query(String key, int index)` - return the nth query parameter with a given name
- `fromRequest().header(String key)` - return the first header with a given name
- `fromRequest().header(String key, int index)` - return the nth header with a given name
- `fromRequest().body()` - return the full request body
- `fromRequest().body(String jsonPath)` - return the element from the request that matches the JSON Path

fixes #237
2017-03-02 10:14:10 +01:00
Marcin Grzejszczak
10c28a3eea Merge branch '1.0.x' 2017-02-23 17:49:52 +01:00
Marcin Grzejszczak
31f1727bdb Fixed a typo in docs 2017-02-23 17:48:36 +01:00
Marcin Grzejszczak
0048ebd756 Merge branch '1.0.x' 2017-02-23 17:37:40 +01:00
Marcin Grzejszczak
7e19f9fceb Adds option to generate contracts from RestDocs
with this change we're giving an option to not only generate stubs but also generate contracts from the RestDocs test

    fixes #14
2017-02-23 17:37:24 +01:00
Marcin Grzejszczak
0c39063cce Merge branch '1.0.x' 2017-02-08 11:07:10 +01:00
Marcin Grzejszczak
8449382110 Added info about the dependencies 2017-02-08 11:06:58 +01:00
Marcin Grzejszczak
dc670f7f1f Merge branch '1.0.x' 2017-01-25 16:53:17 +01:00
Marcin Grzejszczak
d0149353c0 Fixed missing @Ignored import
fixes #200
2017-01-25 16:43:03 +01:00
Marcin Grzejszczak
f59107fd62 Merge branch '1.0.x' 2017-01-16 13:45:59 +01:00
Marcin Grzejszczak
12aa340e46 Added an option to build the project in parallel
with this change we've added some scripts to run the build in parallel. It makes the build ~ 2 times faster

fixes #190
2017-01-16 13:05:15 +01:00
Marcin Grzejszczak
8d23d934c9 Bumped copyrights 2017-01-16 12:40:34 +01:00
Marcin Grzejszczak
1dabe2b610 :xMerge branch '1.0.x' 2017-01-14 22:10:24 +01:00
Marcin Grzejszczak
fca7e1935f Updated docs 2017-01-13 18:10:05 +01:00
Marcin Grzejszczak
0ca4ddf762 Updated docs 2017-01-02 11:22:43 +01:00
Marcin Grzejszczak
07961dc8a9 Merge branch '1.0.x'
fixes #122
2017-01-02 11:21:06 +01:00
Marcin Grzejszczak
7d739cc3bd Updated info about Groovy plugins
fixes #122
2017-01-02 11:20:23 +01:00
Marcin Grzejszczak
b7101f2a77 Merge branch '1.0.x'
fixes #135
2016-12-29 15:38:45 +01:00
Marcin Grzejszczak
4ceaff5b66 Added missing body pattern comparison
without this change the eact contents of the body were mostly ignored
with this change we support all WireMock body matching patterns

fixes #135
2016-12-29 15:38:34 +01:00
Marcin Grzejszczak
fef078d2eb Bumped up boot version in samples 2016-12-28 19:57:07 +01:00
Marcin Grzejszczak
60648f6203 Updated video in the docs 2016-12-27 19:54:05 +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
40f335da21 Updated readme 2016-12-19 16:19:56 +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
c067774eee Fixed the invalid regex escape
fixes #162
2016-12-07 16:29:11 +01:00
Marcin Grzejszczak
545874c951 Issues #110 user pass (#157)
can now configure username and password authentication and a proxy for accessing stub repository

Fixes #110
2016-12-05 14:56:08 +01:00
Marcin Grzejszczak
a5642265cd Fixed the way contracts are packaged and tests are generated for plugins
the biggest problem was related with the scenario in which a jar with shared contracts is downloaded
with this change the output JAR structure is proper

fixes #156
2016-11-24 16:56:58 +01:00
Marcin Grzejszczak
699c7d2121 Added Gradle / Maven tabs
with these changes if someone is not interested with one of those tools one won't see it until it gets clicked

fixes #152
2016-11-21 13:59:42 +01:00
Marcin Grzejszczak
49373eb160 Added docs on extending the DSL
with this change we're explaining how you can add your custom methods to the DSL

fixes #23
2016-11-21 11:46:01 +01:00
Marcin Grzejszczak
74574b3dc6 Added exclusion on demand of files from jar
without this change you can't control what should be excluded from your folder in the output stubs jar. That way when having a common repo with contracts you had the whole target put into stubs jar
    with this change you can set e.g. `**/target/**/*.*` to exclude anything from the target folder

    fixes #145
2016-11-14 15:54:57 +01:00
Marcin Grzejszczak
ffc691167f Updated ports 2016-11-14 10:57:59 +01:00
Marcin Grzejszczak
92cf2cf5c6 Updated Spring Boot starter 2016-11-08 17:03:43 +01:00
Marcin Grzejszczak
ba45eb582b Updated docs 2016-11-07 14:35:46 +01:00
Marcin Grzejszczak
8a9098c8b7 Updated docs with webinar info 2016-11-01 07:42:25 +01:00
Andrew Morgan
413a3d23bb The spring context now fails to start if the stub cannot be found
The spring context now fails to start if the stub cannot be found, enabling the test to fail as quickly as possible for feedback
2016-10-26 11:01:13 +02:00
Mathias Düsterhöft
2b70b450b9 add spring-amqp/spring-rabbit support for message contracts (#106) 2016-10-20 12:43:31 +02:00
Marcin Grzejszczak
7072284c95 Making Windows build pass (#109)
* had to ignore some tests for Windows due to absurd exceptions
* fixed escaping path for directory matching

fixes #98
2016-10-16 13:47:46 +02:00
Marcin Grzejszczak
b17238ff4e Fixing missing context-path usage
without this change when the user adds context-path it gets ignored and WireMock fails to register stubs
with this change we update the WireMock instance to include the context path

fixes #99
2016-10-11 11:27:24 +02:00
Marcin Grzejszczak
d3896f913b Changed ContractVerifierObjectMapper to a bean
without this change we couldn't alter the mapper

with this change you can customize the whole verifier objectmapper or the objectmapper that is on classpath

fixes #97
2016-10-07 14:59:49 +02:00
Marcin Grzejszczak
0694d5b6f6 Updated docs 2016-09-23 22:44:01 +02:00
Marcin Grzejszczak
3f6a1601ab Updated docs 2016-09-23 16:02:27 +02:00
Marcin Grzejszczak
a3e67a1b34 Updated docs 2016-09-23 15:59:55 +02:00
Marcin Grzejszczak
186ac4762f Updated docs 2016-09-23 15:56:11 +02:00