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

feat: Added feature to specify Azure subcription ID in CLI before deployment #203

Merged
merged 5 commits into from
Jul 17, 2019

Conversation

neerajmandal
Copy link
Collaborator

Added feature to specify subscription ID in the CLI which overrides any existing subscriptions ID and deploys the functions to the subscription specified by the user.

sls deploy -i <subscriptionID>

AB#360

Copy link
Collaborator

@tbarlow12 tbarlow12 left a comment

Choose a reason for hiding this comment

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

A few comments, also would like to see some unit tests here

src/plugins/azureBasePlugin.ts Outdated Show resolved Hide resolved
src/plugins/deploy/azureDeployPlugin.ts Show resolved Hide resolved
src/services/loginService.ts Show resolved Hide resolved
src/plugins/deploy/azureDeployPlugin.ts Outdated Show resolved Hide resolved
@coveralls
Copy link

coveralls commented Jul 12, 2019

Coverage Status

Coverage increased (+0.02%) to 84.19% when pulling 396af86 on t-nemand/subscriptionId into d8cca60 on dev.

wbreza
wbreza previously requested changes Jul 12, 2019
Copy link
Member

@wbreza wbreza left a comment

Choose a reason for hiding this comment

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

Added a few comments. Overall looks good.

src/plugins/azureBasePlugin.ts Outdated Show resolved Hide resolved
src/plugins/login/azureLoginPlugin.ts Show resolved Hide resolved
Copy link
Collaborator

@tbarlow12 tbarlow12 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, added a few style suggestions

src/plugins/login/azureLoginPlugin.test.ts Outdated Show resolved Hide resolved
src/plugins/login/azureLoginPlugin.test.ts Outdated Show resolved Hide resolved
src/plugins/login/azureLoginPlugin.test.ts Outdated Show resolved Hide resolved
src/plugins/login/azureLoginPlugin.test.ts Outdated Show resolved Hide resolved
@pjlittle
Copy link
Collaborator

looks good - one low hanging question on authResult.subscriptions[0].id -- is authResult and or subscriptions guaranteed or would that potentially get a nullref? If the user bails on an interactive login, is it possible to hit this code path or it is not a possibility?

Nice work on this! 👍

@neerajmandal neerajmandal dismissed wbreza’s stale review July 17, 2019 16:33

Test cases added. It is not recognizing the changes made.

@neerajmandal neerajmandal merged commit 7ceb484 into dev Jul 17, 2019
tbarlow12 pushed a commit that referenced this pull request Sep 13, 2019
…loyment (#203)

* option to specify subscription id from CLI added

* Build issue resolved

* azureBasePlugin issue resolved

* Two test cases added to test subscription ID feature

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

Successfully merging this pull request may close these issues.

None yet

5 participants