[fix] Fixed cookie_mask
query to match a range of cookies
#130
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #129
Summary
cookie_mask
query to match a range of cookies."$or"
operator, I've also checked on MongoDB that the index is being hit correctly.Also, to recap, FYI, flow_manager still doesn't validate completely the payload on this endpoint, so invalid type or values can lead to issues, but that will be covered on issue #43
End-to-End Tests
I've added three new e2e tests to cover the ranges with
cookie_mask
on another PR kytos-ng/kytos-end-to-end-tests#197, to also cover the original issue that Italo has caught, and ranflow_manager
related tests again:I've also dispatched the entire e2e test suite for complenetess, I'll post the results with this branch later.
I'll be back on Jan 31.