Verifier¶
Classes and methods to verify Contracts.
Classes¶
Verifier(provider, provider_base_url, **kwargs)
¶
Bases: object
A Pact Verifier.
PARAMETER | DESCRIPTION |
---|---|
provider
|
provider name
TYPE:
|
provider_base_url
|
provider url
TYPE:
|
Source code in src/pact/verifier.py
Attributes¶
provider = provider
instance-attribute
¶
provider_base_url = provider_base_url
instance-attribute
¶
Functions¶
extract_params(**kwargs)
¶
Extract params.
Source code in src/pact/verifier.py
filter_empty_options(**kwargs)
¶
Filter out empty options.
Source code in src/pact/verifier.py
is_empty_list(item)
¶
validate_publish(**kwargs)
¶
verify_pacts(*pacts, enable_pending=False, include_wip_pacts_since=None, **kwargs)
¶
Verify our pacts from the provider.
RETURNS | DESCRIPTION |
---|---|
success
|
True if no failures |
logs
|
some tbd output of logs |
Source code in src/pact/verifier.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:
|