Commit Graph

561 Commits

Author SHA1 Message Date
Marcin Grzejszczak
28abd6fdce Added username and password for Gradle contract downloading
without this change you can't generate tests when working with Gradle that is to download contracts from an external repo

fixes #333
2017-07-13 18:59:20 +02:00
Marcin Grzejszczak
7328012989 Merge branch 'master' into 2.0.x 2017-07-13 15:30:50 +02:00
Marcin Grzejszczak
0c234e089c Adding option to dump mappings to files (#356)
without this feature we're missing an option to print all mappings registered for servers
with this feature it will be much easier to debug what was registered in which http server stub. The mappings will be dumped to files with name artifactName_registeredPort

fixes #355
2017-07-13 15:30:34 +02:00
Marcin Grzejszczak
81f72b371e Merge branch 'master' into 2.0.x 2017-07-05 12:48:31 +02:00
Marcin Grzejszczak
528e41d6c6 Merge branch '1.1.x' 2017-07-05 12:48:17 +02:00
Marcin Grzejszczak
f6d5ee1baa Not using File.separator in ant path pattern
should fix issues for Windows

fixes #349
2017-07-05 12:47:51 +02:00
Marcin Grzejszczak
935171c13a Merge branch 'master' into 2.0.x 2017-07-03 13:03:45 +02:00
Marcin Grzejszczak
476baa1c63 Merge branch '1.1.x' 2017-07-03 13:03:31 +02:00
Marcin Grzejszczak
8c96a21abf Fixed caching of downloaded contracts in Gradle
without this change when using a daemon, for snapshot versions of downloaded contracts allways the same folder is returned
with this change we cache only non snapshot artifacts; also there's a switch you can set to disable caching at all

fixes #343
2017-07-03 12:52:48 +02:00
Marcin Grzejszczak
8e41a682fb Merge branch 'master' into 2.0.x 2017-07-02 14:18:15 +02:00
Marcin Grzejszczak
c574c0dc77 Merge branch '1.1.x' 2017-07-02 14:17:57 +02:00
Marcin Grzejszczak
0fbefbaf24 Trying to make the stub runner logic work with changes in sc-common 2017-07-02 14:05:27 +02:00
Marcin Grzejszczak
2d7055560f Going back to snapshots 2017-06-29 08:34:29 +02:00
Marcin Grzejszczak
76e47bfdec Update SNAPSHOT to 2.0.0.M1 2017-06-29 08:24:17 +02:00
Marcin Grzejszczak
f37eb63a1a Merge branch 'master' into 2.0.x 2017-06-26 18:28:33 +02:00
Marcin Grzejszczak
7be2d8dad5 Bumped rest assured to 3.0
fixes #267
2017-06-26 18:15:39 +02:00
Marcin Grzejszczak
b794af1307 Merge branch 'master' into 2.0.x 2017-06-26 14:36:10 +02:00
Marcin Grzejszczak
61411e0831 Don't swallow exceptions when downloading stubs
without this change when any exception occurs (e.g. the stub can't be downloaded) a null will be returned
with this change we want to throw an exception instead

fixes #314
2017-06-26 14:34:29 +02:00
Marcin Grzejszczak
ea75c4d2b6 Updated docs 2017-06-26 13:51:17 +02:00
Marcin Grzejszczak
e8142b4b43 Merge branch 'master' into 2.0.x 2017-06-26 11:38:57 +02:00
Marcin Grzejszczak
a58461f1c0 Bumped libs
WireMock to 2.6.0
 Boot to 1.5.5.BUILD-SNAPSHOT
 jopt to 5.0.3
 spock global unroll to 0.5.1
 hoverfly to 0.2.2
 commons3 to 3.6

fixes #317
2017-06-26 11:01:55 +02:00
Marcin Grzejszczak
2eef44b04a Merge branch 'master' into 2.0.x 2017-06-23 14:36:50 +02:00
Marcin Grzejszczak
22e2284256 Removed deprecations 2017-06-23 14:36:43 +02:00
Marcin Grzejszczak
84d7d82785 moco is failing 2017-06-21 19:26:44 +02:00
Marcin Grzejszczak
2c014d6c3a Merge branch 'master' into 2.0.x 2017-06-21 06:57:34 +02:00
Marcin Grzejszczak
e76d57dcbd Merge branch '1.1.x' 2017-06-21 06:57:23 +02:00
Marcin Grzejszczak
49a542e214 Fixed the logging level for #329 2017-06-21 06:57:13 +02:00
Marcin Grzejszczak
d3a67c7470 Merge branch 'master' into 2.0.x 2017-06-20 23:38:34 +02:00
Marcin Grzejszczak
3e5de6d209 Merge branch '1.1.x' 2017-06-20 21:52:03 +02:00
Marcin Grzejszczak
97380129a4 Fixed wrong contract pattern scanning
e.g. this worked

com/example/foo/...

this didn't

/contract/com/example/foo/...

fixes #335
2017-06-20 21:46:22 +02:00
Marcin Grzejszczak
82fda14b61 Bumped versions 2017-06-20 15:10:16 +02:00
Marcin Grzejszczak
571530e611 maven plugin operational 2017-06-20 12:27:31 +02:00
Marcin Grzejszczak
dde0360f6c Merge branch 'master' into 2.0.x 2017-06-19 18:56:59 +02:00
Marcin Grzejszczak
12ce468b6d Removing deprecations 2017-06-19 18:46:02 +02:00
Marcin Grzejszczak
c1fca13f12 Initial commit 2017-06-15 14:56:18 +02:00
Marcin Grzejszczak
0905469866 Shades aether (#326)
That way we do not interfere with whatever Maven brings on its classpath

without this change deployment might fail due to being unauthorized.
with this change we're shading aether and maven in stub runner. Due to this there is no classpath clash any more

fixes #325
2017-06-14 14:30:56 +02:00
Marcin Grzejszczak
cec5d29f1c Less noise from WireMockHttpServerStub; fixes #329 2017-06-14 14:16:26 +02:00
Marcin Grzejszczak
fe299de7c2 Throwing exception when wanted remote repo and got a local m2 instance
without this change even though we want a remote repo to be used for the artifact we return a cached instance
with this change we're throwing an exception if we can't download the artifact and we found one cached in the local repo

fixes #312
2017-06-01 15:48:13 +02:00
Marcin Grzejszczak
e0ea1b27f0 Bumping versions to 1.1.2.BUILD-SNAPSHOT after release 2017-05-22 23:57:24 +02:00
Marcin Grzejszczak
82f68347fa Going back to snapshots 2017-05-22 23:57:23 +02:00
Marcin Grzejszczak
7a10b3bf34 Update SNAPSHOT to 1.1.1.RELEASE 2017-05-22 23:51:18 +02:00
Marcin Grzejszczak
5d4da96544 Added missing code 2017-05-04 16:34:03 +02:00
Marcin Grzejszczak
1623b56876 Merge branch '1.0.x' 2017-05-04 16:31:42 +02:00
Marcin Grzejszczak
808684fd72 Introduction of "stubs per consumer" approach
There are cases in which 2 consumers of the same endpoint want to have 2 different responses. Without this change we don't support it. We don't support that consumers may overlap with their contracts. The outcome of such overlapping is that the first matching stub will be registered in HTTP server stub and the other will be ignored.
With this change we're allowing such a thing to happen. Each consumer can set the `stubrunner.stubs-per-consumer` flag and the `spring.application.name` or `stubrunner.consumer-name` flag will be taken into consideration. If the consumer's name is present in the path of a stub / contract then its mapping / messaging contract will be reused in tests. If not then it will get ignored

fixes #224
2017-05-04 15:15:10 +02:00
Marcin Grzejszczak
e442dcd47b Updated docs 2017-04-27 17:46:39 +02:00
Marcin Grzejszczak
c9538548fd Adds an option to use StubRunner from classpath (#284)
without this change there's no option to use Stub Runner to pick stubs from classpath
with this change we're adding that option. It's enough for the user not to provide neither the `repositoryRoot` nor `workOffline`. If that's the case then Classpath scanning will take place.

fixes #282
2017-04-27 17:13:15 +02:00
Marcin Grzejszczak
36541edefa Merge branch '1.0.x' 2017-04-26 15:00:02 +02:00
Marcin Grzejszczak
8f838a8a28 Not running HTTP server if there are no mappings / contracts
without this change we're forcing the users to turn on web components even they don't use them
with this change if there are no mappings or contracts then we do not start the web server

fixes #279
2017-04-26 14:36:48 +02:00
Marcin Grzejszczak
08e6493a57 Merge branch '1.0.x' 2017-04-26 13:44:37 +02:00
Marcin Grzejszczak
a075eda67f Added configuration options for JUnit rule & messaging
without this change not only can't you configure messaging for JUnit rule but also the default option is misleading - it fials to send any messages and returns true
with this change we're allowing configuration options and change the default behaviour to throwing unsupported operation exceptions

fixes #280
2017-04-26 13:30:33 +02:00