Module: MockServer

Defined in:
lib/mockserver-client/version.rb,
lib/mockserver-client.rb,
lib/mockserver-client/api_error.rb,
lib/mockserver-client/api_client.rb,
lib/mockserver-client/models/body.rb,
lib/mockserver-client/models/delay.rb,
lib/mockserver-client/models/ports.rb,
lib/mockserver-client/models/times.rb,
lib/mockserver-client/configuration.rb,
lib/mockserver-client/api/verify_api.rb,
lib/mockserver-client/api/control_api.rb,
lib/mockserver-client/models/http_error.rb,
lib/mockserver-client/models/expectation.rb,
lib/mockserver-client/api/expectation_api.rb,
lib/mockserver-client/models/expectations.rb,
lib/mockserver-client/models/http_forward.rb,
lib/mockserver-client/models/http_request.rb,
lib/mockserver-client/models/key_to_value.rb,
lib/mockserver-client/models/time_to_live.rb,
lib/mockserver-client/models/verification.rb,
lib/mockserver-client/models/http_response.rb,
lib/mockserver-client/models/http_template.rb,
lib/mockserver-client/models/connection_options.rb,
lib/mockserver-client/models/key_to_multi_value.rb,
lib/mockserver-client/models/verification_times.rb,
lib/mockserver-client/models/http_class_callback.rb,
lib/mockserver-client/models/http_object_callback.rb,
lib/mockserver-client/models/verification_sequence.rb,
lib/mockserver-client/models/body_with_content_type.rb,
lib/mockserver-client/models/http_override_forwarded_request.rb

Overview

#Mock Server API

#MockServer enables easy mocking of any system you integrate with via HTTP or HTTPS with clients written in Java, JavaScript and Ruby and a simple REST API (as shown below). MockServer Proxy is a proxy that introspects all proxied traffic including encrypted SSL traffic and supports Port Forwarding, Web Proxying (i.e. HTTP proxy), HTTPS Tunneling Proxying (using HTTP CONNECT) and SOCKS Proxying (i.e. dynamic port forwarding). Both MockServer and the MockServer Proxy record all received requests so that it is possible to verify exactly what requests have been sent by the system under test.

OpenAPI spec version: 5.3.0

Generated by: openapi-generator.tech OpenAPI Generator version: 3.3.1

Defined Under Namespace

Classes: ApiClient, ApiError, Body, BodyWithContentType, Configuration, ConnectionOptions, ControlApi, Delay, Expectation, ExpectationApi, Expectations, HttpClassCallback, HttpError, HttpForward, HttpObjectCallback, HttpOverrideForwardedRequest, HttpRequest, HttpResponse, HttpTemplate, KeyToMultiValue, KeyToValue, Ports, TimeToLive, Times, Verification, VerificationSequence, VerificationTimes, VerifyApi

Constant Summary collapse

VERSION =
'5.3.7'

Class Method Summary collapse

Class Method Details

.configureObject

Customize default settings for the SDK using block.

MockServer.configure do |config|
  config.username = "xxx"
  config.password = "xxx"
end

If no block given, return the default Configuration object.



56
57
58
59
60
61
62
# File 'lib/mockserver-client.rb', line 56

def configure
  if block_given?
    yield(Configuration.default)
  else
    Configuration.default
  end
end