Closed as not planned
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-delay
that allows users to override the value ofminDelayMs
as configured in appSettings. When not specified, uses the value from appSettings. - introduce option named
--max-delay
that allows users to override the value ofmaxDelayMs
as configured in appSettings. When not specified, uses the value from appSettings. - introduce option named
--slow-responses
which is a flag. When used, it will cause the proxy to add a random delay from rangeminDelayMs <= x <= maxDelayMs
to each API response (mocked or not)