Class: Sbmt::Pact::Provider::PactConfig::Http
- Defined in:
- lib/sbmt/pact/provider/pact_config/http.rb
Constant Summary
Constants inherited from Base
Base::PACT_BROKER_FILTER_TYPE_ASYNC, Base::PACT_BROKER_FILTER_TYPE_GRPC, Base::PACT_BROKER_FILTER_TYPE_HTTP, Base::PACT_BROKER_FILTER_TYPE_NONE, Base::PACT_BROKER_FILTER_TYPE_SYNC
Instance Attribute Summary collapse
-
#http_port ⇒ Object
readonly
Returns the value of attribute http_port.
Attributes inherited from Base
#broker_password, #broker_url, #broker_username, #consumer_branch, #consumer_name, #consumer_version, #log_level, #pact_proxy_port, #provider_name, #provider_setup_port, #provider_setup_server, #provider_version, #verify_only
Instance Method Summary collapse
-
#initialize(provider_name:, opts: {}) ⇒ Http
constructor
A new instance of Http.
- #new_verifier ⇒ Object
Methods inherited from Base
#after_teardown, #before_setup, #filter_type, #message_setup_url, #new_provider_state, #pact_broker_proxy_url, #provider_setup_url, #start_servers, #stop_servers
Constructor Details
#initialize(provider_name:, opts: {}) ⇒ Http
Returns a new instance of Http.
12 13 14 15 16 |
# File 'lib/sbmt/pact/provider/pact_config/http.rb', line 12 def initialize(provider_name:, opts: {}) super @http_port = opts[:http_port] || 3000 end |
Instance Attribute Details
#http_port ⇒ Object (readonly)
Returns the value of attribute http_port.
10 11 12 |
# File 'lib/sbmt/pact/provider/pact_config/http.rb', line 10 def http_port @http_port end |
Instance Method Details
#new_verifier ⇒ Object
18 19 20 |
# File 'lib/sbmt/pact/provider/pact_config/http.rb', line 18 def new_verifier HttpVerifier.new(self) end |