-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: support 'AUTHTYPE' as alias for 'AUTH_TYPE' config property #153
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! 👍
// authtype: 'basic', | ||
// username: 'a', | ||
// password: 'b', | ||
// })); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this supposed to be all commented out?
@@ -152,7 +152,7 @@ function setUpIamPayloadWithScope() { | |||
|
|||
function setUpCp4dPayload() { | |||
readExternalSourcesMock.mockImplementation(() => ({ | |||
authType: 'cp4d', | |||
authtype: 'cp4d', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is all good and probably sufficient, but if you wanted to throw in one extra test you could add something to read-external-sources.test.js
that ensures something like SERVICE_NAME_AUTHTYPE
is in fact converted to authtype
in the object returned. Totally up to you, it's fine as is
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great! 👍
## [2.12.2](v2.12.1...v2.12.2) (2021-08-13) ### Bug Fixes * support 'AUTHTYPE' as alias for 'AUTH_TYPE' config property ([#153](#153)) ([fccf209](fccf209))
🎉 This PR is included in version 2.12.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Checklist
npm test
passes (tip:npm run lint-fix
can correct most style issues)