Skip to content

Commit dce1898

Browse files
committed
Update Test Script
1 parent b1b3d08 commit dce1898

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Common/Commands.ScenarioTest/Resources/ServiceManagement/ServiceManagementTests.ps1

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -430,12 +430,13 @@ function Run-AutoGeneratedServiceExtensionCmdletTests
430430
# Invoke Deployment Change Configuration
431431
$p2 = New-AzureComputeArgumentList -MethodName DeploymentChangeConfigurationBySlot;
432432
$p2[0].Value = $svcName;
433-
$p2[1].Value = 'Production';
433+
$p2[1].Value = [Microsoft.WindowsAzure.Management.Compute.Models.DeploymentSlot]::Production;
434434
$p2[2].Value = New-Object -TypeName Microsoft.WindowsAzure.Management.Compute.Models.DeploymentChangeConfigurationParameters;
435435
$p2[2].Value.Configuration = $deployment.Configuration;
436436
$p2[2].Value.ExtensionConfiguration = New-Object -TypeName Microsoft.WindowsAzure.Management.Compute.Models.ExtensionConfiguration;
437-
$p2[2].Value.ExtensionConfiguration.AllRoles.Add($p1[1].Value.Id);
438-
$st = Invoke-AzureComputeMethod -MethodName DeploymentChangeConfigurationBySlot -ServiceName $p2[0].Value -DeploymentSlot $p2[1].Value -DeploymentChangeConfigurationBySlotParameters $p2[2].Value;
437+
$p2[2].Value.ExtensionConfiguration.AllRoles.Add('test');
438+
$d2 = ($p2 | select -ExpandProperty Value);
439+
$st = Invoke-AzureComputeMethod -MethodName DeploymentChangeConfigurationBySlot -ArgumentList $d2;
439440

440441
# Invoke Hosted Service Delete
441442
$st = Invoke-AzureComputeMethod -MethodName 'HostedServiceDeleteAll' -ArgumentList $svcName;

0 commit comments

Comments
 (0)