Commit Graph

3290 Commits

Author SHA1 Message Date
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
Tomasz Kopczynski
d301f547f6 Spring REST Docs integration docs fix (#288)
I believe this was meant to enumerate Spring REST Docs supported technologies. If so, then it should be Rest Assured here.
2017-04-28 18:12:29 +02:00
Marcin Grzejszczak
551f77d0ca Merge branch '1.0.x' 2017-04-28 15:08:06 +02:00
Marcin Grzejszczak
d0841400ef Fixed the test resources for Gradle
wiuthout this change Intellij support wasn't great if one hasn't applied the idea plugin
with this change if someone's using Intellij (we check that by verifying the presence of .idea folder) then we apply the plugin automatically

fixes #286
2017-04-28 15:05:56 +02:00
Marcin Grzejszczak
0c07996d4f Deploying moco-stub jar 2017-04-28 14:10:09 +02:00
Marcin Grzejszczak
97a4d6c101 Merge branch '1.0.x' 2017-04-28 13:15:56 +02:00
Marcin Grzejszczak
8ca2ed6b22 Fixed the way package and class names are generated
with the new layout of contracts and stubs the package name was improperly generated (for chars like +, or digits)
with this change we're converting those chars to _

fixes #276
2017-04-28 12:46:45 +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
0ea4ecc9e7 Merge branch '1.0.x' 2017-04-26 15:07:32 +02:00
Marcin Grzejszczak
c22c47153e Fixed wrong copy paste in the docs
fixes #281
2017-04-26 15:06:00 +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
Marcin Grzejszczak
a804894c9a Updated code and docs 2017-04-26 12:42:33 +02:00
Marcin Grzejszczak
cf52e6baa6 Added support fot dots in keys
without this change it's impossible to work with jsons that have dots in keys
    with this change that's possible again

    fixes #269
2017-04-26 12:12:17 +02:00
Marcin Grzejszczak
cf2e7e0feb Generate code that respects dots in keys
without this change if the user has jsons that contain `.` in a key (e.g. `foo.bar.baz`) then the produced json path is wrong
with this change we're wrapping all keys in `[' ']` format (e.g. `['foo.bar.baz']`) so that the json path gets properly translated

fixes #269
2017-04-25 14:57:07 +02:00
Marcin Grzejszczak
a994f7c17b Merge branch '1.0.x' 2017-04-25 13:15:56 +02:00
Marcin Grzejszczak
0d1b76c471 Fixed wrong test name 2017-04-25 13:15:04 +02:00
Marcin Grzejszczak
2942882775 :Merge branch '1.0.x' 2017-04-25 13:11:32 +02:00
Marcin Grzejszczak
0a09695b5c Fixed missing escaping of . in folder name
fixes #276
2017-04-25 13:07:10 +02:00
Marcin Grzejszczak
c69fd7e660 Fixed invalid activemq setup 2017-04-25 11:37:31 +02:00
Marcin Grzejszczak
50ad67126c Bumped Camel (#278) 2017-04-25 10:39:52 +02:00
Marcin Grzejszczak
b6ef18c0c4 Merge branch 'jkubrynski-features/docs-tuning' 2017-04-25 07:52:12 +02:00
Marcin Grzejszczak
0552560345 Polish 2017-04-25 07:52:00 +02:00
Marcin Grzejszczak
221b88044d Merge branch 'master' into features/docs-tuning 2017-04-25 07:42:33 +02:00
Marcin Grzejszczak
8c8c429dce Merge branch '1.0.x' 2017-04-25 07:41:21 +02:00
Ruslan Stelmachenko
fdd457e912 Fix typo, add links to MockMvc and RestAssured docs (#274)
The `RestAssured` framework was mistakenly named `RestEasy` in the documentation.
2017-04-25 07:41:11 +02:00
Ruslan Stelmachenko
4794354dd6 Fix typo, add links to MockMvc and RestAssured docs (#274)
The `RestAssured` framework was mistakenly named `RestEasy` in the documentation.
2017-04-25 07:40:38 +02:00
Dave Syer
cf637d040f Add custom jetty fault injector for 9.4 2017-04-24 14:45:52 +01:00
Marcin Grzejszczak
5b8256d729 Bumping versions 2017-04-24 15:38:57 +02:00
Marcin Grzejszczak
2380cb483e Merge branch '1.0.x' 2017-04-24 15:07:01 +02:00
Marcin Grzejszczak
1f71cde2be Removed unused import 2017-04-24 15:06:52 +02:00
Marcin Grzejszczak
e9770c6ac2 Fixed the build 2017-04-24 15:05:43 +02:00
Marcin Grzejszczak
c2fdead0b0 Merge branch '1.0.x' 2017-04-24 15:03:09 +02:00
Marcin Grzejszczak
b98223b082 Fixed checkstyle 2017-04-24 15:02:50 +02:00
Dave Syer
f3102d6366 Merge branch '1.0.x' 2017-04-24 09:21:35 +01:00
Dave Syer
d3f6ad90a8 Add a fault injector if server is jetty or tomcat
Tomcat sends a slightly different reponse and the client sees it
differently in the malformed chunk scenario. It would be good to have
the same features for Undertow.

See gh-270.
2017-04-24 09:20:17 +01:00
Dave Syer
225e83d025 Merge branch '1.0.x' 2017-04-21 16:10:30 +01:00
Dave Syer
235281ce9f Add @AutoConfigureHttpClient for SSL validation error handling
For tests only users can add this annotation to make the rest template
in their app ignore SSL validation.
2017-04-21 16:09:08 +01:00
jkubrynski
b600b85908 Polish documentation 2017-04-18 21:41:09 +02:00
Jakub Kubryński
7c8a8b4d33 Simplify samples used in documentation (#268) 2017-04-18 14:17:35 +02:00
Marcin Grzejszczak
3c8b712aa2 Made BlockBuilder public
it's a useful class that can be used by different test generators

fixes #254
2017-04-18 12:06:09 +02:00
Marcin Grzejszczak
60e2fa30c2 Updated docs 2017-04-18 10:19:47 +02:00
Marcin Grzejszczak
bfc0d87053 Merge branch '1.0.x' 2017-04-18 09:53:32 +02:00
Marcin Grzejszczak
4414ffb333 Added one more test 2017-04-18 09:53:08 +02:00
Marcin Grzejszczak
3ace049241 Fixed the quotes in JaxRs entities
without this change we're adding an unnecessary quote around a JaxRs entity
with this change we're ensuring that the quote is not there

fixes #261
2017-04-18 09:49:52 +02:00