Commit Graph

561 Commits

Author SHA1 Message Date
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
Dave Syer
a3c493c368 Remove another interface from user API 2016-07-19 08:40:10 +01:00
Dave Syer
03d8554adb Add back the ContractVerifierMessage in an internal package
It's easier to write generated tests with this abstraction, but
it doesn't have to be visible to users.
2016-07-19 07:21:00 +01:00
Dave Syer
a3712e77c4 Make ContractVerifierMessaging independent of the builder interface
The builder is really an internal detail of the messaging support,
so it' sbetter if users just use the send method directly.
2016-07-18 15:52:21 +01:00
Dave Syer
b618ae5868 Simplify the messaging APIs a bit
There is no need for users to know about any special contract-specific
Message object (payload and headers). Once you see that, it seems like
there is no need for it internally either. So this change removes the
message wrapper type and cleans up the interfaces it touches.
2016-07-18 15:39:25 +01:00
Dave Syer
472c6d3882 Add messaging automatically to stub runner autoconfig 2016-07-18 10:54:45 +01:00
Dave Syer
ac873f9c82 Migrate stubrunner config to @ConfigurationProperties 2016-07-18 09:36:48 +01:00
Dave Syer
a4371b1d9f Remove unused logger 2016-07-18 09:00:27 +01:00
Dave Syer
909e14e7ca Flatten stub runner messaging hierarchy 2016-07-16 15:37:57 +01:00
Dave Syer
5f662bc526 Move stub runner server features to main module 2016-07-16 15:02:53 +01:00
Dave Syer
5681cd1d55 Remove references to old stub runner modules 2016-07-16 10:40:56 +01:00
Dave Syer
8ea90396a6 Merge spring cloud features into main stub runner 2016-07-16 09:56:05 +01:00
Dave Syer
fc7ed47e3d Move stub runner spring into main module 2016-07-16 09:39:34 +01:00
Dave Syer
664082d843 Merge junit features into main stub runner module 2016-07-15 22:03:17 +01:00
Dave Syer
bbec38fa74 Convert stub runner integration to Java 2016-07-15 17:57:37 +01:00
Dave Syer
f1634eb0ff Convert stub runner camel to Java 2016-07-15 17:28:48 +01:00
Dave Syer
3a85b60408 Convert stub-runner base to Java 2016-07-15 17:10:48 +01:00
Marcin Grzejszczak
a8a1bc1f2e Updated docs with a fast intro 2016-07-15 14:27:17 +02:00
Dave Syer
94b6f6e0f7 Use the right annotations on test cases 2016-07-14 15:18:41 +01:00
Dave Syer
fbfa19dcbd Fix wrong group id 2016-07-14 14:54:57 +01: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
Dave Syer
f5d3a63869 Remove unused grape config 2016-07-14 09:53:23 +01:00