-
Notifications
You must be signed in to change notification settings - Fork 78
Closed as not planned
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists
Description
Extend the proxy with ability to test slow API responses.
Rationale
One aspect of testing how applications use an API is how they respond to slow API responses. Is it obvious that content is loading? Is the whole application unresponsive? Is the application failing because it expects a response in a certain timeframe? Graph Developer Proxy can help developers validate the user experience when the API responds slowly.
Spec
- introduce app setting named
minDelayMs, that defines the lower range of the delay in milliseconds added to API response. Default value500 - introduce app setting named
maxDelayMs, that defines the upper range of the delay in milliseconds added to API response. Default value10000 - introduce option named
--min-delaythat allows users to override the value ofminDelayMsas configured in appSettings. When not specified, uses the value from appSettings. - introduce option named
--max-delaythat allows users to override the value ofmaxDelayMsas configured in appSettings. When not specified, uses the value from appSettings. - introduce option named
--slow-responseswhich is a flag. When used, it will cause the proxy to add a random delay from rangeminDelayMs <= x <= maxDelayMsto each API response (mocked or not)
peombwa
Metadata
Metadata
Assignees
Labels
duplicateThis issue or pull request already existsThis issue or pull request already exists