Skip to content
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

Merged
merged 3 commits into from
Aug 13, 2021

Conversation

padamstx
Copy link
Member

@padamstx padamstx commented Aug 11, 2021

Checklist
  • npm test passes (tip: npm run lint-fix can correct most style issues)
  • tests are included
  • documentation is changed or added

@padamstx padamstx requested a review from dpopp07 August 11, 2021 23:44
@padamstx padamstx self-assigned this Aug 11, 2021
Copy link
Member

@dpopp07 dpopp07 left a 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',
// }));
Copy link
Member

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',
Copy link
Member

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

Copy link
Member

@dpopp07 dpopp07 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great! 👍

@padamstx padamstx merged commit fccf209 into main Aug 13, 2021
@padamstx padamstx deleted the support-authtype-property branch August 13, 2021 16:31
ibm-devx-sdk pushed a commit that referenced this pull request Aug 13, 2021
## [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))
@ibm-devx-sdk
Copy link

🎉 This PR is included in version 2.12.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants