Skip to content

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

Merged
merged 14 commits into from
Jul 29, 2016

Conversation

NimishaS
Copy link

@NimishaS NimishaS commented Jul 8, 2016

  1. Using new classes like CreateOrUpdateWithHttpMessagesAsync for Set-AzureRmVMChefExtension
  2. Passing settings file as Hashtable
  3. Implements Get-AzureRmVMChefExtension
  4. Implements Remove-AzureRmVMChefExtension

@azurecla
Copy link

azurecla commented Jul 8, 2016

Hi @NimishaS, I'm your friendly neighborhood Azure Pull Request Bot (You can call me AZPRBOT). Thanks for your contribution!
You've already signed the contribution license agreement. Thanks!
We will now validate the agreement and then real humans will evaluate your PR.

TTYL, AZPRBOT;

@NimishaS
Copy link
Author

NimishaS commented Jul 8, 2016

@markcowl , Travis is failing but I don't have the permission to see the details. Please help.

The commands are tested and functional.

@hovsepm
Copy link
Contributor

hovsepm commented Jul 8, 2016

Several issues:

  1. Help missing for cmdlet Get-AzureRmVMChefExtension implemented by class Microsoft.Azure.Commands.Compute.Extension.Chef.GetAzureRmVMChefExtension
  2. Help missing for cmdlet Remove-AzureRmVMChefExtension implemented by class Microsoft.Azure.Commands.Compute.Extension.Chef.RemoveAzureRmVMChefExtension

@@ -0,0 +1,125 @@
using System;
Copy link
Contributor

Choose a reason for hiding this comment

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

Please add License header

@hovsepm
Copy link
Contributor

hovsepm commented Jul 11, 2016

@NimishaS please add test coverage.

@NimishaS
Copy link
Author

@hovsepm we faced some issues in past while running the tests in recording mode. We had followed the documentation: https://github.com/Azure/azure-powershell/wiki/Microsoft-Azure-PowerShell-Developer-Guide#ad-scenario-tests, but couldn't get pass through.

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

@NimishaS
Copy link
Author

@hovsepm , any updates here?

@hovsepm
Copy link
Contributor

hovsepm commented Jul 15, 2016

@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?

@markcowl
Copy link
Member

@azuresdkci retest this please

@NimishaS
Copy link
Author

@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 [email protected].

@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.

@markcowl
Copy link
Member

markcowl commented Jul 19, 2016

@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.

@NimishaS
Copy link
Author

@markcowl , created #2638. Please assign this issue to me. I don't have the rights.
We have tested the cmdlets thoroughly and will also take up the task to test them during the release on high priority. Since we are ruby developers and new to C# and visual studio, it's not clear to me what it means to test in candidate installer. Can you please share some links?

{
[Cmdlet(
VerbsCommon.Remove,
ProfileNouns.VirtualMachineChefExtension)]
Copy link
Member

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(() =>
Copy link
Member

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)

@markcowl
Copy link
Member

@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)

@markcowl
Copy link
Member

@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)

@NimishaS
Copy link
Author

Sorry @markcowl, I had got busy with knife-ec2 release stuff.I will update for the review comments.

@NimishaS
Copy link
Author

@markcowl , I have got a little occupied with knife-ec2 release. I will be picking this up again in 2-3 days, once knife-ec2 is out.

@NimishaS
Copy link
Author

@markcowl , added SupportsShouldProcess and ConfirmAction for Set-AzureRmVMChefExtension and Remove-AzureRmVMChefExtension commands. Also tested with -confirm option.

@NimishaS
Copy link
Author

@markcowl I will be able to start with #2638 once this PR is merged as I need to create the PR for #2638 from dev branch. Please review this and let us know if anything needs to be fixed.

@markcowl
Copy link
Member

on demand run here: http://azuresdkci.cloudapp.net/view/1-AzurePowerShell/job/powershell-demand/1032/

LGTM once the on-demand run passes

@markcowl markcowl merged commit 6aad8f4 into Azure:dev Jul 29, 2016
@NimishaS NimishaS deleted the nim/Update_Set-AzureRmVMChefExtension branch August 1, 2016 10:21
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.

4 participants