start_mock_server_v2

Function start_mock_server_v2 

Source
pub async fn start_mock_server_v2(
    catalogue_entry: &CatalogueEntry,
    pact: Box<dyn Pact + Send + Sync>,
    config: MockServerConfig,
    test_context: HashMap<String, Value>,
) -> Result<MockServerDetails>
Expand description

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.