Skip to content

Bugs 6-9, 14 from Issue#9 of Quoting-Service #990

Description

@gibaros

Goal:

As a Hub Operator of a Mojaloop Switch
I want to respond with an HTTP error code for requests that do not follow the (Swagger) API Definition Data Model and or data validation agains DB so that only valid requests are accepted and processed in the Switch

Tasks:

  • Implement Scheme and DB validations based on missing items as per list here bugs 6-14
  • Bug 6 - Validate content type header
  • Bug 7 - Validate missing mandatory fields: quoteid, transactionid, payer partyIdType, payee partyIdType, payer partyIdentifier, payee partyIdentifier. Follow up session will take care of quoteid, transactionid and other missing fields were non an issue.
  • Bug 8 - sending duplicate quoteid request with modified data is not returning error 3106, it was tested and found a non issue as expected 3106 is being returned at error callback
  • Bug 9 - Validate missing destination FSP results in 3201, tested currently missing field is detected, but instead of expected 3201, 3100 is being returned
  • Bug 14 - Validate incorrect version, not showing response code 406
  • Asses bug still occur and address them
  • Update HeaderValidation Plugin errorInformation response as no 2001 Internal Server Error should be returned to outside client callers. For example in the case of "Unsupported Media Type" for when a non-valid content-type header is received an error code of 3100 should be used.

Acceptance Criteria:

  • Designs are up-to date
  • Unit Tests pass
  • Integration Tests pass
  • Code Style & Coverage meets standards
  • Changes made to config (default.json) are broadcast to team and follow-up tasks added to update helm charts and other deployment config.

Pull Requests:

PRs to fix bugs 6,7,8,9,14

Follow-up:

Dependencies:

  • N/A

Accountability:

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions