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

Add support of nested structure to match body #82

Closed
dpfg opened this issue Feb 20, 2019 · 0 comments
Closed

Add support of nested structure to match body #82

dpfg opened this issue Feb 20, 2019 · 0 comments
Assignees
Milestone

Comments

@dpfg
Copy link
Collaborator

dpfg commented Feb 20, 2019

It should be possible to define body expectation using partial or fully copy of the payload.
E.g original payload

"repository": {
  "name": "bozr",
  "commits_num": 300,
  "creator": {
    "user_id": 8371394134,
    "name": "Author1"
  }
}

should pass test with the following expectation:

{
  "expect": {
    "body": {
        "repository": {
             "creator": {
                "user_id": 8371394134
             }
        }
    }
  }
}

Expectation is equal to

{
  "expect": {
    "body": {
      "repository.creator.user_id": 8371394134
    }
}
@dpfg dpfg added this to the 0.8.13 milestone Feb 20, 2019
@dpfg dpfg self-assigned this Feb 20, 2019
@dpfg dpfg pinned this issue Feb 20, 2019
@dpfg dpfg closed this as completed Jun 12, 2019
@dpfg dpfg unpinned this issue Jun 12, 2019
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