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

New input matching rule: equals_unordered #168

Merged
merged 3 commits into from
Aug 13, 2024

Conversation

mytestopia
Copy link
Contributor

Added new inut matching rule equals_unordered, allowing find stubs for lists with different order

For example stub

{
  .
  .
  "input":{
    "equals_unordered":{
      "ids": [1, 2]
    }
  }
  .
  .
}

will match requests with ids=[1, 2] and ids=[2, 1]

when stub

{
  .
  .
  "input":{
    "equals":{
      "ids": [1, 2]
    }
  }
  .
  .
}

will match only requests with ids=[1, 2]

@jekiapp jekiapp merged commit 134bf82 into tokopedia:master Aug 13, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants