Commit Graph

38 Commits

Author SHA1 Message Date
Marcin Grzejszczak
eeb2d87c14 made junit5 default test generation framework (#1320)
fixes #1249
2020-02-07 13:43:30 +01:00
Marcin Grzejszczak
4caf0c9f1c Unignored messaging tests 2020-02-03 17:03:18 +01:00
Marcin Grzejszczak
641c80b38b temporarily ignoring the messaging tests 2020-01-30 14:27:55 +01:00
Marcin Grzejszczak
d1bc8d8d37 Migrated to the new approach for stream - waiting for runtime message polling mechanism 2020-01-30 10:21:26 +01:00
Marcin Grzejszczak
403d369b44 Should work 2020-01-29 19:42:14 +01:00
Marcin Grzejszczak
9e02b7c902 Updated Copyrights 2020-01-28 20:00:13 +01: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
Marcin Grzejszczak
aa48f4ce55 Fixed the build 2019-08-12 16:57:05 +02:00
Marcin Grzejszczak
cd946fe01c Fixed the build 2019-08-12 16:02:36 +02:00
Marcin Grzejszczak
706044bfe5 Added support for writing contracts in Java
fixes gh-1161
2019-08-12 13:40:58 +02:00
Olga Maciaszek-Sharma
d5a631a561 Remove charset from all response content types in samples, as it's been
deprecated in framework.
2019-05-29 22:03:21 +02:00
Olga Maciaszek-Sharma
e0fc7aeca8 Remove charset from pact sample contract media type. Switch to explicitly
returning charset media type for other samples.
2019-05-29 20:50:34 +02:00
Marcin Grzejszczak
55a0ae86c5 Fixed https 2019-03-22 11:41:20 +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
59e5f8b1eb Convert Contract Definitions to YAML (#827)
without this change, if you're using some external libraries and you reference them in your DSL, those libraries need to also be used on the consumer side.

with this change, you can set the contractsToYaml property of the plugin, that will convert the contract definitions into YAML, and then generate tests and stubs. We will store the original contract definitions under the originals folder.

fixes #744
2018-12-27 11:14:31 +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
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
8e4360535c Added HttpStatus delegate in the Groovy DSL Response
with this change there are numerous helper methods that should provide a more descriptive DSL for the response status. Instead of a numerical status you can now call a method e.g. instead of 200 call OK()

fixes gh-575
2018-03-15 10:00:45 +01:00
Marcin Grzejszczak
8b0240ac6b Fixed invalid field reference in docs; fixes gh-539 2018-02-09 15:13:50 +01:00
Marcin Grzejszczak
b745d9a7e3 YAML contracts (#522)
with this change we allow the users to use YAML to define contracts

fixes gh-300 gh-508
helps with #501
2018-01-19 00:27:15 +01:00
Marcin Grzejszczak
7be2d8dad5 Bumped rest assured to 3.0
fixes #267
2017-06-26 18:15:39 +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
221b88044d Merge branch 'master' into features/docs-tuning 2017-04-25 07:42:33 +02: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
d6f2227f89 Referencing request from response (#238)
The best situation is to provide fixed values but sometimes you need to reference a request in your response. In order to do this you can profit from the fromRequest() method that allows you to reference a bunch of elements from the HTTP request. You can use the following options:

- `fromRequest().url()` - return the request URL
- `fromRequest().query(String key)` - return the first query parameter with a given name
- `fromRequest().query(String key, int index)` - return the nth query parameter with a given name
- `fromRequest().header(String key)` - return the first header with a given name
- `fromRequest().header(String key, int index)` - return the nth header with a given name
- `fromRequest().body()` - return the full request body
- `fromRequest().body(String jsonPath)` - return the element from the request that matches the JSON Path

fixes #237
2017-03-02 10:14:10 +01:00
Marcin Grzejszczak
b098e300e5 Merge branch '1.0.x' 2016-12-14 22:02:01 +01:00
Marcin Grzejszczak
f9961d17f6 Fixed missing regex value generation
without this change the autogenerated tests were wrong and contained a 'cursor' value
with this change it got fixed

fixes #168
2016-12-14 21:58:01 +01:00
Marcin Grzejszczak
06243abe3c Added a test with multiple contracts in a file 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
84d361bae7 Adding tests for multiple contracts 2016-12-07 22:24:34 +01:00
Marcin Grzejszczak
ffc691167f Updated ports 2016-11-14 10:57:59 +01:00
Marcin Grzejszczak
e8917940ec Added option of multiple test base classes
without this change the user was forced to use a single base class for all of the generated tests. It could become problematic after some time.

With this change we provide a range of options of providing different base classes for different contracts.

fixes #16
2016-09-23 15:52:14 +02:00
Dave Syer
1a8c1214c4 Add support for restdocs in a crude way 2016-07-26 14:28:43 +01:00