Filter metadata API response only when the test is executed for allowed metadata API
The previous code changes added to filter metadata response was breaking other API tests like API.get which internally tries to call API.getSegmentsMetadata
. The result of API.getSegmentsMetadata
gets filtered out for API.get and system test cases starts to fail.
To solve the issue, before calling the API, we check if its the allowed metadata API and will filter only if its true.
This solves the metadata response getting filtered for other APIs like API.get