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?
Virtual service returns a virtual response when exact conditions are met and META response for Signature match.
All supported DevTest environments
N/A
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.