VS :De-identifier DPH not replacing value in response payload
search cancel

VS :De-identifier DPH not replacing value in response payload

book

Article ID: 218419

calendar_today

Updated On:

Products

Service Virtualization

Issue/Introduction

Problem statement: De-identifier DPH not replacing value in response payload

 

Steps to recreate issue:

  1. Added filter in de-identify.xml

        <filter name="DataHub First Name" provider="com.itko.lisa.vse.desensitize.LisaPropReplacer">

            <regex><![CDATA["FullName": ".*?",]]></regex>

            <replacement><![CDATA["FullName ": "{{=:Country:}}",]]></replacement>

        </filter>

  1. Applied De-Identifier DPH to Virtual HTTPS responder step
  2. Deploy service to VSE
  3. Call service from test
  4. FullName field value not replaced

 

 

Environment

Release : 10.7 or newer

Component : CA Service Virtualization

Cause

Incorrect syntax.

Resolution

 

Use the below filter values:  

<filter name="DataHub FirstName" provider="com.itko.lisa.vse.desensitize.LisaPropReplacer">
   <regex><![CDATA[\"FullName\":\".*?\"]]></regex>
          <replacement><![CDATA[\"Fullname\":\"{{=[:County:]}}\"]]></replacement>
      </filter>