Commit Graph

44 Commits

Author SHA1 Message Date
Marcin Grzejszczak
a98160d358 Fixed invalid URL in YAML 2020-08-07 14:04:45 +02:00
Marcin Grzejszczak
242c8208a9 Adds metadata to contracts (#1466)
fixes #1340
fixes #1078 
fixes #1406
2020-08-04 13:36:22 +02:00
Marcin Grzejszczak
eeb2d87c14 made junit5 default test generation framework (#1320)
fixes #1249
2020-02-07 13:43:30 +01:00
Marcin Grzejszczak
641c80b38b temporarily ignoring the messaging tests 2020-01-30 14:27:55 +01:00
Marcin Grzejszczak
9e02b7c902 Updated Copyrights 2020-01-28 20:00:13 +01:00
Marcin Grzejszczak
ebefa5a07d Fixed the broken build 2019-10-04 10:51:15 +02:00
Marcin Grzejszczak
edf463d715 Fixed the samples 2019-08-28 16:05:52 +02:00
Marcin Grzejszczak
2098e81ece Removed a handful of samples 2019-08-28 15:13:06 +02:00
Tim Ysewyn
81df1a53a1 Fixed flakey test with fixed stub runner port 2019-08-13 18:55:55 +02:00
Marcin Grzejszczak
706044bfe5 Added support for writing contracts in Java
fixes gh-1161
2019-08-12 13:40:58 +02:00
Marcin Grzejszczak
48cdd556f7 Updated the docs for the stubs protocol 2019-08-07 21:38:14 +02:00
Marcin Grzejszczak
2be3d0ab86 Added the option "inProgress" to the contract
without this change we can't have a contract that will generate a stub but not a test. Of course that's for a reason since it's overriding the very essence of contract test.
with this change we assume that the users know what they're doing and that they will use this flag rarerly. Cause it means that you can have a false positive.

related to gh-881
2019-08-06 15:39:32 +02:00
Marcin Grzejszczak
dbb1af8d98 Generate stubs at runtime (#1152)
* Generate stubs at runtime

without this change the producer side must publish the stubs for the consumer side to use them
with this change the consumer can toggle a switch so that the stubs get generated at runtime. This might of course lead to false positivies but we assume that the users know what they're doing

fixes gh-881
2019-08-05 10:44:35 +02:00
Marcin Grzejszczak
74e65ec724 License 2019-03-22 12:42:00 +01:00
Marcin Grzejszczak
55a0ae86c5 Fixed https 2019-03-22 11:41:20 +01:00
Marcin Grzejszczak
4da781b214 HTTP to HTTPS 2019-03-07 13:50:15 +01:00
Marcin Grzejszczak
8ce80e6e7f Applied checkstyle rules 2019-02-08 18:20:59 +01:00
Marcin Grzejszczak
56fbc11f62 Allows passing of regex type (#832)
without this change if one does $(regex("[0-9]")) we have no knowledge of whether the result should be text or a number. What we do ATM is we always generate a String
with this change once can pass the type of regular expression and we will generate the concrete value of that given type

fixes gh-768
2018-12-28 16:29:32 +01:00
Marcin Grzejszczak
0058b987ae Adds support for binary payloads (#818)
with this change we're adding support for binary payloads both for HTTP and messaging.

fixes #664
2018-12-15 14:06:17 +01:00
Marcin Grzejszczak
cb31ca7bf1 Removed DirtiesContext 2018-08-08 21:58:04 +02:00
Marcin Grzejszczak
8bb61176ea Removed dirties context on any tests 2018-08-08 18:00:58 +02:00
Marcin Grzejszczak
c9228969de Closing and restarting WireMock stub after and before each test (#707)
fixes gh-665
2018-08-08 17:52:28 +02:00
Henry Jonathan
d72524173d Contract for multipart/mixed endpoint backport to 1.2.x (#662)
* apply cherry pick based on b965c49a7e and fix conflict
2018-06-08 12:25:37 +02:00
Marcin Grzejszczak
6462ddd842 Fixed standalone gradle build 2018-04-11 17:12:08 +02:00
Marcin Grzejszczak
d7daa7a6c4 Fixed tests to use rest assured to test multipart 2018-04-11 16:39:28 +02:00
Marcin Grzejszczak
b965c49a7e Added support for multipart with content type, fixes gh-599 2018-04-11 15:37:13 +02:00
Marcin Grzejszczak
34f367e62b Merge branch '1.2.x' 2018-04-11 12:48:22 +02:00
Marcin Grzejszczak
a0641790a9 Wiremock stubs with cookies + some tests 2018-04-11 10:05:43 +07:00
Marcin Grzejszczak
6402e14f3c Added support for Stub Runner and Pact Broker
fixes gh-191
commit 533f1d3d0e8f6dcd37677bfef555fc2ea86bc1b1
Author: Tim Ysewyn <Tim.Ysewyn@me.com>
Date:   Wed Mar 7 15:56:48 2018 +0100

    Upgraded pact-jvm-model to 3.5.13
2018-04-02 22:50:40 +02:00
Marcin Grzejszczak
d80f31b72a Merge branch '1.2.x' 2018-01-25 12:50:49 +01:00
Marcin Grzejszczak
748e512f4d Introduces explicit mode of stub downloading (#503)
* Introduces explicit mode of stub downloading

you have to explicitly provide the mode [CLASSPATH, REMOTE, LOCAL] of how you want to fetch and register stubs

fixes gh-287
2018-01-03 08:25:29 +01: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
Jakub Kubryński
7c8a8b4d33 Simplify samples used in documentation (#268) 2017-04-18 14:17:35 +02:00
Marcin Grzejszczak
06243abe3c Added a test with multiple contracts in a file 2016-12-07 22:24:34 +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
ffc691167f Updated ports 2016-11-14 10:57:59 +01: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
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
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
012eac8f3c Fixing the build (#63)
we are installing artifacts twice. With Maven and Gradle then. We need to change that.

fixes #62
2016-08-22 11:33:17 +02:00
Dave Syer
4e21cbd884 Fix name of artifact in dsl test 2016-07-26 17:51:04 +01:00
Dave Syer
f7e4e036bd Fix standalone test scripts 2016-07-26 16:25:25 +01:00
Dave Syer
1a8c1214c4 Add support for restdocs in a crude way 2016-07-26 14:28:43 +01:00