-
-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for YAML Indexing and Advanced Assertions #895
Comments
You can use jmespath assertions like tavern/tests/integration/test_jmes.tavern.yaml Lines 215 to 225 in 4396844
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description:
Consider a scenario where there is a list of items with quantities, and the goal is to assert the quantity of a specific item in a specific position without triggering a pass due to the presence of the same quantity in another position.
The provided example should only match the quantity of the third item and not inadvertently pass due to the presence of the same quantity elsewhere in the list.
I wish there was someplace I could add !index=2 or something as such
This is especially causing a blocker while trying to run negative tests
The text was updated successfully, but these errors were encountered: