Commit Graph

1241 Commits

Author SHA1 Message Date
Marcin Grzejszczak
39bef2ce08 Fixed equals and hashcode 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
a328130418 WireMock done 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
7558fb183e Polish 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
148dc4effc Added documentation to the new features 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
01460f6d9f Fixed Groovy 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
e7619a1117 Polish 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
6602f98be6 Added option to provide pluggable implementations for stubs 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
f148c5b8bf Using factories 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
d63a557a29 Added Contract converter + Yaml example 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
21458deefc Merge branch '1.0.x' 2016-12-07 16:53:33 +01:00
Marcin Grzejszczak
e3056a4978 #167 updated the regex and tests 2016-12-07 16:53:21 +01:00
Marcin Grzejszczak
9a31405154 Merge branch '1.0.x' 2016-12-07 16:29:29 +01:00
Marcin Grzejszczak
c067774eee Fixed the invalid regex escape
fixes #162
2016-12-07 16:29:11 +01:00
Marcin Grzejszczak
d8ff715527 Bumped up version to 1.1.0 2016-12-07 14:34:56 +01:00
Marcin Grzejszczak
545874c951 Issues #110 user pass (#157)
can now configure username and password authentication and a proxy for accessing stub repository

Fixes #110
2016-12-05 14:56:08 +01:00
Marcin Grzejszczak
cf2dbc24a6 Adds the env prop for every run server (#158)
without this change you can't reference the port of a server as an env var

fixes #147
2016-12-01 22:49:23 +02: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
Marcin Grzejszczak
a5642265cd Fixed the way contracts are packaged and tests are generated for plugins
the biggest problem was related with the scenario in which a jar with shared contracts is downloaded
with this change the output JAR structure is proper

fixes #156
2016-11-24 16:56:58 +01:00
Marcin Grzejszczak
c2a1efa9dc Plugins are generating tests for all contracts when using external contracts
When using contract plugins together with a shared repo with contracts we end up with creating contract tests for all the contracts. Stubs are created properly but tests generation ignores the path pattern.
With this change we fix the way tests are generated

fixes #155
2016-11-23 17:43:25 +01:00
Andy Wilkinson
72e165e4ae Use spring-asciidoctor-extensions to provide tabbed code blocks (#153) 2016-11-21 17:15:33 +01:00
Dave Syer
475fa2a40b Fix escaping of __ 2016-11-21 13:56:14 +00: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
Marcin Grzejszczak
49373eb160 Added docs on extending the DSL
with this change we're explaining how you can add your custom methods to the DSL

fixes #23
2016-11-21 11:46:01 +01:00
Marcin Grzejszczak
b1175ff9bd Simplification of the dsl (#151)
with this change to DSL we're adding some helper methods and DSL simplifications 

- c(...) / p(...) - for consumer / producer
- for regex - e.g. $(anyUrl()) - insead of $(consumer(regex(url()))
- Added helper headers and media types
- Added helper http methods

fixes #149
2016-11-18 15:38:35 +01:00
Marcin Grzejszczak
df80cc8f1f Added execute support for text based responses
without this change it's impossible to execute any custom method to assert a response for a body that is just text
with this change you can do it

fixes #150
2016-11-17 13:15:25 +01:00
Marcin Grzejszczak
d683d3d6f0 Added regex support for text based response
without this change any assertion on a text based response wouldn't work
with this change we start doing regex checks

fixes #150
2016-11-17 12:55:48 +01:00
Dave Syer
fa3c0035e0 Use apache HTTP client instead of JDK
Never got to the bottom of this, but the test failure with the
dropped connection (EOF on socket) seems to go away if we use
the Apache client instead of the JDK.
2016-11-15 09:53:42 +00:00
Marcin Grzejszczak
74574b3dc6 Added exclusion on demand of files from jar
without this change you can't control what should be excluded from your folder in the output stubs jar. That way when having a common repo with contracts you had the whole target put into stubs jar
    with this change you can set e.g. `**/target/**/*.*` to exclude anything from the target folder

    fixes #145
2016-11-14 15:54:57 +01:00
Marcin Grzejszczak
ffc691167f Updated ports 2016-11-14 10:57:59 +01:00
Marcin Grzejszczak
42d82dca23 Prepared code for parallel run 2016-11-14 10:30:04 +01:00
Dave Syer
e93d951d50 Add support for file root location in @AutoConfigureWireMock 2016-11-11 14:15:11 +00:00
Dave Syer
3d4cb355c2 Add support for files in WireMockRestServiceServer 2016-11-11 13:10:27 +00:00
Dave Syer
4829e687d8 Improve test coverage of default stubs locations 2016-11-11 12:55:41 +00:00
Dave Syer
b063612d89 Add support for explicit priority in mock server stubs 2016-11-11 12:33:53 +00:00
Dave Syer
1b3496f492 Switch off web environment in tests
This seems to fix the flickering test problem for me at least.
Not sure why yet, so I'll continue to stare at it.
2016-11-11 11:53:48 +00:00
Marcin Grzejszczak
dcdb7e7f65 Added flaky test support :/ 2016-11-10 13:39:34 +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
Marcin Grzejszczak
235af1df1e Added the work offline switch for Gradle plugin
without this change you have to pass `contractRepositoryUrl` for the contract jar to be downloaded
with this change you can pass the `contractsWorkOffline` flag and the local maven repo will be analyzed

fixes #140
2016-11-08 17:27:43 +01:00
Marcin Grzejszczak
293fa22bf4 Updated contract deps 2016-11-08 17:09:07 +01:00
Marcin Grzejszczak
92cf2cf5c6 Updated Spring Boot starter 2016-11-08 17:03:43 +01:00
Marcin Grzejszczak
24e5155431 Added NPE guard for remoteRepos
without this NPE could be thrown while passing workoffline flag and no remote repos
with this NPE will not be thrown

fixes #138
2016-11-08 16:54:40 +01:00
Marcin Grzejszczak
b3cf4077e2 Fixed the base class name
without this change for convention class names we haven't escaped illegal chars
with this change the illegal chars are escaped and no compilation issues occur

fixes #137
2016-11-08 16:14:20 +01:00
Denis Stepanov
ca1cb9fdf6 Allow empty classifier (#134) 2016-11-07 15:11:16 +01:00
Marcin Grzejszczak
137100c1f7 Updated docs 2016-11-07 14:36:26 +01:00
Marcin Grzejszczak
ba45eb582b Updated docs 2016-11-07 14:35:46 +01:00
Mathias Düsterhöft
6f3c3f850b Enable amqp integration by property (#131)
Fixes #133
2016-11-06 22:34:05 +01:00
Dave Syer
f0549af121 Move spring-cloud-commons to parent 2016-11-03 18:01:58 +00:00
Marcin Grzejszczak
a34e1973f8 Update introduction.adoc 2016-11-01 14:25:29 +01:00
Marcin Grzejszczak
8a9098c8b7 Updated docs with webinar info 2016-11-01 07:42:25 +01:00