Commit Graph

561 Commits

Author SHA1 Message Date
Marcin Grzejszczak
2d6abb246b Merge branch '1.0.x' 2017-04-14 10:13:03 +02:00
Marcin Grzejszczak
5903aaa689 Added a printing of exceptions when failing to download a stub
without this change the root reason for exception is not presented
with this change we're printing that reason

fixes #248
2017-04-14 10:11:58 +02:00
Marcin Grzejszczak
ef5020986f Bumping versions to 1.1.1.BUILD-SNAPSHOT after release 2017-04-11 11:26:11 +02:00
Marcin Grzejszczak
fe14d5c7d9 Going back to snapshots 2017-04-11 11:23:13 +02:00
Marcin Grzejszczak
c167df4fd6 Update SNAPSHOT to 1.1.0.RELEASE 2017-04-11 11:08:00 +02:00
Marcin Grzejszczak
a6cd890b50 Going back to snapshots 2017-03-17 10:09:33 +01:00
Marcin Grzejszczak
47dc54cad4 Update SNAPSHOT to 1.1.0.RC1 2017-03-17 10:04:52 +01:00
Marcin Grzejszczak
ef9c567d46 Going back to snapshots 2017-03-10 15:00:53 +01:00
Marcin Grzejszczak
63180de4fe Bumping versions before release 2017-03-10 14:46:47 +01:00
Marcin Grzejszczak
5f714f13c1 Merge branch '1.0.x' 2017-03-10 13:04:02 +01:00
Marcin Grzejszczak
7c1eb995ae Added links to samples with stub runner cloud
fixes #241
2017-03-10 13:03:45 +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
9c96d3de3d Merge branch '1.0.x' 2017-02-28 13:12:27 +01:00
Dennis Kieselhorst
a568f0d89d use local repository path from maven settings (#236)
without this change the local repository maven setup is completely ignored
with this change whatever you have set up locally will be taken into consideration
2017-02-28 13:07:24 +01:00
Marcin Grzejszczak
764714ccd8 Merge branch '1.0.x' 2017-02-23 11:44:46 +01:00
Marcin Grzejszczak
a6a8c79b75 Added tests for runtime running stubs interpolation 2017-02-23 11:44:32 +01:00
Marcin Grzejszczak
4139052942 Merge branch '1.0.x' 2017-02-15 14:33:54 +01:00
Marcin Grzejszczak
60e35be082 Fixed bad javadoc 2017-02-15 14:33:45 +01:00
Marcin Grzejszczak
317ed548cf Merge branch '1.0.x' 2017-02-15 14:32:54 +01:00
Marcin Grzejszczak
e9771a08cc Fixed bad javadoc 2017-02-15 14:32:20 +01:00
Marcin Grzejszczak
14182adba0 Merge branch '1.0.x' 2017-02-08 17:41:43 +01:00
Marcin Grzejszczak
ab5d47e7a6 Changed the taken port
fixes #221
2017-02-08 17:41:26 +01:00
Marcin Grzejszczak
bb7f2f1cd5 Merge branch '1.0.x' 2017-02-07 14:09:25 +01:00
Marcin Grzejszczak
5db234dc0f Trying to fix the NPE 2017-02-07 14:09:01 +01:00
Marcin Grzejszczak
d86e205c7d Merge branch '1.0.x' 2017-02-07 13:59:19 +01:00
Marcin Grzejszczak
7549e14a26 Fixed checkstyle 2017-02-07 13:59:10 +01:00
Marcin Grzejszczak
6d078dead4 Merge branch '1.0.x' 2017-02-07 13:56:43 +01:00
Marcin Grzejszczak
b8890febfd Fixed NPE due to missing bean 2017-02-07 13:56:17 +01:00
Marcin Grzejszczak
e93e6b2dfe Merge branch '1.0.x' 2017-02-03 09:58:42 +01:00
Marcin Grzejszczak
8621a3258b Added support for ranges of versions
fixes #210
2017-02-03 09:57:56 +01:00
Marcin Grzejszczak
c2e2daf5d2 Merge branch '1.0.x' 2017-02-02 17:28:44 +01:00
Marcin Grzejszczak
7af3a75ac4 Removed info about missing contracts
fixes #212
2017-02-02 17:25:58 +01:00
Marcin Grzejszczak
e135e618ec Polish 2017-02-02 17:16:36 +01:00
Marcin Grzejszczak
eaea0a6d21 Upgrading WireMock to 2.5.1
fixes #202
2017-02-02 17:15:04 +01:00
Marcin Grzejszczak
1e9e7a4792 Added foreward compatibility with WireMock stubs
fixes #213
2017-02-02 17:00:17 +01:00
Marcin Grzejszczak
e36a6e2b56 Going back to snapshots 2017-01-30 11:47:27 +01:00
Marcin Grzejszczak
dfceed2ce1 Bumping versions before release 2017-01-30 11:41:56 +01:00
Marcin Grzejszczak
f59107fd62 Merge branch '1.0.x' 2017-01-16 13:45:59 +01:00
Marcin Grzejszczak
8d23d934c9 Bumped copyrights 2017-01-16 12:40:34 +01:00
Marcin Grzejszczak
22a5e44471 Pact Contract (#188)
with this change we're providing support for Pact based contracts. No longer do you have to set up your contracts using the Groovy DSL. In the same way as with the DSL you can use the Pact contracts to generate tests and the stubs on the producer side.

fixes #96
2017-01-13 18:06:32 +01:00
Marcin Grzejszczak
bacde76798 Going back to snapshots 2017-01-12 15:58:06 +01:00
Marcin Grzejszczak
bc37cc9a1a Bumping version before release 2017-01-12 15:28:20 +01:00
Marcin Grzejszczak
2808d3eb2e Updated to sc-zookeeper changes 2017-01-12 15:11:22 +01:00
Marcin Grzejszczak
6ee7f0cf0d Merge branch '1.0.x' 2017-01-11 19:13:59 +01:00
Marcin Grzejszczak
2bd95b6edb Changed byValue to byEquality 2017-01-11 19:13:49 +01:00
Marcin Grzejszczak
f605237136 Merge branch '1.0.x' 2017-01-11 14:32:54 +01:00
Marcin Grzejszczak
76966a985c Added equality check to matchers 2017-01-11 14:16:53 +01:00
Marcin Grzejszczak
9543434ef7 Merge branch '1.0.x'
Stub / Test Matchers (#186)
Without this change we're forcing users to embed their dynamic properties inside the body. For some this is natural and acceptable, but especially for the users coming from the Pact world this sounds bizarre. Also some other people have a problem with remembering who the consumer / producer is etc.

With this change we're introducing the stubMatchers and testMatchers section. Thanks to this one can separate the body from defining the dynamic properties. Especially for Pact users this is more natural. Speaking of which this is a prerequisite for #96

fixes #185
2017-01-10 17:21:38 +01:00
Marcin Grzejszczak
27bf2af8fd Stub / Test Matchers (#186)
Without this change we're forcing users to embed their dynamic properties inside the body. For some this is natural and acceptable, but especially for the users coming from the Pact world this sounds bizarre. Also some other people have a problem with remembering who the consumer / producer is etc.

With this change we're introducing the stubMatchers and testMatchers section. Thanks to this one can separate the body from defining the dynamic properties. Especially for Pact users this is more natural. Speaking of which this is a prerequisite for #96

fixes #185
2017-01-10 16:47:10 +01:00
Marcin Grzejszczak
78ebacd9c5 Merge branch '1.0.x'
fixes #143
2017-01-02 11:35:11 +01:00