Stef Heyenrath
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
7b93b2668d
Fix TypeLoader ( #1320 )
...
* no ilmerge
* .
* .
* nullable
* .UsingNuGet
* fix
* .
* directoriesToSearch
* .
2025-06-15 11:44:09 +02:00
Dom Light
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
Sébastien Crocquesel
2a010dcd42
Use default resource cleaning behavior in test ( #1316 )
2025-06-12 22:06:58 +02:00
Stef Heyenrath
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
ec248a9a78
Fix TestcontainersTests to ignore exception when stopping ( #1314 )
2025-06-11 11:12:58 +02:00
Stef Heyenrath
2f7e3a3178
Update TestcontainersTests to ignore exception when stopping
2025-06-11 10:21:42 +02:00
Sébastien Crocquesel
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
d4b95e73ea
Remove unit test which uses postman-echo
2025-06-10 13:16:24 +02:00
Stef Heyenrath
3cc9040f51
Update RequestModelBuilder (add WithHeader) ( #1306 )
...
* Update RequestModelBuilder (add WithHeader)
* rejectOnMatch
* fix
2025-06-05 12:24:40 +02:00
Stef Heyenrath
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
Stef Heyenrath
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
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
492f01ade1
Add more tests for WireMockOpenApiParser ( #1294 )
2025-05-13 22:11:25 +02:00
Stef Heyenrath
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
Stef Heyenrath
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
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
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
9392069f8a
Enable support for WireMock Middleware in Hosted Services ( #1285 )
2025-04-25 16:35:55 +02:00
Stef Heyenrath
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
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
Stef Heyenrath
beabba4064
Add extra unit tests for PR #1278
2025-04-23 07:47:07 +02:00
Stef Heyenrath
5abb424d3c
Add extra JsonPartialWildcardMatcher Tests ( #1267 )
...
* Add extra JsonPartialWildcardMatcher Tests
* responseText.Should().Contain
2025-04-02 08:57:44 +02:00
Stef Heyenrath
ff36c1ee6f
Merge commit from fork
2025-03-04 17:58:38 +01:00
Stef Heyenrath
f977b3eb86
Update QueryStringParser to support param with equal but no value ( #1253 )
...
* RequestMessageParamMatcher
* ?
* .
* .
2025-02-13 18:09:18 +01:00
Stef Heyenrath
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
a02ff47db6
Update WireMockProtoFileResolver and add tests for ProtoBufUtils ( #1252 )
...
* Update WireMockProtoFileResolver and add tests for ProtoBufUtils
* .
2025-02-01 22:27:32 +01:00
Stef Heyenrath
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
ed07da7d18
Fix ProtoBuf mapping.json ( #1236 )
...
* Fix ProtoBuf Mappings
* [Fact(Skip = "#1233 ")]
* fix?
* PortUtils
2025-01-26 08:37:17 +01:00
Stef Heyenrath
12d2219752
Disable DynamicLinq to fix CVE ( #1242 )
...
* Disable DynamicLinq
* Disable DynamicLinq functionality
2025-01-22 10:30:52 +01:00
Stef Heyenrath
44c1c7aaa8
Fix google protobuf WellKnownTypes: Empty, Duration and Timestamp ( #1231 )
...
* Fix google protobuf WellKnownTypes: Timestamp and Duration
* Fix protobuf Empty
* .
* small refactor
* 006
* fix
* policy
* ---
* <PackageReference Include="ProtoBufJsonConverter" Version="0.7.0" />
2025-01-09 18:50:16 +01:00
Stef
1198feae5e
Add unit test "WireMockServer_WithBodyAsProtoBuf_JsonPartialWildcardMatcher"
2025-01-02 09:00:39 +01:00
Stef Heyenrath
ab7ce37e7e
Fix WireMockContainerBuilder (duplicate entries) ( #1222 )
2024-12-31 18:24:29 +01:00
Stef Heyenrath
485f7ad952
FindLogEntries ( #1224 )
2024-12-23 20:00:03 +01:00
Stef Heyenrath
6db5427e6e
Add overloads to AtUrl and AtAbsoluteUrl which can use a IStringMatcher ( #1221 )
2024-12-22 17:11:21 +01:00
Stef Heyenrath
2a19b4491f
WireMock.Net.Testcontainers: implement watching the static mapping folder for changes ( #1189 )
...
* WireMock.Net.Testcontainers: implement watching the static mapping files + folder for changes
* ReloadStaticMappings
* fix
* .
* .
* .
* .
* .
* .
* .
* CopyAsync
* <VersionPrefix>1.6.7-preview-02</VersionPrefix>
* <VersionPrefix>1.6.7-preview-03</VersionPrefix>
2024-12-15 11:31:25 +01:00
Stef Heyenrath
7f640dfa0d
Fix JsonPartialMatcher when using property names with dot ( #1216 )
...
Fix JsonPartialMatcher when using property names with dot (#1216 )
2024-12-06 09:23:31 +01:00
Stef Heyenrath
4aaed2a6ca
Fix HandlebarsContext ParseAndEvaluate method ( #1213 )
...
* Fix HandlebarsContext ParseAndEvaluate method
* test
* xxx
2024-11-22 07:58:23 +01:00
Stef Heyenrath
6f73dfe360
Use GraphQL 8.2.1 ( #1211 )
2024-11-18 10:23:00 +01:00
Stef Heyenrath
f4103b47aa
Fix security issues ( #1206 )
...
* .
* .
* x
2024-11-17 17:25:21 +01:00
Stef Heyenrath
1682c61a0c
Use latest ProtoBufJsonConverter to support WellKnownTypes ( #1161 )
...
* Use latest ProtoBufJsonConverter to support WellKnownTypes
* Fix
* 02
* WireMockServer_WithBodyAsProtoBuf_WithWellKnownTypes
* .
* extra test
* 0.4.0-preview-06
* 7
* <PackageReference Include="ProtoBufJsonConverter" Version="0.4.0-preview-08" />
* Update README.md
* <PackageReference Include="ProtoBufJsonConverter" Version="0.4.0-preview-09" />
* <PackageReference Include="ProtoBufJsonConverter" Version="0.4.0" />
* Update README.md
2024-10-16 10:57:47 +02:00
Stef Heyenrath
76ae1466cc
Throw exception in case WithTransformer is used after WithBodyFromFile ( #1185 )
...
* Fix .WithBodyFromFile + .WithTransformer combination
* Ex
2024-09-29 21:29:34 +02:00
Stef Heyenrath
42306d1864
Add WireMock.Net.AspNetCore.Middleware ( #1175 )
...
* Add WireMock.Net.AspNetCore.Middleware
* .
* WireMock.Net.Middleware.Tests
* .
* X-WireMock-Response-Delay
2024-09-27 20:39:57 +02:00
Stef Heyenrath
c57590b2ba
Set <SonarQubeExclude>true</SonarQubeExclude> in test projects ( #1183 )
2024-09-27 20:06:22 +02:00
Stef Heyenrath
dca3fd0260
WireMock.Net.Testcontainers: Use 'sheyenrath/wiremock.net-alpine' image as default for Linux ( #1181 )
...
* WireMock.Net.Testcontainers: Use 'sheyenrath/wiremock.net-alpine' image as default for Linux
* ...
* .
* WithBindMount
* fix
* r
* .
2024-09-27 19:10:51 +02:00
Stef Heyenrath
b892e85d2a
Add WireMock.Net.TUnit project ( #1179 )
...
* Add WireMock.Net.TUnit project
* fix
* .
* fix
* bd
* 0.1.812
* dotnet test
* 0.1.817
* cat
* type
* type2
* find
* -- --diagnostic
* --no-build
* fix?
2024-09-25 08:52:40 +02:00
Stef Heyenrath
2cbbef01ae
Refactor some code (IBodyDataExtensions)
2024-09-20 13:52:45 +02:00