Message Provider¶
Contract Message Provider.
Classes¶
MessageProvider(message_providers, provider, consumer, pact_dir=os.getcwd(), version='3.0.0', proxy_host='localhost', proxy_port='1234')
¶
Bases: object
A Pact message provider.
provider = MessageProvider( message_providers = { "a document created successfully": handler }, provider='DocumentService', pact_dir='pacts', version='3.0.0' )
Source code in src/pact/message_provider.py
Attributes¶
consumer = consumer
instance-attribute
¶
message_providers = message_providers
instance-attribute
¶
pact_dir = pact_dir
instance-attribute
¶
provider = provider
instance-attribute
¶
proxy_host = proxy_host
instance-attribute
¶
proxy_port = proxy_port
instance-attribute
¶
version = version
instance-attribute
¶
Functions¶
verify()
¶
Verify pact files with executable verifier.
Source code in src/pact/message_provider.py
verify_with_broker(enable_pending=False, include_wip_pacts_since=None, **kwargs)
¶
Use Broker to verify.
PARAMETER | DESCRIPTION |
---|---|
broker_username
|
broker username
TYPE:
|
broker_password
|
broker password
TYPE:
|
broker_url
|
url of broker
TYPE:
|