0597a73e0e
Create GraphQL project ( #1334 )
...
* Create new project for GraphQL
* ...
* .
* ok?
* Update src/WireMock.Net.Shared/Extensions/AnyOfExtensions.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* --
* ...
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-08-10 19:00:22 +02:00
Sam Fields and GitHub
6ccfe68686
Fixes an issue with matching JSON bodies as bytes ( #1339 )
...
* Fixes an issue with matching JSON bodies as bytes
* Adding tests for exact object matching
* Simplify the check for byte data
2025-08-02 20:11:13 +02:00
Stef Heyenrath and GitHub
e6ff8776fb
Make CSharpCodeMatcher public ( #1337 )
2025-07-23 09:29:53 +02:00
Stef Heyenrath and GitHub
e80d436dd6
Use corerct Handlebars.Net.Helpers.Xslt (2.5.2) ( #1332 )
2025-07-18 10:57:58 +02:00
020cc15420
Correctly map the Pact Interaction Description property ( #1331 )
...
* Correctly map the Pact Interaction Description property
* Update src/WireMock.Net.Minimal/Serialization/PactMapper.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* post
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-18 08:41:04 +02:00
Stef Heyenrath and GitHub
a06ee6b158
Fix HandlebarsContext.ParseAndEvaluate ( #1329 )
2025-07-12 11:05:02 +02:00
b0076b4e81
Implement IMimeMessageData ( #1326 )
...
* Implement IMimeMessageData
* 1
* Update src/WireMock.Net.MimePart/Util/MimeKitUtils.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* v1
* v2
* e
* ?
* fix
* if (Array.TrueForAll(_funcs, func => func(value).IsPerfect()))
* Update src/WireMock.Net.Shared/Util/IMimeKitUtils.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update src/WireMock.Net.Minimal/Matchers/Request/RequestMessageMultiPartMatcher.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update src/WireMock.Net.MimePart/Models/MimeEntityDataWrapper.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Models.Mime.IMimeMessageData? BodyAsMimeMessage { get; }
* Update src/WireMock.Net.MimePart/Util/MimeKitUtils.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update src/WireMock.Net.MimePart/Models/MimePartDataWrapper.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update src/WireMock.Net.MimePart/Models/MimeMessageDataWrapper.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Update src/WireMock.Net.Shared/Util/IMimeKitUtils.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* .
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-07-12 09:54:18 +02:00
Stef Heyenrath and GitHub
6c61f87ef3
Add method CreateHttpClientFactory ( #1325 )
...
* Add method CreateHttpClientFactory
* rev
2025-07-08 10:50:30 +02:00
Stef Heyenrath and GitHub
f80925c1fb
Add Scenario set State method ( #1322 )
...
* Add SetScenarioState
* add tests
* summary
* .
* 1.8.13-preview-01
* fix
* fix name
2025-06-23 08:03:11 +02:00
Stef Heyenrath and GitHub
7b93b2668d
Fix TypeLoader ( #1320 )
...
* no ilmerge
* .
* .
* nullable
* .UsingNuGet
* fix
* .
* directoriesToSearch
* .
2025-06-15 11:44:09 +02:00
Dom Light and GitHub
70a9180af4
Set description when converting MappingModel to IRespondWithAProvider ( #1317 )
...
Adding a mapping with a description to `WireMockServer.WithMapping`
did not include the description to the resulting
`IRespondWithAProvider`, which means that calling
`WireMockServer.SavePact` does not populate the description in the
contract file.
This PR includes the description when mapping from `MappingModel` to
`IRespondWithAProvider`.
2025-06-14 11:13:04 +02:00
Stef Heyenrath and GitHub
77000372c6
Fix for WithTransformer and JsonBody as list ( #1315 )
...
* Fix for WithTransformer and JsonBody as list
* Fix WithTransformer when the response BodyAsJson is a List
2025-06-11 11:51:29 +02:00
Stef Heyenrath and GitHub
ac9c51e34e
Update RandomDataGenerator.Net to 1.0.19 ( #1313 )
...
* Update RandomDataGenerator.Net to 1.0.19
* Handlebars.Net.Helpers
2025-06-11 09:00:23 +02:00
Sébastien Crocquesel and GitHub
8ba243ddcd
Bump Testcontainers version to 4.5.0 ( #1311 )
...
* Bump Testcontainers version to 4.5.0
The Testcontainers dependency Docker.DotNet was bumped to 3.128.1 and is not binary compatible with previous version.
When a user has a direct dependency on Testcontainers 4.5.0, WireMock.Net.Testcontainers fails with :
System.MissingMethodException : Method not found: 'Docker.DotNet.DockerClient Docker.DotNet.DockerClientConfiguration.CreateClient(System.Version)'
* Bump System.Net.Http.Json version to 8.0.1
Minimum required version for Testcontainers 4.5.0
* Do not dispose null container
2025-06-10 22:23:56 +02:00
Stef Heyenrath and GitHub
c1bd2d315f
Update AwesomeAssertions to version 9 ( #1309 )
2025-06-06 21:06:38 +02:00
Stef Heyenrath and GitHub
8917a6eaaa
For some projects, change dependency to WireMock.Net.Minimal ( #1308 )
2025-06-06 11:22:34 +02:00
Stef Heyenrath and GitHub
3cc9040f51
Update RequestModelBuilder (add WithHeader) ( #1306 )
...
* Update RequestModelBuilder (add WithHeader)
* rejectOnMatch
* fix
2025-06-05 12:24:40 +02:00
Stef Heyenrath and GitHub
86d4717216
Add option to provide X509Certificate ( #1303 )
...
* Add option to provide X509CertificateRawData
* X509Certificate
* remove X509CertificateRawData
2025-05-28 07:15:46 +02:00
96eca4262a
Create WireMock.Net.MimePart project ( #1300 )
...
* Create WireMock.Net.MimePart project
* .
* REFACTOR
* ILRepack
* --
* ...
* x
* x
* .
* fix
* public class MimePartMatcher
* shared
* min
* .
* <!--<DelaySign>true</DelaySign>-->
* Update README.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-05-24 12:17:42 +02:00
Stef Heyenrath
339d3ab3a8
Fix CSharpFormatterTests
2025-05-22 08:42:23 +02:00
Stef Heyenrath
17545da2c3
Add extra unit test test to CSharpFormatterTests
2025-05-22 08:14:45 +02:00
Asaf Agami and GitHub
b4279be3cb
Fix exception when converting json array to C# code ( #1301 )
2025-05-22 07:54:58 +02:00
Stef Heyenrath and GitHub
d628ce2270
Fix BodyParser to correctly check for json ( #1297 )
...
* Fix BodyParser to correctly check for json
* JsonUtils
2025-05-21 17:28:29 +02:00
Stef Heyenrath and GitHub
1e23c58bf2
Use TinyMapper.Signed ( #1299 )
...
* Use TinyMapper.Signed
* <PackageReference Include="TinyMapper.Signed" Version="4.0.0" />
2025-05-17 18:29:03 +02:00
Stef Heyenrath and GitHub
61b6eb8752
Content-Type multipart/form-data header should also be proxied ( #1296 )
2025-05-15 18:21:21 +02:00
Stef Heyenrath
baa33552e9
1.8.5
2025-05-14 07:34:04 +02:00
Stef Heyenrath and GitHub
7596967fcc
Grpc: Fix parsing null value for google.protobuf.Timestamp ( #1293 )
...
* Add another example for Grpc client + mapping
* <PackageReference Include="ProtoBufJsonConverter" Version="0.9.0" />
2025-05-10 12:53:18 +02:00
Stef
b43be28b5f
1.8.4
2025-05-08 20:15:23 +02:00
Stef Heyenrath and GitHub
5ed09d84a3
Use ILRepack to include Microsoft.OpenApi as internal ( #1290 )
...
* .
* Use ILRepack to include Microsoft.OpenApi as internal
* ...
* OpenApiSpecificationVersion
* .
* 080
* 4
2025-05-08 20:11:41 +02:00
249b3562ab
Update AzureADAuthenticationMatcher to support V2 Azure AAD tokens ( #1288 )
...
* Update AzureADAuthenticationMatcher to support V2 Azure AAD tokens
* fix ;-)
* add tests
* Update test/WireMock.Net.Tests/Authentication/MockJwtSecurityTokenHandler.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* .
* WIREMOCK_AAD_TENANT
* update logging
* throw new SecurityTokenInvalidIssuerException($"tenant {extractedTenant} does not match {_tenant}.");
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-05-06 18:49:21 +02:00
Stef Heyenrath and GitHub
4303706530
Update ProtoBufJsonConverter to fix conflict for 'MessageOptions' ( #1291 )
...
* Update ProtoBufJsonConverter to fix conflict for 'MessageOptions'
* <PackageReference Include="ProtoBufJsonConverter" Version="0.8.0" />
2025-05-05 10:21:15 +02:00
Stef Heyenrath
5c8105b50d
move 'WireMock.Net.OpenApiParser.Preview' to ''src-preview' folder
2025-05-02 09:15:59 +02:00
Stef Heyenrath
630ffab56e
Do not generate NuGet for WireMock.Net.OpenApiParser.Preview
2025-05-02 08:50:32 +02:00
Stef Heyenrath
c181d0286a
Do not generate NuGet for WireMock.Net.OpenApiParser.Preview
2025-05-02 08:41:51 +02:00
Stef Heyenrath and GitHub
cf0dcf5855
Revert changes to WireMock.Net.OpenApiParser ( #1289 )
...
* Revert changes to WireMock.Net.OpenApiParser
* revert
2025-05-02 07:18:35 +02:00
Jonathan Mezach and GitHub
8a07286b89
Add an launch inspector command to Aspire Dashboard ( #1283 )
...
* Upgrade to Aspire 9.2.0
Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com >
* Remove workload installs from CI pipeline
Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com >
* Missed package upgrade
Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com >
* Fix usings
Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com >
* Add Open Inspector command
Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com >
* Fix broken test
Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com >
* PR comments
Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com >
* More PR comments
Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com >
---------
Signed-off-by: Jonathan Mezach <jonathan.mezach@rr-wfm.com >
2025-04-25 20:23:19 +02:00
Emil Tang Kristensen and GitHub
9392069f8a
Enable support for WireMock Middleware in Hosted Services ( #1285 )
2025-04-25 16:35:55 +02:00
4368e3cde6
1.7.x ( #1268 )
...
* Fix construction of path in OpenApiParser (#1265 )
* Server-Sent Events (#1269 )
* Server Side Events
* fixes
* await HandleSseStringAsync(responseMessage, response, bodyData);
* 1.7.5-preview-01
* IBlockingQueue
* 1.7.5-preview-02 (03 April 2025)
* IBlockingQueue
* ...
* Support OpenApi V31 (#1279 )
* Support OpenApi V31
* Update src/WireMock.Net.OpenApiParser/Extensions/OpenApiSchemaExtensions.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* fx
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
* Add ProtoDefinitionHelper.FromDirectory (#1263 )
* Add ProtoDefinitionHelper.FromDirectory
* .
* unix-windows
* move test
* imports in the proto files indeed should use a forward slash
* updates
* .
* private Func<IdOrTexts> ProtoDefinitionFunc()
* OpenTelemetry
* .
* fix path utils
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com >
2025-04-23 11:51:44 +02:00
Stef Heyenrath and GitHub
fc0f82db33
Add HandlebarsSettings ( #1271 )
...
* Add HandlebarsSettings class
* DefaultAllowedHandlebarsHelpers
* HB - 2.5.0-preview-01
* readme
* fix
* readme
* Handlebars.Net.Helpers Version="2.5.0"
2025-04-23 07:47:37 +02:00
jollyjoyce1995 and GitHub
d9a7e80360
changed null check in JSONPathMatcher and JmesPathMatcher to ensure that the body is not an empty string (the json parse would throw an exception at this point) ( #1278 )
2025-04-23 07:30:52 +02:00
04d53f3a9e
feat(awesome-assertions): Added new project WireMock.Net.AwesomeAssertions ( #1273 )
...
* feat(awesome-assertions): Added new project WireMock.Net.AwesomeAssertions
* feat(awesome-assertions): Applied dotnet naming convention for private readonly fields
---------
Co-authored-by: Francesco Venturoli <f.venturoli@crif.com >
2025-04-22 22:51:40 +02:00
Stef Heyenrath and GitHub
5abb424d3c
Add extra JsonPartialWildcardMatcher Tests ( #1267 )
...
* Add extra JsonPartialWildcardMatcher Tests
* responseText.Should().Contain
2025-04-02 08:57:44 +02:00
Stef Heyenrath and GitHub
ff36c1ee6f
Merge commit from fork
2025-03-04 17:58:38 +01:00
Stef Heyenrath and GitHub
7c68fc1d94
Add ToArray() to ConcurrentObservableCollection ( #1256 )
...
* Add ToArray() to ConcurrentObservableCollection
* ---
2025-02-27 07:12:05 +01:00
Stef Heyenrath and GitHub
f977b3eb86
Update QueryStringParser to support param with equal but no value ( #1253 )
...
* RequestMessageParamMatcher
* ?
* .
* .
2025-02-13 18:09:18 +01:00
Stef Heyenrath and GitHub
e8de5aa73c
Add ProtoDefinition to WireMockContainer ( #1250 )
...
* AddProtoDefinitionAsync
* ...
* Body
* "
* .
* .
* .
* [Fact(Skip = "new docker is needed")]
* x
2025-02-12 06:08:55 +01:00
Stef Heyenrath and GitHub
a02ff47db6
Update WireMockProtoFileResolver and add tests for ProtoBufUtils ( #1252 )
...
* Update WireMockProtoFileResolver and add tests for ProtoBufUtils
* .
2025-02-01 22:27:32 +01:00
JvE-iO and GitHub
29bf9b42f8
Add exception message to logging when mapping fails due to an exception. ( #1248 )
...
* Add exception message to logging when mapping fails due to an exception.
* Revert "Add exception message to logging when mapping fails due to an exception."
This reverts commit eb7cf46c95 .
* Fix loggers with improved exception logging.
2025-01-30 10:59:22 +01:00
Stef Heyenrath and GitHub
52b00d74a9
Add "AddUrl" to WireMockContainerBuilder to support grpc ( #1246 )
...
* Add "AddUrl" to WireMockContainerBuilder to support grpc
* fix
* fix for windows
* wip
* fix !
* change some example code
2025-01-29 22:09:17 +01:00
Stef Heyenrath and GitHub
fa8f45a7ac
Use Handlebars.Net.Helpers version 2.4.10 ( #1245 )
2025-01-26 08:52:37 +01:00