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
Stef Heyenrath
a58ead7b4e
Upgrade to Handlebars.Net.Helpers 2.4.0 to update XPath.SelectTokens and XPath.EvaluateToString ( #976 )
...
* Upgrade to Handlebars.Net.Helpers 2.4.0 to update XPath.SelectTokens and XPath.EvaluateToString
* fix
2023-07-20 21:49:00 +02:00
Tymur Nesterenko
58bfb3ea33
JsonPartialMatcher - match guid and string ( #972 )
...
* JsonPartialMatcher - match guid and string (#971 )
* JsonPartialMatcher - match guid and string. Add Regex with Guid test (#971 )
2023-07-19 22:34:02 +02:00
Stef Heyenrath
98b8ede826
Fixed JsonPathMatcher to match nested objects ( #966 )
...
* Fixed JsonPathMatcher to match nested objects
* fix
* .
* 100%
2023-07-15 09:29:13 +02:00
Stef Heyenrath
b495eb83b1
Add GraphQL Schema matching ( #964 )
...
* Add GrapQLMatcher
* tests
* x
* .
* .
* RequestMessageGraphQLMatcher
* .
* more tests
* tests
* ...
* ms
* .
* more tests
* GraphQL.NET !!!
* .
* executionResult
* nw
* sonarcloud
2023-07-07 21:43:46 +02:00
Stef Heyenrath
c92183558b
Fixed logic for FluentAssertions WithHeader ( #959 )
2023-06-23 15:20:57 +02:00
Stef Heyenrath
7ca70309cb
Support setting WireMockServerSettings via Environment ( #954 )
...
* Support parsing environment variables (WireMockServerSettings__)
* case ignore
* fix
* SimpleSettingsParserTests
* .
* int
* more test
2023-06-22 10:35:21 +02:00
Stef Heyenrath
5d0bf6f4e1
Fix some SonarCloud issues ( #955 )
...
* Fixed some SonarCloud issues
* if (value.Contains('\n'))
2023-06-13 19:31:04 +02:00
Stef Heyenrath
dc4c8d1dba
WireMock.Net.Testcontainers ( #948 )
...
* WireMock.Net.Testcontainers
* .
* logger?
* .
* .
* WatchStaticMappings
* linux
* .
* --
* ContainerInfo
* .
* 02
* .
* fix
* .
2023-06-11 13:55:57 +02:00
Stef Heyenrath
adf1914877
Allow setting the Content-Length header for a HTTP method HEAD ( #951 )
...
* Allow setting the Content-Length header for a HTTP method HEAD
* .
2023-06-06 22:44:14 +02:00
Stef Heyenrath
c107e38e3b
Fix WireMock.Net.FluentAssertions for net47
2023-06-02 12:03:12 +02:00
Stef Heyenrath
a77c4fe1ac
Add ".NET Framework 4.7" to WireMock.Net.FluentAssertions ( #949 )
2023-06-01 18:06:28 +02:00
Stef Heyenrath
c1e71707c5
Add warning logging when sending a request to a Webhook does not return status 200 ( #946 )
2023-05-28 10:53:54 +02:00
Cezary Piątek
e5cc6f570c
Code generator improvements ( #940 )
...
* Fix quotation marks escaping in multiline string
* Add support for JsonPartialMatcher and JsonPartialWildcardMatcher in mapping code generator
2023-05-25 20:59:13 +02:00
Stef Heyenrath
7c3a0c815d
Add GetParameter method to IRequestMessage ( #942 )
2023-05-25 15:14:02 +02:00
Stef Heyenrath
e61f08fe48
WireMockMiddleware should use HandleRequestsSynchronously correctly ( #939 )
2023-05-19 21:43:14 +02:00
Stef Heyenrath
11f4c47851
Add more unitests for CSharpFormatter utils ( #938 )
...
* Add unit-tests for CSharpFormatter
* .
* t
2023-05-19 16:14:26 +02:00
Stef Heyenrath
27682d0ce4
1.5.25 + Fixes in CSharpFormatter
2023-05-13 11:15:40 +02:00
Cezary Piątek
8444c8c506
Code generator improvements ( #934 )
...
* Handle new line escaping in C# mapping code generator
* Prevent date conversion when value persisted as string
* Handle object properties named as csharp keywords
* Refactor: Extract logic responsible for generating anonymous object definition to a separate class
2023-05-13 09:33:25 +02:00
Stef Heyenrath
59195eaed8
Refactor some code (MappingConverter)
2023-05-07 14:42:00 +02:00
Cezary Piątek
7d9e450814
C# code generator improvements ( #933 )
...
* Escape quotes in generated C# strings
* Handle response with JSON body in C# code generator
2023-05-07 14:37:48 +02:00
Stef Heyenrath
d29f3e81f3
Add property 'IsStartedWithAdminInterface' to 'IWireMockServer' ( #931 )
...
* Add property 'IsStartedWithAdminInterface' to 'IWireMockServer'
* update tests
* .
2023-05-06 13:12:00 +02:00
Stef Heyenrath
ccd8026884
Update C# mapping code generator for WithStatusCode ( #930 )
2023-05-06 10:24:53 +02:00
Cezary Piątek
1214ba5108
Enrich generated code with status code ( #927 )
2023-05-06 09:40:41 +02:00