Commit Graph

82 Commits

Author SHA1 Message Date
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
6f116a0b6a Fixing the conditional on class
without this change if one doesn't have spring integration java dsl on classpath and uses Stream the app will break on boot
with this change the wrong class on the conditional on class gets fixed

fixes #100
2016-10-10 17:29:03 +02:00
Marcin Grzejszczak
f56eba4136 Fixing the tests for Windows 2016-10-10 14:52:14 +02:00
Marcin Grzejszczak
118dd8e04f Fixing the tests for Windows 2016-10-10 14:09:02 +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
788b35aedb Stubbing service discovery out completely
without this change if you have a DiscoveryClient bean it's used for delegation. For tests with Stub Runner actually we don't want to delegate. There is an option however to turn on this delegation

fixes #82
2016-09-23 10:41:02 +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
8bca6f22e6 Removed the CloudFoundry AutoConfig 2016-09-20 16:19:50 +02:00
Marcin Grzejszczak
8bb5ce7297 Added AutoConfiguration available for Cloud profile that stubs out service discovery
will work only if the library is available at runtime (which shouldn't take place apart from testing environments)
2016-09-19 19:42:10 +02:00
Dave Syer
06c9db932e Rationalize dependency management in BOMs 2016-09-19 12:02:25 +01:00
Marcin Grzejszczak
d510e8bdf3 Updated hostname for registered stubs 2016-09-16 16:28:58 +02:00
Marcin Grzejszczak
8c89ec48b7 Added EurekaClientConfigBean 2016-09-16 14:54:34 +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
30e149694e Moved message collector to a separate config 2016-09-02 17:41:20 +02:00
Marcin Grzejszczak
49c5089b40 Added missing beans + Added auto creation of message channels 2016-09-02 17:06:18 +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
4101014115 Simplified eureka ribbon integration 2016-08-26 23:27:34 +02:00
Marcin Grzejszczak
6a7aebf1ad Bumping to Camden versions of apps
TODO: currently to make things work I had to pass ribbon.eureka.enabled=false, I'll have to think if I can somehow override it. The problem is that I have a lot of stuff on the classpath...
2016-08-26 16:43:40 +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
43082d8ca6 Updated the documentation 2016-08-24 17:57:18 +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
3f799405a4 Fixed wrong ConfigurationProperties setting 2016-08-22 16:30:51 +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
c7665db7d9 Fixed code style issues 2016-08-12 11:46:41 +02: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
Dave Syer
88429ceada Use jopt instead of args4j (like Spring Boot does) 2016-07-29 08:57:42 +01:00
Dave Syer
4e21cbd884 Fix name of artifact in dsl test 2016-07-26 17:51:04 +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
Marcin Grzejszczak
d3eef8d1ba Removed spring version from poms 2016-07-22 14:43:40 +02:00
Marcin Grzejszczak
5ef7a7fee2 Changed client / server to consumer / producer 2016-07-21 12:08:38 +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
251e160e9b Added starters
fixes #40
2016-07-20 14:35:12 +02:00
Marcin Grzejszczak
1bbf572d4c Fixed the pomx 2016-07-19 19:50:23 +02:00
Marcin Grzejszczak
f389d59798 Updated docs 2016-07-19 19:22:32 +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
3d1d96c55c Collapse stub runners into one project 2016-07-19 15:22:19 +01:00
Dave Syer
675278eb4f Remove some references to deleted projects 2016-07-19 14:35:08 +01:00
Dave Syer
4137d964f8 Move verifier up to top level 2016-07-19 14:35:08 +01:00
Marcin Grzejszczak
9b7fe97a54 Minor polishing 2016-07-19 14:27:53 +02:00
Dave Syer
2143574868 Rename (again) StubMessages -> MessageVerifier
It's not a stub, it's just a wrapper around the underlying
messaging framework.
2016-07-19 12:01:11 +01:00
Dave Syer
7cdf36127e Finish refactoring in tests 2016-07-19 11:10:47 +01:00
Dave Syer
ca95b7f53b Consolidate messaging interface names (StubMessages) 2016-07-19 11:09:01 +01:00
Dave Syer
a46766bd0b Remove commons-io dependency 2016-07-19 10:34:33 +01:00