Skip to content

Commit

Permalink
Merge pull request #178 from pact-foundation/fix/custom_header_typo
Browse files Browse the repository at this point in the history
fix: custom headers:
  • Loading branch information
elliottmurray authored Oct 9, 2020
2 parents 0e9b71c + b07ef69 commit 90b71d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pact/verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
4 changes: 3 additions & 1 deletion tests/test_verifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 90b71d2

Please sign in to comment.