Skip to content

Apply Registered GeneralRegex sanitizers to Variables before storage #13279

@scbedd

Description

@scbedd

A bunch of the commandtests in microsoft/mcp actually end up needing to store a full id.

It'll look something like this if we don't sanitize:

  "Variables": {
    "amlfsSubnetSmallId": "/subscriptions/<subid>/resourceGroups/<rg-name>/providers/Microsoft.Network/virtualNetworks/lustrerecord-vnet/subnets/amlfs-small",
    "Location": "westus"
  }

and the like. This is likely a breaking change to new recordings in certain circumstances for the azure-sdk-for-net repo, so this will be an option on Record/StopRecording

Metadata

Metadata

Assignees

No one assigned

    Labels

    Test-ProxyAnything relating to test-proxy requests or issues.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions