Skip to content

Latest commit

 

History

History
36 lines (29 loc) · 1.03 KB

respects-allowed-status-code.asciidoc

File metadata and controls

36 lines (29 loc) · 1.03 KB

Allowed status codes

var audit = new Auditor(() => VirtualClusterWith
    .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 }
    }
);