|
38 | 38 | end |
39 | 39 | end |
40 | 40 |
|
41 | | - shared_examples_for 'auth mechanism that uses database or default auth source' do |default_auth_source:| |
| 41 | + shared_examples_for 'auth mechanism that uses database or default auth source' do |default_auth_source| |
42 | 42 | context 'where no database is provided' do |
43 | 43 | context 'with URI options' do |
44 | 44 | let(:credentials) { "#{user}:#{pwd}@" } |
|
198 | 198 | let(:auth_mech_sym) { :mongodb_cr } |
199 | 199 |
|
200 | 200 | it_behaves_like 'a supported auth mechanism' |
201 | | - it_behaves_like 'auth mechanism that uses database or default auth source', default_auth_source: 'admin' |
| 201 | + it_behaves_like 'auth mechanism that uses database or default auth source', 'admin' |
202 | 202 | it_behaves_like 'an auth mechanism that doesn\'t support auth_mech_properties' |
203 | 203 | end |
204 | 204 |
|
|
207 | 207 | let(:auth_mech_sym) { :scram } |
208 | 208 |
|
209 | 209 | it_behaves_like 'a supported auth mechanism' |
210 | | - it_behaves_like 'auth mechanism that uses database or default auth source', default_auth_source: 'admin' |
| 210 | + it_behaves_like 'auth mechanism that uses database or default auth source', 'admin' |
211 | 211 | it_behaves_like 'an auth mechanism that doesn\'t support auth_mech_properties' |
212 | 212 | end |
213 | 213 |
|
|
216 | 216 | let(:auth_mech_sym) { :scram256 } |
217 | 217 |
|
218 | 218 | it_behaves_like 'a supported auth mechanism' |
219 | | - it_behaves_like 'auth mechanism that uses database or default auth source', default_auth_source: 'admin' |
| 219 | + it_behaves_like 'auth mechanism that uses database or default auth source', 'admin' |
220 | 220 | it_behaves_like 'an auth mechanism that doesn\'t support auth_mech_properties' |
221 | 221 | end |
222 | 222 |
|
|
263 | 263 | let(:auth_mech_sym) { :plain } |
264 | 264 |
|
265 | 265 | it_behaves_like 'a supported auth mechanism' |
266 | | - it_behaves_like 'auth mechanism that uses database or default auth source', default_auth_source: '$external' |
| 266 | + it_behaves_like 'auth mechanism that uses database or default auth source', '$external' |
267 | 267 | it_behaves_like 'an auth mechanism with ssl' |
268 | 268 | it_behaves_like 'an auth mechanism that doesn\'t support auth_mech_properties' |
269 | 269 | end |
|
0 commit comments