Anarchy.Toolkit.Web.MockServer.Ui
1.0.0
See the version list below for details.
dotnet add package Anarchy.Toolkit.Web.MockServer.Ui --version 1.0.0
NuGet\Install-Package Anarchy.Toolkit.Web.MockServer.Ui -Version 1.0.0
<PackageReference Include="Anarchy.Toolkit.Web.MockServer.Ui" Version="1.0.0" />
<PackageVersion Include="Anarchy.Toolkit.Web.MockServer.Ui" Version="1.0.0" />
<PackageReference Include="Anarchy.Toolkit.Web.MockServer.Ui" />
paket add Anarchy.Toolkit.Web.MockServer.Ui --version 1.0.0
#r "nuget: Anarchy.Toolkit.Web.MockServer.Ui, 1.0.0"
#:package Anarchy.Toolkit.Web.MockServer.Ui@1.0.0
#addin nuget:?package=Anarchy.Toolkit.Web.MockServer.Ui&version=1.0.0
#tool nuget:?package=Anarchy.Toolkit.Web.MockServer.Ui&version=1.0.0
Anarchy.Toolkit.Web.MockServer.Ui
Part of Anarchy I/O Toolkit, a .NET developer platform · Pillar: Infrastructure · Layer: Web · Package catalog
A browser UI for Anarchy.Toolkit.Web.MockServer, built on
Anarchy.Toolkit.Web.Ui: see what the mock server answers with and what it received while your
tests or application run.
dotnet add package Anarchy.Toolkit.Web.MockServer.Ui
- Expectations: every loaded, code and runtime expectation with its method, path, status, priority, remaining times and source, as JSON on demand; reloads the expectation files.
- Requests: the received requests, live, with what answered them, filterable and viewable as JSON; clears them.
- Middlewares: the plugged-in middlewares, in pipeline order.
- Logs: a live tail of the server's in-memory log, whatever the console verbosity, filterable by level and text.
When to use it
When developing against a mock server, or debugging a failing integration test, and reading the console is not enough.
Use Anarchy.Toolkit.Web.MockServer alone when no one looks at it, e.g. in CI.
How to use it
Run it standalone, like the plain mock server (same arguments), and open http://localhost:6001/__mock/ui/:
dotnet Anarchy.Toolkit.Web.MockServer.Ui.dll -e "mocks/**/*.json"
Or call UseUi() from a host of your own:
return await MockServerEntryPoint.RunAsync(args, server => server
.AddExpectationsFrom("mocks")
.UseMiddleware<FakeAuthMiddleware>()
.UseUi());
- The URL is printed in the startup banner. It lives under
/__mock, so it is never matched against expectations nor recorded as a received request. --no-ui(orMOCKSERVER_UI=false) turns it off without changing the host. The FalloutIMockServerBuildtargets take--mock-server-ui false, and the Make targetsUI=false, e.g.make mock_server_start UI=false.- It has no login: it is meant for local and test environments, like the control API.
UseUi(path)serves it elsewhere under the same rules.
Releases
1.0.0
- feat(Web.MockServer.Ui): add a browser UI for the mock server with expectations, requests, middlewares and live logs
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Amazon.Extensions.Configuration.SystemsManager (>= 7.1.1)
- Amazon.Lambda.APIGatewayEvents (>= 3.0.1)
- Amazon.Lambda.AspNetCoreServer (>= 10.3.2)
- Amazon.Lambda.Core (>= 3.4.0)
- Anarchy.Toolkit.Web.MockServer (>= 1.1.0)
- Anarchy.Toolkit.Web.Ui (>= 2.0.0)
- AWSSDK.Core (>= 4.1.0.1)
- AWSSDK.KeyManagementService (>= 4.1.0)
- AWSSDK.SecretsManager (>= 4.1.1)
- Humanizer (>= 3.0.10)
- IdentityServer4.AccessTokenValidation (>= 3.0.1)
- Microsoft.AspNetCore.Authentication.JwtBearer (>= 10.0.15)
- Microsoft.AspNetCore.Mvc.NewtonsoftJson (>= 10.0.15)
- Microsoft.Extensions.Hosting.Systemd (>= 10.0.15)
- Microsoft.Identity.Client (>= 4.92.0)
- Microsoft.IdentityModel.JsonWebTokens (>= 8.23.0)
- Microsoft.OpenApi (>= 3.11.1)
- Newtonsoft.Json (>= 13.0.4)
- Serilog (>= 4.4.0)
- Serilog.Sinks.Console (>= 6.1.1)
- Spectre.Console (>= 0.57.2)
- Swashbuckle.AspNetCore (>= 11.0.1)
- System.IdentityModel.Tokens.Jwt (>= 8.23.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release.