test: Adding checking of post body to http mocks

Description

The http mocker currently doesn't differentiate between post requests to the same endpoint. Two different requests to create an MR to something like /api/v4/projects/group/project/merge_requests will count as the same stub and fail tests. This MR attempts to add a new type that will allow for checking of the payload for the request as well.

Related Issues

Resolves #[issue_number]

How has this been tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Documentation
  • Chore (Related to CI or Packaging to platforms)
  • Test gap
Edited by Gary Holtz

Merge request reports

Loading