-
Notifications
You must be signed in to change notification settings - Fork 4k
Add -AsJob parameter to websites cmdlets #5257
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
Add -AsJob parameter to websites cmdlets #5257
Conversation
@@ -621,7 +625,7 @@ function Test-RemoveWebAppSlot | |||
Assert-AreEqual $serverFarm.Id $slot.ServerFarmId | |||
|
|||
# Remove web app via pipeline obj | |||
$slot | Remove-AzureRmWebAppSlot -Force | |||
$slot | Remove-AzureRmWebAppSlot -Force -AsJob |
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.
Need to add Wait-Job here
@@ -43,7 +43,7 @@ function Test-GetWebAppSlot | |||
Assert-AreEqual $serverFarm.Id $webapp.ServerFarmId | |||
|
|||
# Create new deployment slot | |||
$slot1 = New-AzureRmWebAppSlot -ResourceGroupName $rgname -Name $appname -Slot $slotname1 -AppServicePlan $planName | |||
$slot1 = New-AzureRmWebAppSlot -ResourceGroupName $rgname -Name $appname -Slot $slotname1 -AppServicePlan $planName |
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 like you didn't add the test here.
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 the Test-GetWebAppSlot , i haven't updated this one i add it to the Test-CreateNewWebAppSlot
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.
So in Test-CreateNewWebAppSlot, I see you updated the New-AzureRmWebApp cmdlet but not the New-AzureRmWebAppSlot cmdlet, so at the moment there is no test for New-AzureRmWebAppSlot.
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.
Thanks for pointing this out - updated now
@@ -15,13 +15,13 @@ Removes an Azure Web App. | |||
|
|||
### S1 | |||
``` | |||
Remove-AzureRmWebApp [-Force] [-ResourceGroupName] <String> [-Name] <String> |
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.
There doesn't seem to be a test for this cmdlet.
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.
WebAppTests.ps1 has this "function Test-RemoveWebApp" which is updated. Is there anything else i am missing here? Thanks!
Description
#5120
This checklist is used to make sure that common guidelines for a pull request are followed. You can find a more complete discussion of PowerShell cmdlet best practices here.
General Guidelines
Testing Guidelines
Cmdlet Signature Guidelines
ShouldProcess
and haveSupportShouldProcess=true
specified in the cmdlet attribute. You can find more information onShouldProcess
here.OutputType
attribute if any output is produced - if the cmdlet produces no output, it should implement aPassThru
parameter.Cmdlet Parameter Guidelines