-
Notifications
You must be signed in to change notification settings - Fork 4k
Chef extension ARM commands #2587
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
Chef extension ARM commands #2587
Conversation
…_client_name are passed separately
Hi @NimishaS, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution! TTYL, AZPRBOT; |
@markcowl , Travis is failing but I don't have the permission to see the details. Please help. The commands are tested and functional. |
Several issues:
|
@@ -0,0 +1,125 @@ | |||
using System; |
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.
Please add License header
@NimishaS please add test coverage. |
@hovsepm we faced some issues in past while running the tests in Is it possible for you to schedule an interactive session to help us guide how the test recording can be done? We'll keep the specs ready. This is the PR which couldn't be merged because of test recording issue: #1676 |
@hovsepm , any updates here? |
@NimishaS what I understand from you previous PR is that your tenant ID does not have any subscription. To be able to help you I'll need access to your test environment and devbox. Do you have access to MS corp net? |
@azuresdkci retest this please |
@hovsepm we don't have access to MS corp net. I can share the details of a VM which will have our setup. If this approach sounds fine then please share your email id on @markcowl , @hovsepm : Do you expect us to add test suite in this PR only or can we add that in a separate PR? Finishing test suite will take some time as we need to co-ordinate with you for that. |
@NimishaS As long as you have tested the cmdlets thoroughly, you commit to testing them in the candidate installer during the release, and you file an issue to add the test suite (and make sure to finish before the end of next sprint), then we can defer this. If you decide to go this route, please add a reference to the github issue for adding the tests here. |
@markcowl , created #2638. Please assign this issue to me. I don't have the rights. |
{ | ||
[Cmdlet( | ||
VerbsCommon.Remove, | ||
ProfileNouns.VirtualMachineChefExtension)] |
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.
SupportsShouldProcess=true
this.Name = ExtensionDefaultName; | ||
} | ||
|
||
ExecuteClientAction(() => |
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.
Protect with PSCmdlet.ConfirmAction(target, processMessage, Action)
@NimishaS, A couple of additoonal comments. Please see: https://gist.github.com/markcowl/338e16fe5c8bbf195aff9f8af0db585d For more information on implementing the ShouldProcess pattern using ConfirmAction. We are now requiring this on all new cmdlets (and wnever a cmdlet is changed) |
@NimishaS Please update per the review comments. Your invitation is here: https://github.com/Azure/azure-powershell/invitations this will enable you to assign yourself to the issue (and close when it is done) |
Sorry @markcowl, I had got busy with knife-ec2 release stuff.I will update for the review comments. |
@markcowl , I have got a little occupied with |
@markcowl , added |
on demand run here: http://azuresdkci.cloudapp.net/view/1-AzurePowerShell/job/powershell-demand/1032/ LGTM once the on-demand run passes |
CreateOrUpdateWithHttpMessagesAsync
forSet-AzureRmVMChefExtension
Get-AzureRmVMChefExtension
Remove-AzureRmVMChefExtension