Skip to content

Commit 90b71d2

Browse files
Merge pull request #178 from pact-foundation/fix/custom_header_typo
fix: custom headers:
2 parents 0e9b71c + b07ef69 commit 90b71d2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

pact/verifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def extract_params(self, **kwargs):
104104
'log_dir': log_dir,
105105
'log_level': log_level,
106106
'provider_app_version': provider_app_version,
107-
'custom_provider_header': list(headers),
107+
'custom_provider_headers': list(headers),
108108
'timeout': timeout,
109109
'consumer_tags': list(consumer_tags),
110110
'provider_tags': list(provider_tags),

tests/test_verifier.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,14 @@ def test_verifier_with_provider_and_files(self, mock_path_exists, mock_wrapper):
2828
mock_wrapper.return_value = (True, 'some logs')
2929

3030
output, _ = self.verifier.verify_pacts('path/to/pact1',
31-
'path/to/pact2')
31+
'path/to/pact2',
32+
headers=['header1', 'header2'])
3233

3334
assertVerifyCalled(mock_wrapper,
3435
'path/to/pact1',
3536
'path/to/pact2',
3637
provider='test_provider',
38+
custom_provider_headers=['header1', 'header2'],
3739
provider_base_url='http://localhost:8888',
3840
log_level='INFO',
3941
verbose=False,

0 commit comments

Comments
 (0)