(self)
| 466 | ) |
| 467 | |
| 468 | def test_get_credential_store(self): |
| 469 | auth_config = auth.AuthConfig({ |
| 470 | 'credHelpers': { |
| 471 | 'registry1.io': 'truesecret', |
| 472 | 'registry2.io': 'powerlock' |
| 473 | }, |
| 474 | 'credsStore': 'blackbox', |
| 475 | }) |
| 476 | |
| 477 | assert auth_config.get_credential_store('registry1.io') == 'truesecret' |
| 478 | assert auth_config.get_credential_store('registry2.io') == 'powerlock' |
| 479 | assert auth_config.get_credential_store('registry3.io') == 'blackbox' |
| 480 | |
| 481 | def test_get_credential_store_no_default(self): |
| 482 | auth_config = auth.AuthConfig({ |
nothing calls this directly
no test coverage detected