1. A method comprising: intercepting a client request originating from a client device and destined for a server via a network, wherein the server is configured to perform a service in response to the client request, the client request comprising a request action and a request resource; determining whether the request action and the request resource of the client request matches a pattern action and a pattern resource indicated in a pattern in a rule; based on a determination that the request action and the request resource of the client request matches the pattern action and the pattern resource, determining whether a threshold trigger condition in the rule is satisfied based, at least in part, on a first random value, wherein the trigger condition corresponds to frequency of performing a testing related action specified in the rule; based on a determination that the threshold trigger condition is satisfied, determining whether a reset condition in the rule is not satisfied, wherein the reset condition is based, at least in part, on occurrences of a match between the request action and the request resource of the client request and the pattern action and the pattern resource indicated in the pattern and wherein the reset condition corresponds to a number of times to perform the testing related action; and based on a determination that the reset condition is not satisfied, performing at least one testing related action associated with the pattern in the rule, wherein performing the at least one testing related action comprises returning an errored response back to the client device in response to the client request.