Skip to content

Conversation

@selanthiraiyan
Copy link
Contributor

@selanthiraiyan selanthiraiyan commented Jan 2, 2023

Closes: #8507

Description

This PR adds unit tests to test the behaviour of RequestProcessor

  • Make RequestAuthenticator a protocol for testability.
  • Rename RequestAuthenticator into DefaultRequestAuthenticator
  • RequestProcessor: Add unit tests to
    • ensure the requests are authenticated from adapt method.
    • ensure that the requests are scheduled for retry properly.
    • validate that application password is generated when needed.

Testing instructions

CI passing should be enough.

Screenshots

NA


  • I have considered if this change warrants user-facing release notes and have added them to RELEASE-NOTES.txt if necessary.

@selanthiraiyan selanthiraiyan added type: task An internally driven task. feature: login Related to any part of the log in or sign in flow, or authentication. labels Jan 2, 2023
@selanthiraiyan selanthiraiyan added this to the 11.8 milestone Jan 2, 2023
@selanthiraiyan selanthiraiyan marked this pull request as ready for review January 2, 2023 09:21
@wpmobilebot
Copy link
Collaborator

You can test the changes from this Pull Request by:
  • Clicking here or scanning the QR code below to access App Center
  • Then installing the build number pr8515-6a822bd on your iPhone

If you need access to App Center, please ask a maintainer to add you.

Copy link
Contributor

@jaclync jaclync left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for adding the tests! 🚢

@selanthiraiyan selanthiraiyan merged commit 0d52c61 into trunk Jan 3, 2023
@selanthiraiyan selanthiraiyan deleted the feat/8507-unit-test-request-processor branch January 3, 2023 02:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature: login Related to any part of the log in or sign in flow, or authentication. type: task An internally driven task.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[REST API] Add unit tests for RequestProcessor

4 participants