Skip to content

Add matcher hasFormBody#321

Merged
jeffctown merged 7 commits intoAliSoftware:masterfrom
417-72KI:feature/has-form-body-helper-function
Oct 2, 2020
Merged

Add matcher hasFormBody#321
jeffctown merged 7 commits intoAliSoftware:masterfrom
417-72KI:feature/has-form-body-helper-function

Conversation

@417-72KI
Copy link
Contributor

@417-72KI 417-72KI commented Dec 4, 2019

Checklist

  • I've checked that all new and existing tests pass
  • I've updated the documentation if necessary
  • I've added an entry in the CHANGELOG to credit myself

Description

I've added a matcher called hasFormBody that tests whether the NSURLRequest content-type is application/x-www-form-urlencoded and body contains query parameters.

Motivation and Context

In POST request with application/x-www-form-urlencoded, parameters are handled in httpBody.
For that reason, containsQueryParams function is useless for this situation.
Also for the same reason as #265, I need a new matcher that takes query items from httpBody and matches with expected pairs.

@417-72KI 417-72KI force-pushed the feature/has-form-body-helper-function branch from 7e8d989 to 313a24f Compare December 4, 2019 07:15
@417-72KI 417-72KI marked this pull request as ready for review December 4, 2019 07:19
@417-72KI 417-72KI changed the title [Draft] Add matcher hasFormBody Add matcher hasFormBody Dec 4, 2019
@417-72KI 417-72KI force-pushed the feature/has-form-body-helper-function branch from e22b05b to 3669525 Compare August 17, 2020 08:09
@jeffctown jeffctown self-requested a review October 2, 2020 01:10
@jeffctown jeffctown merged commit 47ea866 into AliSoftware:master Oct 2, 2020
@417-72KI 417-72KI deleted the feature/has-form-body-helper-function branch October 2, 2020 02:03
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