mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-04-25 09:48:28 +02:00
Do not save "admin" mappings when running in Proxy - mode (#561)
* wip * . * .
This commit is contained in:
@@ -132,6 +132,8 @@ namespace WireMock.Owin
|
||||
|
||||
var responseBuilder = targetMapping.Provider as Response;
|
||||
|
||||
if (!targetMapping.IsAdminInterface)
|
||||
{
|
||||
if (responseBuilder?.ProxyAndRecordSettings?.SaveMapping == true || targetMapping?.Settings?.ProxyAndRecordSettings?.SaveMapping == true)
|
||||
{
|
||||
_options.Mappings.TryAdd(targetMapping.Guid, targetMapping);
|
||||
@@ -145,6 +147,7 @@ namespace WireMock.Owin
|
||||
|
||||
mappingToFileSaver.SaveMappingToFile(targetMapping);
|
||||
}
|
||||
}
|
||||
|
||||
if (targetMapping.Scenario != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user