Commit Graph

3367 Commits

Author SHA1 Message Date
Marcin Grzejszczak
2b0ef2f2fc Don't parse the stream content type to generate stubs
without this change we're parsing the stream's output
with this change we treat it as it is

fixes gh-1535
2020-12-10 13:50:16 +01:00
Marcin Grzejszczak
919f4373db Bumped docker image base to 21.04; upgraded JDK; fixes gh-1579 2020-12-10 13:15:22 +01:00
Marcin Grzejszczak
1c1fb6f23a Makes in progress contract tests disabled
without this change all tests from a package were not generated if at least one was in progress
with this change all tests are generated but those in progress are disabled / ignored

fixes gh-1449
2020-12-10 13:02:58 +01:00
bono007
2eff08d08e Adds info note in Wiremock docs around use of WireMock.resetToDefaultMappings (#1577)
* Adds info note in Wiremock docs around use of WireMock.resetToDefaultMappings when using '_stubs' property.

Fixes gh-1451

* Polished newly added docs w/ proper tense.
2020-12-10 10:37:44 +01:00
bono007
172175929c Removes the exclusions of old asm lib from jsonpath lib. (#1578)
Reverts gh-1568
2020-12-10 08:57:36 +01:00
Marcin Grzejszczak
3ccee094c4 Polish 2020-12-09 11:01:27 +01:00
Marcin Grzejszczak
4b7234d73c Revert "Revert "Support auto configuration on meta-annotations (#1564)""
This reverts commit c5b12b91b5.
2020-12-09 09:30:45 +01:00
Marcin Grzejszczak
a0c3686292 Setting current static WireMock instance when server is already running
without this change when the server was already running we wouldn't set the static WireMock's instance to that running server. That would result in still pointing to a previously started WireMock instance
with this change we're setting the static server instance to the running server

fixes gh-1425
2020-12-09 09:29:29 +01:00
Marcin Grzejszczak
c46118139f Fixed checkstyle 2020-12-08 16:08:49 +01:00
Marcin Grzejszczak
c05e2d4dfb Fixed checkstyle 2020-12-08 14:15:11 +01:00
Marcin Grzejszczak
bfbfe89351 Added better logging messages for WireMock configuration 2020-12-08 14:12:27 +01:00
Marcin Grzejszczak
de8333deed Exludes asm libraries from jsonassert
fixes gh-1568
fixes gh-1561
2020-12-01 13:33:30 +01:00
Marcin Grzejszczak
c5b12b91b5 Revert "Support auto configuration on meta-annotations (#1564)"
This reverts commit e3646988fe.
2020-11-24 08:33:04 +01:00
Fabian Winter
e3646988fe Support auto configuration on meta-annotations (#1564)
With this change, the stubbing of WireMock will be reset even if only a
meta-annotation is annotated with `@AutoConfigureWireMock`.

Fixes gh-1204
2020-11-23 10:27:56 +01:00
bono007
67eb9560a3 Allows @AutoConfigureWireMock to respect user-specified properties in yml (#1566)
Fixes gh-1555
2020-11-23 09:27:50 +01:00
bono007
b0e33b3e90 Adds handling for empty list and empty map response body (#1556)
Fixes gh-1423
2020-11-17 08:31:53 +01:00
Marcin Grzejszczak
3477371021 Fixed naming 2020-11-10 22:07:02 +01:00
Marcin Grzejszczak
6873826d72 Made the StubGenerators not check if they are applicable to a file 2020-11-10 17:51:01 +01:00
Marcin Grzejszczak
0cbf8e9ca7 Introduced File for verifying if a stubgenerator should be used 2020-11-10 14:50:26 +01:00
buildmaster
8871838e69 Bumping versions to 2.2.6.BUILD-SNAPSHOT after release 2020-11-09 11:40:11 +00:00
buildmaster
81d2e7b3e9 Going back to snapshots 2020-11-09 11:40:10 +00:00
buildmaster
1ea1ea7113 Update SNAPSHOT to 2.2.5.RELEASE 2020-11-09 11:28:29 +00:00
Dominik Meister
5eab04c970 Delete only valid mappings before generating stubs at runtime (#1547)
* Delete only valid mappings before generating stubs at runtime

Improvements over the changes in 6d44c54c. We now only delete files
which contain valid mappings before generating stubs at runtime. This
way we ensure that we actually use the newly generated stubs, but still
are able to keep additional files around to be included via
`body(file(...))`.

* Incorporated PR feedback

- Removed HttpServerStubFactory
- Use SpringFactorieLoader to load HttpServerStub implementations
- Added tests for WireMockHttpServerStub#isAccepted(File)
2020-10-31 09:13:33 +01:00
Dominik Meister
6d44c54c80 Don't delete additional files before generating stubs on the fly (#1544)
This behaviour did break contracts which include request or response
bodies from separate files (via the `body(file(...))` directives).
2020-10-30 09:32:25 +01:00
Dominik Meister
692c5cf828 Option to disable '.git' suffix in git URLs (#1539)
Added stubrunner.properties.git.ensure-git-suffix to disable the automatic
addition of '.git' to git URLs.  This adds support for repositories which
don't support these kind of URLs (for example Azure DevOps).

Co-authored-by: Dominik Meister <dominik.meister@helsana.ch>
2020-10-27 17:43:12 +01:00
Marcin Grzejszczak
60ebf1aeda Bumped java docker image version 2020-10-26 12:40:14 +01:00
Stein Martin Hustad
a5f83f946a Fix invalid resource url on windows (#1537) 2020-10-23 11:35:52 +02:00
Henning Garus
e4ed93acbf Autoconfigure a basic ConnectionFactory as RabbitMockConnectionFactory (#1499)
* Autoconfigure a basic ConnectionFactory as RabbitMockConnectionFactory

Autoconfigure a barebones ConnectionFactory implementation instead of CachingConnectionFactory. CachingConnectionFactory would require additional mocking to support its transaction tracking and caching the mocked connection isn't necessary.

Fixes gh-1259

* Add Test

Co-authored-by: Henning Garus <henning.garus@exxeta.com>
2020-09-09 10:33:09 +02:00
Javier Alejandro Miño
0f338ca5a0 bug: fix validations for xml #1494 (#1495) 2020-09-07 09:07:20 +02:00
spencergibb
8cfff1caa3 Updates s-c-build to 2.3.2.BUILD-SNAPSHOT 2020-08-03 13:48:45 -04:00
buildmaster
9908d6ffe9 Bumping versions to 2.2.5.BUILD-SNAPSHOT after release 2020-07-31 22:04:39 +00:00
buildmaster
464046806d Going back to snapshots 2020-07-31 22:04:38 +00:00
buildmaster
2041d753d4 Update SNAPSHOT to 2.2.4.RELEASE 2020-07-31 21:53:12 +00:00
Marcin Grzejszczak
ed146c9712 Fixed jdk version 2020-07-31 13:28:01 +02:00
Marcin Grzejszczak
59dd620415 Added proper conditions for on each execution 2020-07-31 12:46:35 +02:00
Marcin Grzejszczak
cd58c2c69a Fixde calling before / after methods too often 2020-07-31 12:34:47 +02:00
Marcin Grzejszczak
00714aa7e5 Removing port clash 2020-07-31 12:13:53 +02:00
Marcin Grzejszczak
339da7d1d6 StubRunnerExtension can't be registered around non static field
fixes gh-1458
2020-07-31 11:27:35 +02:00
Javier Alejandro Miño
29f9722c97 bug: handle xml with namespaces for validations #1427 (#1446)
fixes gh-1446
2020-07-28 13:40:30 +02:00
Swierkowski
a8fa381281 no length limit in ISO8601_WITH_OFFSET second's decimal fraction (#1456)
Fixes gh-1452
2020-07-24 18:21:14 +02:00
Marcin Grzejszczak
8d46da6199 Added more logging if there are no HTTP stubs in the attached JAR. Fixes gh-1342 2020-07-24 15:54:53 +02:00
Marcin Grzejszczak
3ebd51cdaa Added support for ReactiveDiscoveryClient; fixes gh-1392 2020-07-24 15:27:41 +02:00
Marcin Grzejszczak
db6f51038a Adds missing import for @EnableStubServer, related to gh-1389 2020-07-23 11:38:12 +02:00
Marcin Grzejszczak
51b6bbea4b Upgraded jdk for docker images 2020-07-21 08:40:40 +02:00
Marcin Grzejszczak
ba6bad379e Excluded Jaxb from Rest Assured 2020-07-15 11:55:19 +02:00
Marcin Grzejszczak
13c7d477fb Excluded jaxb-osgi 2020-07-13 14:50:07 +02:00
Marcin Grzejszczak
e49a53f422 Polish 2020-07-13 10:37:47 +02:00
Javier Alejandro Miño
d6cc0fcd65 bug: handle xml with namespaces closes #1427 (#1445) 2020-07-13 08:50:58 +02:00
Budlee
adae31914e Windows file path fix#1374 (#1402)
* Fix for file resolving for Windows

* #1374 Better way to fix issue with file format in FileStubDownloader

* #1374 Remove unused imports

* #1374 forgot to add tests for change

* Add more windows fixes

* Checkstyle fixes gh-1374

Checkstyle fixes gh-1374

* Checkstyle fixes gh-1374

* gh-1374 pr fix

* gh-1374 pr  fixes

* gh-1374 checkstyle changes

* missed off return from statement

* missed off return from statement

* Remove the FileUtils

* Remove the FileUtils
2020-06-20 17:23:32 +02:00
Marcin Grzejszczak
35ecf47432 Added sybmolic links 2020-06-09 16:54:47 +02:00