Files
WireMock.Net-wiremock/test/WireMock.Net.Tests
Mattias SundströmandMattias 0132ec873a Add ScribanRegistrationCallback to register custom Scriban functions (#1515) (#1516)
- Add WireMockServerSettings.ScribanRegistrationCallback
  (Action<object, IFileSystemHandler>?) so code-configured servers can add
  functions, objects or variables to Scriban and Scriban-DotLiquid templates.
- Pass the settings to ScribanContextFactory, which invokes the callback with
  a new ScriptObject per transformer context.
- Push the custom globals beneath the template model in ScribanContext so
  request, response, mapping and data take precedence; keep the original
  Template.Render call when no callback is configured.
- Add the strongly typed WithScribanRegistration extension method.
- Add a Scriban example to the .NET 8 console app.
- Make the proxy tests use a local target server instead of www.google.com,
  and skip the IPv6 loopback test when the OS has no IPv6 support.

Co-authored-by: Mattias <13809209+Quattordici@users.noreply.github.com>
2026-10-18 09:29:11 +02:00
..
2026-03-11 17:02:47 +01:00
2026-03-11 17:02:47 +01:00
2026-03-11 17:02:47 +01:00
2026-10-07 17:35:58 +02:00
2026-03-11 17:02:47 +01:00
2026-05-03 09:27:19 +02:00
2026-03-11 17:02:47 +01:00
2026-10-07 17:35:58 +02:00
2026-05-29 20:19:51 +02:00
2026-03-11 17:02:47 +01:00
2026-03-11 17:02:47 +01:00
2026-03-11 17:02:47 +01:00
2026-03-11 17:02:47 +01:00
2026-03-11 17:02:47 +01:00
2026-03-11 17:02:47 +01:00
2026-03-11 17:02:47 +01:00
2026-03-11 17:02:47 +01:00

Creating a client certificate like client_cert.pfx

Follow the instructions to create a root certificate, then trust it and create a child certificate from it.

Since the root certificate of client_cert.pfx is obviously not trusted automatically by cloning this repo, the tests in WireMockServerTests.ClientCertificate.cs set WireMockServerSettings.AcceptAnyClientCertificate to true so that tests pass even if the device hasn't trusted the root of client_cert.pfx.