Skip to content

Commit d60f37f

Browse files
Fix the use of broker credentials
The broker credential command line arguments of the Ruby verifier do not expect the arguments to be prefixed with `pact`
1 parent 41fa3df commit d60f37f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

pact/test/test_verify.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def test_password_from_env_var(self):
113113
self.mock_Popen.return_value.returncode = 0
114114
result = self.runner.invoke(verify.main, self.default_opts)
115115
self.assertEqual(result.exit_code, 0)
116-
self.assertProcess(*self.default_call + ['--pact-broker-password=pwd'])
116+
self.assertProcess(*self.default_call + ['--broker-password=pwd'])
117117
self.mock_Popen.return_value.communicate.assert_called_once_with(
118118
timeout=30)
119119

@@ -135,8 +135,8 @@ def test_all_options(self):
135135
'--pact-urls=./pacts/consumer-provider.json',
136136
'--provider-states-url=http=//localhost/provider-states',
137137
'--provider-states-setup-url=http://localhost/provider-states/set',
138-
'--pact-broker-username=user',
139-
'--pact-broker-password=pass')
138+
'--broker-username=user',
139+
'--broker-password=pass')
140140
self.mock_Popen.return_value.communicate.assert_called_once_with(
141141
timeout=60)
142142

pact/verify.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ def main(base_url, pact_urls, states_url, states_setup_url, username,
7474
'--pact-urls': ','.join(pact_urls),
7575
'--provider-states-url': states_url,
7676
'--provider-states-setup-url': states_setup_url,
77-
'--pact-broker-username': username,
78-
'--pact-broker-password': password
77+
'--broker-username': username,
78+
'--broker-password': password
7979
}
8080

8181
command = [VERIFIER_PATH] + [

0 commit comments

Comments
 (0)