Commit Graph

377 Commits

Author SHA1 Message Date
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
c7665db7d9 Fixed code style issues 2016-08-12 11:46:41 +02:00
Dave Syer
33a287dfb8 Polish 2016-07-28 10:23:02 +01:00
Dave Syer
bcce5699de Add additional build() step to allow ordered stubs 2016-07-28 09:32:30 +01:00
Dave Syer
417465b4bd Actually write the request matchers to the stub mapping 2016-07-27 09:22:52 +01:00
Dave Syer
5609ffe76c Add support for WireMock matchers on restdocs stub builder 2016-07-27 09:16:12 +01:00
Dave Syer
f46666324b Add some docs for restdocs usage and rename some things 2016-07-26 15:05:12 +01:00
Dave Syer
aa1d7dc074 Rename expect() to stubs() in mock server config 2016-07-26 14:29:20 +01:00
Dave Syer
997a17f923 Move restdocs stuff into its own package 2016-07-26 14:28:43 +01:00
Dave Syer
eb691717a2 Add support for automatically registering stubs in @AutoConfigureWireMock 2016-07-26 14:28:43 +01:00
Dave Syer
4305f40fd9 Expose WireMockServer for @Autowired in test class 2016-07-26 14:28:43 +01:00
Dave Syer
44eebcab0f Re-organize contract generation into a new helper 2016-07-26 14:28:43 +01:00
Dave Syer
1a8c1214c4 Add support for restdocs in a crude way 2016-07-26 14:28:43 +01: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
Dave Syer
cc1d20c91b Add support for random port with https as well 2016-07-21 22:06:33 +01:00
Dave Syer
b47ea3b0cd Add support for port and random port in WireMock
User can @AutoConfigureWireMock(port=0) for instance. Still missing:
declarative HTTPS.
2016-07-21 17:18:28 +01:00
Marcin Grzejszczak
72e67d6397 Polish 2016-07-20 19:39:01 +02:00
Dave Syer
fbfa19dcbd Fix wrong group id 2016-07-14 14:54:57 +01:00
Dave Syer
324c2326a4 Rename test class 2016-07-14 09:55:52 +01:00
Dave Syer
476aecaa6b Rename @WireMockTest -> @AutoConfigureWireMock 2016-07-14 09:53:57 +01:00
Dave Syer
f5d3a63869 Remove unused grape config 2016-07-14 09:53:23 +01:00
Marcin Grzejszczak
04f9b75181 Changing group id
to org.springframework.cloud from org.springframework.cloud.contract

also stopped running an http server if the contract doesn't support it
added back stub runner modules
2016-07-13 19:24:42 +02:00
Dave Syer
c02c11db35 Add support for Jetty 9 2016-07-13 16:51:27 +01:00
Dave Syer
de914a7b27 Add support for Undertow and Wiremock 2016-07-13 16:23:51 +01:00
Dave Syer
5fe510f45e Add Wiremock features (Tomcat only for now)
User can depend on spring-cloud-contract-wiremock and
spring-cloud-starter-web (or tomcat) to get tomcat to run
the wiremock server. The idea is that wiremock runs in the
"ambient" server from Sprign Boot. So far we only support
Tomcat (should be easy to extend).

See tests in spring-cloud-contract-wiremock for details.
2016-07-12 18:10:18 +01:00