-
Notifications
You must be signed in to change notification settings - Fork 9
Add a test HTTP listener that can be started from UTs and responses can be tailored according to the test needs #74
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
Conversation
…n be tailored according to the test needs
- Add UTs to test Invoke-OktaApiClient using the HttpListener when calling IWR
bryanapellanes-okta
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A question of curiosity but approved 👍
| Remove-Module -Name Okta.PowerShell.PrivateFunctions -Verbose | ||
| } | ||
|
|
||
| It 'OktaApiClient should use the HttpListener when calling IWR' { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is IWR a known concept? What does it stand for?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It refers to Invoke-WebRequest
Description
Reproducing 429/retry issues is a complex task as we’ll need to interact with a test Okta org to force a 429. To facilitate the testing and resolution of 429 responses, we need to create a mock HTTP listener that can be started from UTs and where responses can be tailored according to the test needs.
What's changed?
Invoke-OktaApiClientfor testing purposesFix OKTA-849405