class MockServerClient::Client
- MockServerClient::Client
- Reference
- Object
Defined in:
mockserver-client.crConstant Summary
-
SAFE_STATUS_CODE =
[406] + (200..299).to_a
-
Calls to mock server are "successful" with these response codes
Constructors
Instance Method Summary
- #bind(port : Int32 | Array(Int32))
- #clear(id : String)
- #clear(request : HttpRequest)
- #expectation(expectation : Expectation)
- #expectation(**kwargs)
- #forward(**kwargs)
- #request(**kwargs)
- #reset
- #response(**kwargs)
- #retrieve(type : String = "requests", body = nil)
- #retrieve_active_expectations(exp : Expectation | Nil = nil)
- #retrieve_logs
- #retrieve_request_responses(exp : Expectation | Nil = nil)
- #retrieve_requests(exp : Expectation | Nil = nil)
- #retrievie_recorded_expectations(exp : Expectation | Nil = nil)
- #status
- #verify(expectation : Expectation | ExpectationId | HttpRequest | String, **kwargs)
- #verify_sequence(sequence : Array(HttpRequest) | Array(Expectation))