diff --git a/pact/verifier.py b/pact/verifier.py index 56a43c554f..d252214d15 100644 --- a/pact/verifier.py +++ b/pact/verifier.py @@ -104,7 +104,7 @@ def extract_params(self, **kwargs): 'log_dir': log_dir, 'log_level': log_level, 'provider_app_version': provider_app_version, - 'custom_provider_header': list(headers), + 'custom_provider_headers': list(headers), 'timeout': timeout, 'consumer_tags': list(consumer_tags), 'provider_tags': list(provider_tags), diff --git a/tests/test_verifier.py b/tests/test_verifier.py index 0d4f0a4e8d..68929f3568 100644 --- a/tests/test_verifier.py +++ b/tests/test_verifier.py @@ -28,12 +28,14 @@ def test_verifier_with_provider_and_files(self, mock_path_exists, mock_wrapper): mock_wrapper.return_value = (True, 'some logs') output, _ = self.verifier.verify_pacts('path/to/pact1', - 'path/to/pact2') + 'path/to/pact2', + headers=['header1', 'header2']) assertVerifyCalled(mock_wrapper, 'path/to/pact1', 'path/to/pact2', provider='test_provider', + custom_provider_headers=['header1', 'header2'], provider_base_url='http://localhost:8888', log_level='INFO', verbose=False,