Skip to content

Commit e3c1759

Browse files
liubing-microsoftIvan Liu
andauthored
add test case for AzPowerShellSetup (#12635)
Co-authored-by: Ivan Liu <[email protected]>
1 parent 844ed23 commit e3c1759

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

src/DataFactory/DataFactoryV2.Test/ScenarioTests/IntegrationRuntimeTests.ps1

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,17 @@ function Test-SsisAzure-IntegrationRuntime
174174
$licenseKey = New-Object Microsoft.Azure.Management.DataFactory.Models.SecureString('fakelicensekey')
175175
$setup4 = New-Object Microsoft.Azure.Management.DataFactory.Models.ComponentSetup($componentName2, $licenseKey)
176176

177-
$setups = New-Object System.Collections.ArrayList
178-
$setups.Add($setup1)
179-
$setups.Add($setup2)
180-
# Disable these two setup as it cannot be faked and the other two have already covered the function test
181-
# $setups.Add($setup3)
182-
# $setups.Add($setup4)
177+
# Create setup for Azure PowerShell
178+
$version = '4.5.0'
179+
$setup5 = New-Object Microsoft.Azure.Management.DataFactory.Models.AzPowerShellSetup($version)
180+
181+
$setups = New-Object System.Collections.ArrayList
182+
$setups.Add($setup1)
183+
$setups.Add($setup2)
184+
# Disable these two setup as it cannot be faked and the other two have already covered the function test
185+
# $setups.Add($setup3)
186+
# $setups.Add($setup4)
187+
$setups.Add($setup5)
183188

184189
# Replace following variables with network resource ids
185190
$vnetId = $Env:VnetId

0 commit comments

Comments
 (0)