Module plugin_manager

Module plugin_manager 

Source
Expand description

Manages interactions with Pact plugins

Functionsยง

drop_plugin_access
Decrement access to the plugin. If the current access count is zero, shut down the plugin
get_mock_server_results
Gets the results from a running mock server.
increment_plugin_access
Increment access to the plugin.
init_handshake
Internal function: public for testing
install_plugin_from_url
Tries to download and install the plugin from the given URL, returning the manifest for the plugin if successful.
load_plugin
Load the plugin defined by the dependency information. Will first look in the global plugin registry.
load_plugin_manifest
Return the plugin manifest for the given plugin. Will first look in the global plugin manifest registry.
lookup_plugin
Look up the plugin in the global plugin register
lookup_plugin_manifest
Lookup the plugin manifest in the global plugin manifest registry.
prepare_validation_for_interaction
Sets up a transport request to be made. This is the first phase when verifying, and it allows the users to add additional values to any requests that are made.
publish_updated_catalogue
Publish the current catalogue to all plugins
shutdown_mock_server
Shutdowns a running mock server. Will return any errors from the mock server.
shutdown_plugin
Shutdown the given plugin
shutdown_plugins
Shut down all plugin processes
start_mock_serverDeprecated
Starts a mock server given the catalog entry for it and a Pact
start_mock_server_v2
Starts a mock server given the catalog entry for it and a Pact. Any transport specific configuration must be passed in the test_context field under the transport_config key. Note that the next version of the interface will pass the transport specific configuration in its own field.
verify_interaction
Executes the verification of the interaction that was configured with the prepare_validation_for_interaction call