WARNING: Version 5.x has passed its EOL date.
This documentation is no longer being maintained and may be removed. If you are running this version, we strongly advise you to upgrade. For the latest information, see the current release documentation.
Allowed status codes
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Allowed status codes
editvar audit = new Auditor(() => Framework.Cluster
.Nodes(10)
.ClientCalls(r => r.FailAlways(400))
.StaticConnectionPool()
.Settings(s => s.DisablePing().MaximumRetries(0))
);
audit = await audit.TraceCalls(
new ClientCall {
{ BadResponse, 9200 }
},
new ClientCall(r => r.AllowedStatusCodes(400)) {
{ HealthyResponse, 9201 }
}
);