Skip to content
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

Implement 'contains only' syntax #7

Closed
ptrthomas opened this issue Feb 19, 2017 · 0 comments
Closed

Implement 'contains only' syntax #7

ptrthomas opened this issue Feb 19, 2017 · 0 comments
Assignees

Comments

@ptrthomas
Copy link
Member

match contains is great and all but closer inspection of the REST-Assured home-page example made me realize that the need to validate that ALL elements exist but in ANY ORDER - is a valid use-case.

This should be easily implementable similar to how match each was just implemented. Will be available in v0.1.6

Given path ‘lotto’, 5
When method get
Then status 200
And match $.lotto.lottoId == 5
And match $.lotto.winners[*].winnerId contains only [23, 54]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant