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

Feature: negate condition in verify() #1892

Open
ashakirin opened this issue Jun 2, 2022 · 1 comment
Open

Feature: negate condition in verify() #1892

ashakirin opened this issue Jun 2, 2022 · 1 comment

Comments

@ashakirin
Copy link

Feature requests

Provide an option to negate verification, like:

verify(getRequestedFor("/my_url"))
.withHeader("X-MyHeader").not(containing("value1"))
@SatyamAK
Copy link
Contributor

SatyamAK commented Oct 25, 2022

Hi @ashakirin @tomakehurst , I am trying to understand what not will return, is it part of request pattern builder ? From my understanding so far not is not implemented at all, do we need to make not function in RequestPatternBuilder?

tomakehurst pushed a commit that referenced this issue Mar 13, 2023
* [Arihant|Manisha] Add. not pattern matching functionality

* [Manisha|Arihant] Add. deserialize not path pattern is wip

* [Arihant|Manisha] Refactor. deserialize not path pattern

* [Manisha|Arihant] Refactor. verifies withBody does not contain value

* [Manisha|Arihant] Refactor. verifies withHeader does not contain value

* [Manisha|Arihant] Refactor. verifies withHeader does not contain values

* [Arihant|Manisha] Refactor. getdistance logic in notpattern class

---------

Co-authored-by: Manisha Agarwal <manishaagarwal@Manishas-MacBook-Pro.local>
Co-authored-by: manishaag7 <manishaagarwal1607@gmail.com>
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

3 participants