Ruxo
dd80fd7822
Attempt to fix JSON parsing of text/plain content type ( #1172 )
...
* UseContentType
* Fix unit tests
* Add a unit test and an integration test for the fix.
* Simplify body type checking with GetBodyType extension.
* Split IBodyDataExtension, and use imperative style instead of functional style
* Remove excessive null forgiving operators
* Adjust braces
---------
Co-authored-by: Ruxo Zheng <rz@just.sent.as >
2024-09-20 13:19:32 +02:00
Stef Heyenrath
7d7f1f8fbb
Allow mapping without Path or Url ( #1169 )
2024-09-09 20:48:09 +02:00
cocoon
60931f6273
Fix listen on AnyIP for url 0.0.0.0 ( #1165 )
...
* fix listen to AnyIP if url is 0.0.0.0
* Add Test for listenin on AnyIP for url 0.0.0.0
* add missing using, use var, indent, remove empty line
* remove assert for ipv4/v6 address list
* test only if NET6_0_OR_GREATER
* use same code style
* add missing +
* Asser. to Assert
* split single test into one for IPv4 and one for IPv6
* Create IgnoreOnContinuousIntegrationFact.cs
* Ignore tests if CI/CD
* change to file - scoped namespace and add GITHUB_ACTIONS
* use PortUtils.FindFreeTcpPort()
* add and use GetIPAddressesByFamily
* add using System.Net.Sockets
* use #if for both unit tests and include new helper method inside
2024-09-07 09:31:19 +02:00
Stef Heyenrath
8348a7b9a3
Also update IWireMockMiddlewareOptions when settings are updated via admin interface ( #1166 )
...
* Also update IWireMockMiddlewareOptions when settings are updated via admin interface
* ci
2024-09-04 18:47:25 +02:00
Stef Heyenrath
9a49e6a1cd
Upgrade Aspire to version 8.2.0 ( #1163 )
2024-08-31 17:06:30 +02:00
Stef Heyenrath
f82891c996
Fix version from "WireMock.Net.Aspire"
2024-08-29 18:51:25 +02:00
Stef Heyenrath
da100298c1
Update MappingConverter to correctly write the Matcher as C# code ( #1152 )
...
* Update MappingConverter to correctly write the Matcher as C# code
* .
* CSharpCodeMatcher
* tests
* .
2024-08-27 19:38:07 +02:00
Stef Heyenrath
487d6d2db1
Use default timeout for Regex ( #1160 )
2024-08-22 20:31:03 +02:00
Stef Heyenrath
088444024f
Allow setting Content-Length header on the response ( #1158 )
...
* Allow setting Content-Length header on the response
* fix?
2024-08-16 12:14:42 +02:00
Stef Heyenrath
7e162a00ab
Fix FormUrlEncodedMatcher (MatchOperator.And) ( #1157 )
2024-08-15 11:01:37 +02:00
Stef Heyenrath
8dcf35d8ac
Use Guid.TryParseExact with format "D" ( #1148 )
2024-07-29 07:56:10 +02:00
Stef Heyenrath
4b12f3419f
Add Aspire Extension ( #1109 )
...
* WireMock.Net.Aspire
* .
* xxx
* nuget
* [CodeFactor] Apply fixes
* ut
* t
* **WireMock.Net.Aspire**
* .
* t
* .
* .
* .
* TESTS
* docker utils
* Install .NET Aspire workload
* 4
* 4!
* projects: '**/test/**/*.csproj'
* script: 'dotnet workload install aspire'
* projects: '**/test/**/*.csproj'
* coverage
* WithWatchStaticMappings
* Admin
* typo
* port
* fix
* .
* x
* ...
* wait
* readme
* x
* 2
* async
* <Version>0.0.1-preview-03</Version>
* ...
* fix aspire
* admin/pwd
* Install .NET Aspire workload
* 0.0.1-preview-04
* WaitForHealthAsync
* ...
* IsHealthyAsync
* .
* add eps
* name: 'Execute Aspire Tests'
* name: Install .NET Aspire workload
* .
* dotnet test
* remove duplicate
* .
* cc
* dotnet tool install --global coverlet.console
* -*
* merge
* /d:sonar.pullrequest.provider=github
* <Version>0.0.1-preview-05</Version>
* // Copyright © WireMock.Net
* .
---------
Co-authored-by: codefactor-io <support@codefactor.io >
2024-07-27 18:53:59 +02:00
Stef Heyenrath
69c829fae0
Update + add fluent builder methods ( #1042 )
...
* Update some fluent builder methods
* fix
* sc
* ThenRespondWith
* // Copyright © WireMock.Net
2024-07-27 16:16:11 +02:00
Stef Heyenrath
275816c414
Fix Directory.Build.props
2024-07-27 14:59:10 +02:00
Stef Heyenrath
3353be65b5
Add FormUrlEncodedMatcher ( #1147 )
...
* FormUrlEncodedMatcher
* .
* Fix
* new
* support wildcard
2024-07-27 14:40:23 +02:00
Stef Heyenrath
d79f6f128d
Fix OpenApiPathsMapper ( #1122 )
...
* Fix OpenApiPathsMapper
* utc
* s
2024-07-22 21:36:45 +02:00
Stef Heyenrath
422e7c9b5e
Make properyt FromConfiguredStub nullable ( #1142 )
2024-07-22 21:35:19 +02:00
Stef Heyenrath
6055b0df1a
Fix some SonarCloud warnings ( #1138 )
...
* r
* hdr
* sc
* StyleCop.Analyzers
2024-07-22 21:24:30 +02:00
Stef Heyenrath
6ab1a6fd13
Update WireMockContainerBuilder.WithMappings for "includeSubDirectories" ( #1141 )
2024-07-22 21:24:08 +02:00
Stef Heyenrath
54edf0bebc
Add link to TIOBE Index on main page + fix issues ( #1137 )
...
* Add TIOBE + include SonarAnalyzer.CSharp
* .
* cp
* Copyright © WireMock.Net
* more fixes
* fix
* xpath
* if (Matchers == null || !Matchers.Any())
* if (Matchers != null)
* ?
* .
* .
2024-07-18 18:06:04 +02:00
dependabot[bot]
baac83c9b9
Bump System.Text.Json from 8.0.0 to 8.0.4 in /src/dotnet-WireMock.Net ( #1136 )
...
Bumps System.Text.Json from 8.0.0 to 8.0.4.
---
updated-dependencies:
- dependency-name: System.Text.Json
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-07-10 20:28:27 +02:00
rmeshksar
2179df7b44
Multipart Matcher Fix ( #1132 )
...
* Add unit tests for AdminApiMappingBuilder (#1131 )
* Multipart Matcher Fix
---------
Co-authored-by: Stef Heyenrath <Stef.Heyenrath@gmail.com >
2024-07-09 18:42:07 +02:00
Stef Heyenrath
8788d9ba4a
Add AdminPath to WireMockServerSettings ( #1130 )
...
* Make admin endpoint configurable
* Add AdminPath to WireMockServerSettings
* sealed
* foo
* WireMockServer_CreateClient_And_CallAdminSettingsEndpoint
2024-07-09 07:06:38 +02:00
Stef Heyenrath
780c233ef3
Add Handlebars.Net.Helpers.Xslt ( #1128 )
2024-07-03 17:32:13 +02:00
Eric Dugas
bf28ba79b5
Made changes to accommodate breaking change in testcontainers-dotnet v3.9. ( #1127 )
...
Ref: https://github.com/testcontainers/testcontainers-dotnet/pull/1100
2024-06-26 19:26:27 +02:00
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