Commit Graph

492 Commits

Author SHA1 Message Date
Marcin Grzejszczak
220ddd85bf Bumped libs: 2017-03-07 23:11:51 +01:00
Marcin Grzejszczak
5d0c63f5c3 Bumped libs 2017-03-07 16:36:34 +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
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
152d598bff Merge branch '1.0.x' 2017-01-20 13:49:15 +01:00
Koichi Sakata
46f0c99e2e Fixed dirty jar with contracts 2017-01-20 13:48:26 +01:00
Marcin Grzejszczak
bb42e10842 Merge branch '1.0.x' 2017-01-16 14:41:28 +01:00
Marcin Grzejszczak
9be467ed51 Fixed the order of tests in parallel build 2017-01-16 14:41:14 +01:00
Marcin Grzejszczak
1dabe2b610 :xMerge branch '1.0.x' 2017-01-14 22:10:24 +01:00
Marcin Grzejszczak
edf30b73d6 Made tests pass in parallel 2017-01-14 22:08: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
fef078d2eb Bumped up boot version in samples 2016-12-28 19:57:07 +01: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
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
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
d8ff715527 Bumped up version to 1.1.0 2016-12-07 14:34:56 +01:00
Marcin Grzejszczak
7a347da55a Going back to snapshots 2016-11-24 18:58:50 +01:00
Marcin Grzejszczak
c7883a0d97 Bumping version before release 2016-11-24 18:37:39 +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
Dave Syer
fa3c0035e0 Use apache HTTP client instead of JDK
Never got to the bottom of this, but the test failure with the
dropped connection (EOF on socket) seems to go away if we use
the Apache client instead of the JDK.
2016-11-15 09:53:42 +00:00
Marcin Grzejszczak
ffc691167f Updated ports 2016-11-14 10:57:59 +01:00
Marcin Grzejszczak
42d82dca23 Prepared code for parallel run 2016-11-14 10:30:04 +01:00
Dave Syer
1b3496f492 Switch off web environment in tests
This seems to fix the flickering test problem for me at least.
Not sure why yet, so I'll continue to stare at it.
2016-11-11 11:53:48 +00:00
Dave Syer
891452376b Don't use ServerProperties for configuring Wiremock server
The problem is that it is a Spring Boot app (really tiny one), so
it binds to server.* in the environment, if you try to use
the stock ServerProperties. We only need a subset of the features
so it's actually relatively easy to wrap it and use a delegate.
2016-11-09 16:12:23 +00:00
Marcin Grzejszczak
b3cf4077e2 Fixed the base class name
without this change for convention class names we haven't escaped illegal chars
with this change the illegal chars are escaped and no compilation issues occur

fixes #137
2016-11-08 16:14:20 +01:00
Marcin Grzejszczak
137100c1f7 Updated docs 2016-11-07 14:36:26 +01:00
Marcin Grzejszczak
ba45eb582b Updated docs 2016-11-07 14:35:46 +01:00
Marcin Grzejszczak
f4a6b4f4b1 Going back to snapshots 2016-10-17 12:22:17 +02:00
Marcin Grzejszczak
dd214f83f6 Bumping versions before release 2016-10-17 11:54:52 +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
6381362ad6 Going back to Snapshots 2016-09-23 21:04:10 +02:00
Marcin Grzejszczak
8ee2ef4b18 Bumping versions before release 2016-09-23 20:07:58 +02:00
Marcin Grzejszczak
e8917940ec Added option of multiple test base classes
without this change the user was forced to use a single base class for all of the generated tests. It could become problematic after some time.

With this change we provide a range of options of providing different base classes for different contracts.

fixes #16
2016-09-23 15:52:14 +02:00
Marcin Grzejszczak
e3d9ec2d28 Updated pom 2016-09-23 11:12:37 +02:00
Marcin Grzejszczak
01f4ad76be Consumer Contracts (#83)
With this functionality you can have one centralized repository containing all contracts. This repo will have to produce a JAR containing all contracts. The layout of the repository can be arbitrary but some sensible defaults are assumed. The producer will be able to then download that JAR and produce tests and stubs from it.

fixes #38
2016-09-23 10:16:51 +02:00
Marcin Grzejszczak
24b3f80e8c Going back to SNAPSHOTs 2016-09-08 23:25:23 +02:00
Marcin Grzejszczak
411ca5886b Bumping versions before RC1 release 2016-09-08 23:25:23 +02:00
Marcin Grzejszczak
423e42cb1d Updated docs 2016-09-02 12:07:39 +02:00
Marcin Grzejszczak
5ceb9f1a8e Simplified addition of dependencies by using Camden BOM 2016-09-02 11:24:08 +02:00
Marcin Grzejszczak
0b37a45164 Bumped BOM to Brixton.SR5 2016-09-01 12:37:15 +02:00
Marcin Grzejszczak
bfc2172d66 Applied checkstyle rules 2016-08-29 12:04:21 +02:00
Marcin Grzejszczak
c59306ce5d Going back to snapshots 2016-08-27 00:27:55 +02:00
Marcin Grzejszczak
bf60a6b72f Bumping versions before release 2016-08-26 23:51:33 +02:00
Marcin Grzejszczak
5d3e99874f Added options to pass props via @AutoConfigureStubRunner (#61)
* Added options to pass props via @AutoConfigureStubRunner

it's much easier to pass props via the annotation instead of property files. With this change the user can provide the properties inside the test via the annotation. The only thing that has to be passed via props is repositoryRoot (typically it's a very constant property that you set once).

fixes #46
2016-08-24 16:14:10 +02:00