Commit Graph

38 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
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
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
b1175ff9bd Simplification of the dsl (#151)
with this change to DSL we're adding some helper methods and DSL simplifications 

- c(...) / p(...) - for consumer / producer
- for regex - e.g. $(anyUrl()) - insead of $(consumer(regex(url()))
- Added helper headers and media types
- Added helper http methods

fixes #149
2016-11-18 15:38:35 +01:00
Marcin Grzejszczak
42d82dca23 Prepared code for parallel run 2016-11-14 10:30:04 +01: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
Mathias Düsterhöft
6f3c3f850b Enable amqp integration by property (#131)
Fixes #133
2016-11-06 22:34:05 +01:00
Mathias Düsterhöft
49520d4c3d Add support for spring-amqp annotated listener endpoints
without this change only explicit Spring AMQP support was present
with this change support for spring-amqp annotated listener endpoints was added

fixes #127
2016-10-31 14:23:56 +01:00
Andrew Morgan
8e7d06bee7 Fixes #124 - When specifying 'workOffline=false', the stubrunner will now always fail if unable to find the stub remotely 2016-10-28 16:53:40 +02: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
Marcin Grzejszczak
106239351b Fixed wrong pom 2016-10-20 14:50:40 +02:00
Marcin Grzejszczak
0328a26d69 Fixed wrong version 2016-10-20 13:04:40 +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
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
c8ac0fe8dc Fixing checkstyle issues 2016-10-12 10:18:19 +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
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
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
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
64d6d3ef6c Automatic stub registration (#64)
before this change the support for Stub Runner Boot with Service Discovery was pretty useless since Stub Runner stubbed service discovery. That makes a lot of sense in unit / integration tests but not when you want to do some version of end to end tests. 

With this change you can pass a property to enable automated registration of stubs in Service Discovery.

Technical changes:
* Added Zookeeper registration
* Added Eureka registration
* Added Consul registration
* Added checkstyle plugin - fixed part of exceptions
2016-08-26 16:09:16 +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
Marcin Grzejszczak
ddc66b4c0c Going back to Snapshots 2016-07-22 16:22:47 +02:00
Marcin Grzejszczak
62f7d48f8d Bumping version before M1 release 2016-07-22 16:17:30 +02:00
Marcin Grzejszczak
0f3a8fef61 Fixed poms before M1 2016-07-22 15:53:26 +02:00
Marcin Grzejszczak
72e67d6397 Polish 2016-07-20 19:39:01 +02:00
Marcin Grzejszczak
19092baabd Updated docs 2016-07-20 18:58:38 +02:00
Marcin Grzejszczak
3e9aabab9d Fixed poms 2016-07-20 11:47:03 +02:00
Dave Syer
6586015d99 Move 'samples' into 'tests' folder
Some of the samples are more like pure integratiuon tests (I wouldn't
use them to copy code into a real app). So I put them with the other
"test" projects.
2016-07-20 09:13:08 +01:00
Marcin Grzejszczak
1bbf572d4c Fixed the pomx 2016-07-19 19:50:23 +02:00
Marcin Grzejszczak
2b41aaaace Fixing the project setup 2016-07-19 18:12:29 +02:00
Dave Syer
07befc839f Re-instate integration tests for stub runner messaging 2016-07-19 16:11:08 +01:00