I am trying to use the VSTS release pipeline Gate feature to test a new Azure Function after it's deployed. I have tried the 'Invoke Azure Function' and 'Invoke REST API' deployment gates, but can't get them to succeed.
I would like to just call the endpoint and for the gate to succeed if it receives a simple HTTP 200 or 202 response.
Latest effort was to put this in the 'Success criteria' field
eq(count(jsonpath('$.responses[?(@.httpStatusCode != 200)]')), 1)
The Processing Gate step just says 'No samples have yet arrived' and there are no logs.
Has anyone successfully done this? Any ideas?
