Commit Graph

304 Commits

Author SHA1 Message Date
Marcin Grzejszczak
f148c5b8bf Using factories 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
Andy Wilkinson
72e165e4ae Use spring-asciidoctor-extensions to provide tabbed code blocks (#153) 2016-11-21 17:15:33 +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
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
Dave Syer
f0549af121 Move spring-cloud-commons to parent 2016-11-03 18:01:58 +00: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
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
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
Dave Syer
06c9db932e Rationalize dependency management in BOMs 2016-09-19 12:02:25 +01:00
Dave Syer
1a9eccd5ef Move unnecessary dependencies up a level 2016-09-19 12:02:25 +01: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
61bbec6485 Changed the boot version for snapshots to be consistent 2016-08-26 23:15:48 +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
48aa8f763d DiscoveryClient is optional
without this change if you want to use Spring Cloud Contract Stub Runner Cloud you need to have an implementation of Service Discovery on your classpath. That's not always what you want to have - actually the tests should be possible to be run without any backing service disvoery technology.

    This change provides the default NoOp Discovery Client in case where there is no bean of DiscoveryClient type.

    fixes #56
2016-08-22 16:29:09 +02:00
Marcin Grzejszczak
012eac8f3c Fixing the build (#63)
we are installing artifacts twice. With Maven and Gradle then. We need to change that.

fixes #62
2016-08-22 11:33:17 +02:00
Dave Syer
f5183fcde3 Change repo URLs to https 2016-08-17 17:31:25 +01:00
Marcin Grzejszczak
3552684f93 Invalid array size check
there was a problem with the way property related to array size check was passed. Not only was the condition inverse, but also the properties weren't passed.

With this change those issues were fixed, we've added the missing maven plugin feature and ensured that the array check is the default option.

fixes #60
2016-08-11 14:33:30 +02:00
Marcin Grzejszczak
9dc7415a19 Fixed BOM by moving Boot BOM to parent 2016-07-25 14:28:02 +02:00
Marcin Grzejszczak
6e5a704bd7 Removed the spring-core dependency 2016-07-22 17:05:49 +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
d3eef8d1ba Removed spring version from poms 2016-07-22 14:43:40 +02:00
Dave Syer
07befc839f Re-instate integration tests for stub runner messaging 2016-07-19 16:11:08 +01:00
Dave Syer
4c900f46fe Remove stub tests (already covered in other tests) 2016-07-19 15:22:20 +01:00
Dave Syer
df5902fabd Move some dependencies from bom to parent 2016-07-19 10:51:09 +01:00
Dave Syer
a46766bd0b Remove commons-io dependency 2016-07-19 10:34:33 +01:00
Dave Syer
15dc75dece Move plugins in to tools folder
Also rename plugins removing 'verifer'.
2016-07-15 10:49:14 +01:00
Marcin Grzejszczak
8752cf2324 Added codecov integration 2016-07-14 23:46:04 +02:00
Dave Syer
6f0030bf58 Introduce @AutoConfigureStubRunner in place of autoconfig
In a Spring test user can add this annotation to run stubs
rather than rely on auto configuration (which might not be
welcome outside a test).

Fixes gh-33
2016-07-14 12:59:42 +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
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
Dave Syer
e28bf1f66e Move commons-* dependencies into parent 2016-07-12 18:10:18 +01:00
Dave Syer
ff48c5dbda Add dependencies BOM
Updates to groovy 2.4.7 which makes static compilation stricter
(hence the code changes).

Fixes gh-8
2016-07-12 13:57:57 +01:00
Marcin Grzejszczak
ebf8dd4b67 Bumping WireMock to 2.1.7 (#27)
* Bumping WireMock to 2.1.7
* Added samples to the project
* Updated docs

fixes #26, #7
2016-07-12 13:06:42 +02:00
Dave Syer
dd1410b5f9 Convert samples to Java 2016-07-12 10:45:03 +01:00
Marcin Grzejszczak
1280452a9d Added Circle CI integration 2016-07-11 18:00:18 +02:00
Dave Syer
25f18db8fb Stop managing slf4j explicitly 2016-07-11 12:04:59 +01:00
Marcin Grzejszczak
8523c49d6a Added global unroll dep 2016-07-11 12:10:50 +02:00
Dave Syer
6c287a09ec Wrangle tests to pass 2016-07-11 10:43:34 +01:00