Class: Sbmt::Pact::Provider::HttpVerifier
- Inherits:
-
BaseVerifier
- Object
- BaseVerifier
- Sbmt::Pact::Provider::HttpVerifier
- Defined in:
- lib/sbmt/pact/provider/http_verifier.rb
Constant Summary collapse
- PROVIDER_TRANSPORT_TYPE =
"http"
Constants inherited from BaseVerifier
BaseVerifier::DEFAULT_CONSUMER_SELECTORS, BaseVerifier::VERIFICATION_ERRORS
Instance Attribute Summary
Attributes inherited from BaseVerifier
Instance Method Summary collapse
-
#initialize(pact_config) ⇒ HttpVerifier
constructor
A new instance of HttpVerifier.
Methods inherited from BaseVerifier
Constructor Details
#initialize(pact_config) ⇒ HttpVerifier
Returns a new instance of HttpVerifier.
12 13 14 15 16 17 |
# File 'lib/sbmt/pact/provider/http_verifier.rb', line 12 def initialize(pact_config) super raise ArgumentError, "pact_config must be an instance of Sbmt::Pact::Provider::PactConfig::Http" unless pact_config.is_a?(::Sbmt::Pact::Provider::PactConfig::Http) @http_server = HttpServer.new(host: "127.0.0.1", port: @pact_config.http_port) end |