Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge branch 'dev' of https://github.com/WindowsAzure/azure-sdk-tools

…into dev
  • Loading branch information...
commit 3bc76950f04bf54fd9d1067a970d2b4cc176d5db 2 parents 9d80177 + b1ab8a4
markcowl authored
View
8 WindowsAzurePowershell/src/Management.ScenarioTest/CloudServiceTests/CloudServiceTests.cs
@@ -91,6 +91,14 @@ public void TestRemoveAzureServiceWhatIfWithInvalidName()
RunPowerShellTest("Test-RemoveAzureServiceWhatIfWithInvalidName");
}
+ [TestMethod]
+ [TestCategory(Category.All)]
+ [TestCategory(Category.CloudService)]
+ public void TestRemoveAzureServicePipedFromGetAzureService()
+ {
+ RunPowerShellTest("Test-RemoveAzureServicePipedFromGetAzureService");
+ }
+
#endregion
}
}
View
17 WindowsAzurePowershell/src/Management.ScenarioTest/Resources/CloudService/CloudServiceTests.ps1
@@ -134,4 +134,21 @@ function Test-RemoveAzureServiceWhatIfWithInvalidName
# Assert
Assert-True { $true }
+}
+
+<#
+.SYNOPSIS
+Tests Remove-AzureService with service piped from Get-AzureService cmdlet
+#>
+function Test-RemoveAzureServicePipedFromGetAzureService
+{
+ # Setup
+ $name = Get-CloudServiceName
+ New-AzureService $name -Location $(Get-DefaultLocation)
+
+ # Test
+ $removed = Get-AzureService $name | Remove-AzureService -Force -PassThru
+
+ # Assert
+ Assert-True { $removed }
}
View
9 WindowsAzurePowershell/src/Management.ScenarioTest/Resources/CloudService/Common.ps1
@@ -31,6 +31,15 @@ function Get-CloudServiceName
<#
.SYNOPSIS
+Gets the default location
+#>
+function Get-DefaultLocation
+{
+ return (Get-AzureLocation)[0].Name
+}
+
+<#
+.SYNOPSIS
Creates cloud services with the count specified
.PARAMETER count
View
3  WindowsAzurePowershell/src/Management.ScenarioTest/Resources/TestAzure.psd1
@@ -72,7 +72,8 @@ FormatsToProcess = @(
NestedModules = '.\Microsoft.WindowsAzure.Management.CloudService.dll',
'.\Microsoft.WindowsAzure.Management.Service.dll',
'.\Microsoft.WindowsAzure.Management.Websites.dll',
- '.\Microsoft.WindowsAzure.Management.ServiceBus.dll'
+ '.\Microsoft.WindowsAzure.Management.ServiceBus.dll',
+ '.\Microsoft.WindowsAzure.Management.ServiceManagement.dll'
# Functions to export from this module
FunctionsToExport = '*'
Please sign in to comment.
Something went wrong with that request. Please try again.