Stef Heyenrath
8b03307a94
Add some methods to the BodyModelBuilder ( #1116 )
...
* Add some methods to the BodyModelBuilder
* .
2024-06-08 09:26:21 +02:00
Stef Heyenrath
86f8877039
Fix JsonMatcher if IgnoreCase and Regex are used
2024-06-08 09:11:22 +02:00
Stef Heyenrath
43746631e1
Add some Extension methods to IWireMockAdminApi ( #1113 )
2024-06-04 14:28:07 +02:00
Stef Heyenrath
17f5ab5145
Add "/__admin/health" endpoint ( #1112 )
2024-06-03 10:59:44 +02:00
Stef Heyenrath
ea4ea95866
Fix Request.Create().WithBodyAsJson(...) ( #1111 )
...
* Fix Request.Create().WithBodyAsJson(...)
* [CodeFactor] Apply fixes
---------
Co-authored-by: codefactor-io <support@codefactor.io >
2024-05-25 09:09:03 +02:00
Stef Heyenrath
dd35cea44e
When only Port is provided, bind to * ( Fixes #1100 ) ( #1107 )
...
* Fix for #1100
* tst
2024-05-22 16:33:35 +02:00
Stef Heyenrath
2c001f661d
Add support to bind to ip-address instead of only localhost ( #1100 )
...
* Add support to bind to ip-address instead of only localhost
* .
* .
2024-05-17 21:46:07 +02:00
Aaron Sherber
0b278dbbbb
Use try..catch to set encoding in WireMockConsoleLogger ( #1104 )
2024-05-17 20:58:08 +02:00
Stef Heyenrath
add3f662ba
Fix build for .NET Framework example projects #1103
2024-05-17 10:05:54 +02:00
Stef Heyenrath
e20a90b615
Fix MappingConverter to support Body with JsonMatcher ( #1101 )
...
* Fix MappingBuilder for Body
* .
* .
* Fix MappingConverter
2024-05-08 17:40:53 +02:00
Stef Heyenrath
9210957e55
Update Handlebars.Net ( #1093 )
...
* Use latest version (2.4.2) from Handlebars.Net.Helpers
* .1
2024-04-25 10:40:31 +02:00
Stef Heyenrath
c135854cbe
1.5.52
2024-04-06 18:14:40 +02:00
Stef Heyenrath
54fe0823dc
Add RegEx support to JsonMatcher ( #1091 )
...
* json matcher regex
* better test
* regression
2024-04-06 18:08:45 +02:00
Stef Heyenrath
d5fa385a46
Fix FluentAssertions (actual body is not displayed in error message) ( #1085 )
...
* Fix FluentAssertions (actual body is not displayed in error message)
* .
* .
* raw
2024-03-20 08:24:43 +01:00
Stef Heyenrath
511540a7f1
Make WireMockAssertions extendable ( #1082 )
2024-03-12 20:27:12 +01:00
Stef Heyenrath
5b609915e1
Fix FluentAssertions on Header(s) ( #1080 )
...
* Fix FluentAssertions on Header(s)
* ...
2024-03-09 08:39:52 +01:00
Stef Heyenrath
fcd67466b5
Upgrade ProtoBufJsonConverter to fix issue with dot(s) in package name ( #1078 )
2024-03-06 13:44:10 +01:00
Stef Heyenrath
ce833c1f29
Extend TypeLoader ( #1069 )
...
* Extend PluginLoader
* rename
2024-02-23 08:51:38 +01:00
Stef Heyenrath
97a749d54a
Fix some SonarCloud issues ( #1058 )
...
* Fix some SonarCloud issues
* added some xml comments
2024-02-17 13:32:28 +01:00
Stef Heyenrath
6ac95cf57d
Add Grpc ProtoBuf support (request-response) ( #1047 )
...
* ProtoBuf
* .
* x
* ---
* x
* fx
* ...
* sc
* ...
* .
* groen
* x
* fix tests
* ok!?
* fix tests
* fix tests
* !
* x
* 6
* .
* x
* ivaluematcher
* transformer
* .
* sc
* .
* mapping
* x
* tra
* com
* ...
* .
* .
* .
* AddProtoDefinition
* .
* set
* grpahj
* .
* .
* IdOrText
* ...
* async
* async2
* .
* t
* nuget
* <PackageReference Include="ProtoBufJsonConverter" Version="0.2.0-preview-04" />
* http version
* tests
* .WithHttpVersion("2")
* <PackageReference Include="ProtoBufJsonConverter" Version="0.2.0" />
* HttpVersionParser
2024-02-16 17:16:51 +01:00
Stef Heyenrath
57c42492bc
Pin the version from Testcontainers to 3.7.0 in WireMock.Net.Testcontainers ( #1057 )
...
* TestcontainersTests
* WireMockContainer_Build_and_StartAsync_and_StopAsync
* --
* [3.7.0]
2024-01-25 09:54:25 +01:00
Stef Heyenrath
b2b7172043
fix: src/WireMock.Net/WireMock.Net.csproj to reduce vulnerabilities ( #1053 )
...
The following vulnerabilities are fixed with an upgrade:
- https://snyk.io/vuln/SNYK-DOTNET-MICROSOFTIDENTITYMODELJSONWEBTOKENS-6148656
- https://snyk.io/vuln/SNYK-DOTNET-SYSTEMIDENTITYMODELTOKENSJWT-6148655
Co-authored-by: snyk-bot <snyk-bot@snyk.io >
2024-01-23 21:32:55 +01:00
Stef Heyenrath
4020a178a6
Add WithoutHeader to WireMock.FluentAssertions ( #1049 )
...
* Add WithoutHeader to WireMock.FluentAssertions
* .
* .
2023-12-27 08:18:56 +01:00
Thomas Levesque
5299ced000
Change FindRequestByMappingGuidAsync to return a collection of entries ( #1046 )
2023-12-23 09:40:35 +01:00
Stef Heyenrath
e4df6cc93d
WireMockServerSettingsParser ( #1044 )
...
* WireMockServerSettingsParser
* nameof
2023-12-22 14:36:42 +01:00
Stef Heyenrath
a8339a0867
FindRequestByMappingGuidAsync ( #1043 )
...
* FindRequestByMappingGuidAsync
* fix
* sc
2023-12-21 20:03:22 +01:00
Stef Heyenrath
4721b73a16
Update Handlebars Transformer logic (ReplaceNodeOptions) ( #1036 )
...
* Update Handlebars Transformer logic (ReplaceNodeOptions)
* okeee
* EvaluateAndKeep = Evaluate
* fix?
* linux
* _
* tt
* xxx
* fx
* x
* fix test
2023-12-21 20:02:58 +01:00
Mindaugas Laganeckas
7b8e7bb684
Implement prefix for saved mapping file ( #1040 )
...
* Implement PrefixForSavedMappingFile
* Add missing new line
* Add missing new line
* Fix warning
* Fix typo
* Change from readonly to const
* Assign default value
* Use nameof()
* Change from readonly to const
* Update tests
* Update failing test
* Rename settingsMock to settings
* Create public const
* Use const from ProxyAndRecordSettings
---------
Co-authored-by: Mindaugas Laganeckas <mindaugas.laganeckas@nexigroup.com >
2023-12-14 08:28:21 +01:00
sameena syed
97d26338e6
Proxy all requests - even a repeated one ( #1038 )
...
* Adding proxyall
* Adding proxyAll flag
* Reverting extra spaces added
* Make proxyall to true
* Resolving review comments for proxyall
* Resolving codefactor spaces in the code
* Adding proxyall parser in wmserversettingsparser
---------
Co-authored-by: Sameena Syed <sameena.syed@nexigroup.com >
2023-12-11 17:16:30 +01:00
Stef Heyenrath
0c6129e86b
Add ProxyUrlReplaceSettings to Response ( #1026 )
2023-12-10 09:57:37 +01:00
Stef Heyenrath
8e1b6f87f0
Workaround for: Random.Generate Type="Long" ( #1034 )
...
* Workaround for: Random.Generate Type="Long"
* x
* 11
* .
* 2
2023-12-09 09:18:16 +01:00
Stef Heyenrath
c6c7ba13b4
Calling Reset also resets the scenarios ( #1031 )
...
* Calling Reset also resets the scenarios
* .
2023-12-07 16:03:37 +01:00
Stef Heyenrath
932dde07e4
FixMapping[] for WireMock.Org REST API ( #1023 )
2023-12-06 09:24:58 +01:00
Stef Heyenrath
8b91cec457
Add .NET 8 ( #1018 )
...
* Add .NET 8
* 'Use .NET 8'
* tests 8
* 8
* tc8
* ci
* CI
2023-12-04 18:05:18 +01:00
Stef Heyenrath
fb3ae53e1c
GraphQL - custom scalar support ( #1012 )
...
* x
* CustomScalars
* more tests
* .
* add or set
* ...
* x
2023-12-04 18:02:03 +01:00
Stef Heyenrath
7160dbdd19
FluentAssertions - WithBody and WithBodyAsJson and WithBodyAsBytes ( #1014 )
...
* WithBody
* .
* fix
* .
* .
2023-11-04 16:17:23 +01:00
Stef Heyenrath
2f29d80336
Add more tests for JmesPathMatchers and StringUtils.ParseMatchOperator ( #1009 )
...
* Add more tests for JmesPathMatchers and StringUtils.ParseMatchOperator
* .
* prio
2023-10-16 17:13:52 +02:00
Stef Heyenrath
f7cd4b100e
GraphQL - add support for standard scalar types in the schema ( #1011 )
...
* GraphQL: register BuiltInTypes
* GraphQLMatcher_For_ValidSchema_And_CorrectGraphQL_Mutation_IsMatch
2023-10-16 16:13:53 +02:00
Stef Heyenrath
62fa4666b5
Add unit tests for HttpClient with WebProxy ( #1010 )
...
* Add test for SSL / Https
* Add unit tests for HttpClient with WebProxy
* cert.pem
* x
* skip
* example google
* revert
* host tests
* sonar
2023-10-14 17:55:29 +02:00
Stef Heyenrath
bc75db8c8c
Fix RequestMessageParamMatcher : RejectOnMatch ( #1006 )
2023-10-09 18:28:22 +02:00
Carsten Alder
60bf12e2a9
Support for xml namespaces in XPathMatcher ( #1005 )
...
* Support for xml namespaces in XPathMatcher
* Review findings of Stef implemented.
* Fix of build error
* New review findings by Stef
---------
Co-authored-by: Carsten Alder <carsten.alder@schleupen.de >
2023-10-02 19:29:31 +02:00
Stef Heyenrath
9f9fc85a64
JmesPathMatcherTests ( #998 )
2023-09-27 21:42:34 +02:00
Stef Heyenrath
b63076a9ac
Fix MappingModel to map IgnoreCase and RejectOnMatch for Headers, Cookies and Parameters ( #1004 )
2023-09-26 21:01:33 +02:00
Stef Heyenrath
b9a8ee4145
Fixed logic for SaveUnmatchedRequests ( #1002 )
...
* Fixed logic for SaveUnmatchedRequests
* fix
2023-09-21 11:38:01 +02:00
Stef Heyenrath
59aab9e1c3
Remove dependency on Microsoft.AspNet.WebApi.Client ( #996 )
...
* Using an alias for System.Net.Http.Formatting
* .
* fix
* space
2023-08-29 17:53:17 +02:00
Stef Heyenrath
93c87845c2
Write logging in case a Matcher throws an exception ( #986 )
...
* ThrowException
* ...
* .
* ...
* b
* fix test
* ...
* .
* sonar
* ft
* .
* fix tst
2023-08-21 20:07:46 +02:00
Stef Heyenrath
f0139eb837
Update comment in JsonPathMatcher.cs
2023-08-17 17:22:05 +02:00
DayLightDancer
8adf34fb56
Update JSONPathMatcher.cs to cover the string path selection to a child ( #993 )
...
* Update JSONPathMatcher.cs to cover the string path selection to a child
The .SelectToken method accept string path selection and JSONPath queries. The current code works only for the queries because the result is JObject. When the string path is selected the result is JValue and event with a valid result the code the code doesn't return valued result.
https://www.newtonsoft.com/json/help/html/SelectToken.htm
* Added unit tests
* Addressed the comments
* Addressed the comments
* Update JSONPathMatcher.cs
2023-08-17 17:18:32 +02:00
Stef Heyenrath
b986633eca
Fix MimeKitLite NuGet include ( #989 )
...
* Fix 500
* MimeKiteLite : fix NuGet include
* .
2023-08-04 10:44:53 +02:00
Stef Heyenrath
4688f556b5
Add MultiPart/MimePart Request Matcher ( #981 )
...
* wip
* .
* mm
* x
* .
* .
* .
* tests
* .
* more tests
* trans
* x
* win
* fix
* .
* tests
2023-08-03 15:55:46 +02:00