validate dynamically response if its from meta

Document ID : KB000076623
Last Modified Date : 06/04/2018
Show Technical Document Details
Introduction:
In the Virtual Service, If there is a META match, the response from the live system should be returned. Is there a way to accomplish this? 
Background:
Virtual service returns a virtual response when exact conditions are met and META response for Signature match. 
Environment:
All supported DevTest environments
Instructions:

Add a new key/value to the META response meta data - IsMeta = true, and then in the VSM/ VS Image Response Selection step you can add an assertion to verify if you got the value isMeta=true.

Steps to follow:
**********************
In the VSI META response  add new meta data key to be returned -> isMeta=true


 

and then in the VSM/ VS Image Response Selection step you can add an assertion to verify if you got the value isMeta=true.

Change  the next step to go to the Live Invocation Step when it finds the string "isMeta=True".

Expected Result:
When the META response is returned, the assertion will be fired and the request will be sent to the live system.