11
11
# See the License for the specific language governing permissions and
12
12
# limitations under the License.
13
13
# ----------------------------------------------------------------------------------
14
-
15
14
<#
16
15
. SYNOPSIS
17
16
Creates a self-hosted integration runtime and then does operations.
@@ -50,21 +49,6 @@ function Test-SelfHosted-IntegrationRuntime
50
49
$expected = Get-AzureRmDataFactoryV2IntegrationRuntime - ResourceId $actual.Id
51
50
Assert-AreEqual $actual.Name $expected.Name
52
51
53
- $key = Get-AzureRmDataFactoryV2IntegrationRuntimeKey - ResourceGroupName $rgname `
54
- - DataFactoryName $dfname `
55
- - Name $irname
56
- Assert-NotNull $key
57
- Assert-NotNull $key.AuthKey1
58
- Assert-NotNull $key.AuthKey2
59
-
60
- $key = New-AzureRmDataFactoryV2IntegrationRuntimeKey - ResourceGroupName $rgname `
61
- - DataFactoryName $dfname `
62
- - Name $irname `
63
- - KeyName authKey1 `
64
- - Force
65
- Assert-NotNull $key
66
- Assert-NotNull $key.AuthKey1
67
-
68
52
$metric = Get-AzureRmDataFactoryV2IntegrationRuntimeMetric - ResourceGroupName $rgname `
69
53
- DataFactoryName $dfname `
70
54
- Name $irname
@@ -87,10 +71,73 @@ function Test-SelfHosted-IntegrationRuntime
87
71
88
72
<#
89
73
. SYNOPSIS
90
- Creates a managed elastic integration runtime and then does operations.
74
+ Creates a SSIS-Azure integration runtime and then does operations.
75
+ Deletes the created integration runtime at the end.
76
+
77
+ Before running this test, make sure setting the following environment variables:
78
+ CatalogServerEndpoint: The catalog server endpoint for catalog database
79
+ CatalogAdminUsername: The admin user name on this server
80
+ CatalogAdminPassword: The password of the admin user.
81
+ #>
82
+ function Test-SsisAzure-IntegrationRuntime
83
+ {
84
+ $dfname = Get-DataFactoryName
85
+ $rgname = Get-ResourceGroupName
86
+ $rglocation = Get-ProviderLocation ResourceManagement
87
+ $dflocation = Get-ProviderLocation DataFactoryManagement
88
+
89
+ New-AzureRmResourceGroup - Name $rgname - Location $rglocation - Force
90
+
91
+ try
92
+ {
93
+ Set-AzureRmDataFactoryV2 - ResourceGroupName $rgname `
94
+ - Name $dfname `
95
+ - Location $dflocation `
96
+ - Force
97
+
98
+ $irname = " ssis-azure-ir"
99
+ $description = " SSIS-Azure integration runtime"
100
+
101
+ $secpasswd = ConvertTo-SecureString $Env: CatalogAdminPassword - AsPlainText - Force
102
+ $mycreds = New-Object System.Management.Automation.PSCredential($Env: CatalogAdminUsername , $secpasswd )
103
+ $actual = Set-AzureRmDataFactoryV2IntegrationRuntime - ResourceGroupName $rgname `
104
+ - DataFactoryName $dfname `
105
+ - Name $irname `
106
+ - Description $description `
107
+ - Type Managed `
108
+ - Location ' East US' `
109
+ - NodeSize Standard_A4_v2 `
110
+ - NodeCount 1 `
111
+ - CatalogServerEndpoint $Env: CatalogServerEndpoint `
112
+ - CatalogAdminCredential $mycreds `
113
+ - CatalogPricingTier ' S1' `
114
+ - MaxParallelExecutionsPerNode 1 `
115
+ - Force
116
+
117
+ $expected = Get-AzureRmDataFactoryV2IntegrationRuntime - ResourceGroupName $rgname `
118
+ - DataFactoryName $dfname `
119
+ - Name $irname
120
+ Assert-AreEqual $actual.Name $expected.Name
121
+
122
+ Start-AzureRmDataFactoryV2IntegrationRuntime - ResourceId $actual.Id - Force
123
+ $status = Get-AzureRmDataFactoryV2IntegrationRuntime - ResourceId $actual.Id - Status
124
+ Stop-AzureRmDataFactoryV2IntegrationRuntime - ResourceId $actual.Id - Force
125
+
126
+ Start-Sleep - Seconds 15
127
+ Remove-AzureRmDataFactoryV2IntegrationRuntime - ResourceGroupName $rgname - DataFactoryName $dfname - Name $irname - Force
128
+ }
129
+ finally
130
+ {
131
+ CleanUp $rgname $dfname
132
+ }
133
+ }
134
+
135
+ <#
136
+ . SYNOPSIS
137
+ Creates an azure integration runtime and then does operations.
91
138
Deletes the created integration runtime at the end.
92
139
#>
93
- function Test-ManagedElastic -IntegrationRuntime
140
+ function Test-Azure -IntegrationRuntime
94
141
{
95
142
$dfname = Get-DataFactoryName
96
143
$rgname = Get-ResourceGroupName
0 commit comments