Johannes Häggqvist
8e69f36f04
Add WireMockHealthCheck in WireMock.Net.Aspire ( #1375 )
...
* Add WireMockHealthCheck
For use with Aspire, to make WaitFor(wiremock) more useful.
Calls /__admin/health and checks the result, as well as checks if mappings using AdminApiMappingBuilder has been submitted to the server.
This created a catch-22 problem where the mappings were not submitted until the health check was healthy, but the health check was not healthy until the mappings were submitted.
To avoid this, the WireMockServerLifecycleHook class has been slightly re-arranged, and is now using the AfterEndpointsAllocatedAsync callback rather than the AfterResourcesCreatedAsync callback. Within which a separate Task is created that waits until the server is ready and submits the mappings.
* Move WireMockMappingState to its own file
* Dispose the cancellation tokens in WireMockServerLifecycleHook
2025-11-17 20:14:42 +01: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
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
5e04ff1a42
Add an architecture diagram for Aspire project ( #1174 )
...
* Add an architecture diagram for Aspire project
* .
* "WireMock.Net : " +
* .
2024-10-04 19:30:47 +02:00
Stef Heyenrath
9a49e6a1cd
Upgrade Aspire to version 8.2.0 ( #1163 )
2024-08-31 17:06:30 +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