You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like the fault injection plugin, however is seems it's not very flexible.
It would be very helpful if it would support dynamic fault injection. For example, I can only set one abort code per route, I cannot chain more than one abort or delay faults with different trigger conditions
Say I want to test several HTTP response codes on the same route, or have random delays or different delays values on the same route, seems that's not possible as the values are just hardcoded in the plugin, and even with the conditions, seems there's no way to achieve this.
It would be very interesting to have the fault injection plugin, read some headers from the request and act accordingly, for example set a header to delay for whatever that header's value is in seconds, or abort with a code specified in the header, of course all fault injection behavior should be also enabled/disabled dynamically by a header value.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi folks,
I like the fault injection plugin, however is seems it's not very flexible.
It would be very helpful if it would support dynamic fault injection. For example, I can only set one abort code per route, I cannot chain more than one abort or delay faults with different trigger conditions
Say I want to test several HTTP response codes on the same route, or have random delays or different delays values on the same route, seems that's not possible as the values are just hardcoded in the plugin, and even with the conditions, seems there's no way to achieve this.
It would be very interesting to have the fault injection plugin, read some headers from the request and act accordingly, for example set a header to delay for whatever that header's value is in seconds, or abort with a code specified in the header, of course all fault injection behavior should be also enabled/disabled dynamically by a header value.
Same applies with Mocking I believe.
Beta Was this translation helpful? Give feedback.
All reactions