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

HTTP interceptor request match by form data and binaries #14

Closed
3 tasks
diego-aquino opened this issue Jan 8, 2024 · 0 comments · Fixed by #194
Closed
3 tasks

HTTP interceptor request match by form data and binaries #14

diego-aquino opened this issue Jan 8, 2024 · 0 comments · Fixed by #194
Assignees
Labels
feature New feature or request
Milestone

Comments

@diego-aquino
Copy link
Member

diego-aquino commented Jan 8, 2024

  • The HTTP request tracker should support:
    • Defining form data to match requests
    • Receiving a second, optional argument to whether the match should be exact or not (default: false)
      const creationTracker = authInterceptor
        .post('/users')
        .with({
          body: creationFormData, // also Buffer or Blob
        })
        .respond({
          status: 201,
          body: user,
        });
@diego-aquino diego-aquino converted this from a draft issue Jan 8, 2024
@diego-aquino diego-aquino changed the title HTTP interceptor request match by minimum form data HTTP interceptor request match by form data Jan 8, 2024
@diego-aquino diego-aquino added the feature New feature or request label Jan 8, 2024
@diego-aquino diego-aquino added this to the v0.7.0 milestone Jan 8, 2024
@diego-aquino diego-aquino moved this from To do to Backlog in Zimic Jan 14, 2024
@diego-aquino diego-aquino modified the milestones: v0.7.0, v0.4.0, v0.6.0 Feb 20, 2024
@diego-aquino diego-aquino modified the milestones: v0.6.0, v0.5.0 Mar 29, 2024
@diego-aquino diego-aquino moved this from Backlog to To do in Zimic Mar 31, 2024
@diego-aquino diego-aquino changed the title HTTP interceptor request match by form data HTTP interceptor request match by form data and blob Apr 22, 2024
@diego-aquino diego-aquino self-assigned this May 4, 2024
@diego-aquino diego-aquino modified the milestones: v0.5.0, v0.6.0 May 11, 2024
@github-project-automation github-project-automation bot moved this to To do in Zimic May 25, 2024
@diego-aquino diego-aquino changed the title HTTP interceptor request match by form data and blob HTTP interceptor request match by form data and binaries May 26, 2024
@diego-aquino diego-aquino moved this from To do to In progress in Zimic Jun 1, 2024
@diego-aquino diego-aquino moved this from In progress to In review in Zimic Jun 1, 2024
diego-aquino added a commit that referenced this issue Jun 1, 2024
### Features
- [#zimic] Added support to non-JSON body restrictions, including plain
text, URLSearchParams, FormData and Blobs.

### Fixes
- [#zimic] Improved the algorithm to check equality checks for http
headers, search params and form data.

### Documentation
- [#zimic] Added "thoroughly tested" to `README.md`.

Closes #14.
@github-project-automation github-project-automation bot moved this from In review to Done in Zimic Jun 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant