@@ -59,6 +59,8 @@ public void CanConvertNullEnvironments()
59
59
Assert . Null ( environment . BatchEndpointResourceId ) ;
60
60
Assert . Null ( environment . AzureOperationalInsightsEndpointResourceId ) ;
61
61
Assert . Null ( environment . AzureOperationalInsightsEndpoint ) ;
62
+ Assert . Null ( environment . AzureAnalysisServicesEndpointSuffix ) ;
63
+
62
64
}
63
65
64
66
[ Theory ]
@@ -69,21 +71,21 @@ public void CanConvertNullEnvironments()
69
71
"https://manage.windowsazure.com/publishsettings" , "https://management.azure.com" ,
70
72
"https://management.core.windows.net" , ".sql.azure.com" , ".core.windows.net" ,
71
73
".trafficmanager.windows.net" , "https://batch.core.windows.net" , "https://datalake.azure.net" ,
72
- "https://api.loganalytics.io" , "https://api.loganalytics.io/v1" ) ]
74
+ "https://api.loganalytics.io" , "https://api.loganalytics.io/v1" , "analysisservices.azure.net" ) ]
73
75
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
74
76
public void CanConvertValidEnvironments ( string name , bool onPremise , string activeDirectory , string serviceResource ,
75
77
string adTenant , string dataLakeJobs , string dataLakeFiles , string kvDnsSuffix ,
76
78
string kvResource , string gallery , string graph , string graphResource , string portal ,
77
79
string publishSettings , string resourceManager , string serviceManagement ,
78
80
string sqlSuffix , string storageSuffix , string trafficManagerSuffix , string batchResource , string dataLakeResource ,
79
- string azureOperationalInsightsEndpointResourceId , string azureOperationalInsightsEndpoint )
81
+ string azureOperationalInsightsEndpointResourceId , string azureOperationalInsightsEndpoint , string analysisServicesSuffix )
80
82
{
81
83
AzureEnvironment azEnvironment = CreateEnvironment ( name , onPremise , activeDirectory ,
82
84
serviceResource , adTenant , dataLakeJobs , dataLakeFiles , kvDnsSuffix ,
83
85
kvResource , gallery , graph , graphResource , portal , publishSettings ,
84
86
resourceManager , serviceManagement , sqlSuffix , storageSuffix ,
85
87
trafficManagerSuffix , batchResource , dataLakeResource ,
86
- azureOperationalInsightsEndpointResourceId , azureOperationalInsightsEndpoint ) ;
88
+ azureOperationalInsightsEndpointResourceId , azureOperationalInsightsEndpoint , analysisServicesSuffix ) ;
87
89
var environment = ( PSAzureEnvironment ) azEnvironment ;
88
90
Assert . NotNull ( environment ) ;
89
91
CheckEndpoint ( AzureEnvironment . Endpoint . ActiveDirectory , azEnvironment ,
@@ -128,6 +130,8 @@ public void CanConvertValidEnvironments(string name, bool onPremise, string acti
128
130
environment . AzureOperationalInsightsEndpointResourceId ) ;
129
131
CheckEndpoint ( AzureEnvironment . ExtendedEndpoint . OperationalInsightsEndpoint , azEnvironment ,
130
132
environment . AzureOperationalInsightsEndpoint ) ;
133
+ CheckEndpoint ( AzureEnvironment . ExtendedEndpoint . AnalysisServicesEndpointSuffix , azEnvironment ,
134
+ environment . AzureAnalysisServicesEndpointSuffix ) ;
131
135
Assert . Equal ( azEnvironment . Name , environment . Name ) ;
132
136
Assert . Equal ( azEnvironment . OnPremise , environment . EnableAdfsAuthentication ) ;
133
137
}
@@ -163,7 +167,9 @@ public void CanConvertNullPSEnvironments()
163
167
Assert . False ( environment . IsEndpointSet ( AzureEnvironment . Endpoint . BatchEndpointResourceId ) ) ;
164
168
Assert . False ( environment . IsEndpointSet ( AzureEnvironment . ExtendedEndpoint . OperationalInsightsEndpointResourceId ) ) ;
165
169
Assert . False ( environment . IsEndpointSet ( AzureEnvironment . ExtendedEndpoint . OperationalInsightsEndpoint ) ) ;
170
+ Assert . False ( environment . IsEndpointSet ( AzureEnvironment . ExtendedEndpoint . AnalysisServicesEndpointSuffix ) ) ;
166
171
}
172
+
167
173
[ Theory ]
168
174
[ InlineData ( "TestAll" , true , "https://login.microsoftonline.com" , "https://management.core.windows.net/" ,
169
175
"Common" , "https://mangement.azure.com/dataLakeJobs" , "https://management.azure.com/dataLakeFiles" ,
@@ -172,14 +178,14 @@ public void CanConvertNullPSEnvironments()
172
178
"https://manage.windowsazure.com/publishsettings" , "https://management.azure.com" ,
173
179
"https://management.core.windows.net" , ".sql.azure.com" , ".core.windows.net" ,
174
180
".trafficmanager.windows.net" , "https://batch.core.windows.net" , "https://datalake.azure.net" ,
175
- "https://api.loganalytics.io" , "https://api.loganalytics.io/v1" ) ]
181
+ "https://api.loganalytics.io" , "https://api.loganalytics.io/v1" , "analysisservices.azure.net" ) ]
176
182
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
177
183
public void CanConvertValidPSEnvironments ( string name , bool onPremise , string activeDirectory , string serviceResource ,
178
184
string adTenant , string dataLakeJobs , string dataLakeFiles , string kvDnsSuffix ,
179
185
string kvResource , string gallery , string graph , string graphResource , string portal ,
180
186
string publishSettings , string resourceManager , string serviceManagement ,
181
187
string sqlSuffix , string storageSuffix , string trafficManagerSuffix , string batchResource , string dataLakeResource ,
182
- string azureOperationalInsightsEndpointResourceId , string azureOperationalInsightsEndpoint )
188
+ string azureOperationalInsightsEndpointResourceId , string azureOperationalInsightsEndpoint , string analysisServicesSuffix )
183
189
{
184
190
PSAzureEnvironment environment = new PSAzureEnvironment
185
191
{
@@ -206,6 +212,7 @@ public void CanConvertValidPSEnvironments(string name, bool onPremise, string ac
206
212
BatchEndpointResourceId = batchResource ,
207
213
AzureOperationalInsightsEndpointResourceId = azureOperationalInsightsEndpointResourceId ,
208
214
AzureOperationalInsightsEndpoint = azureOperationalInsightsEndpoint ,
215
+ AzureAnalysisServicesEndpointSuffix = analysisServicesSuffix
209
216
} ;
210
217
var azEnvironment = ( AzureEnvironment ) environment ;
211
218
Assert . NotNull ( environment ) ;
@@ -251,6 +258,8 @@ public void CanConvertValidPSEnvironments(string name, bool onPremise, string ac
251
258
environment . AzureOperationalInsightsEndpointResourceId ) ;
252
259
CheckEndpoint ( AzureEnvironment . ExtendedEndpoint . OperationalInsightsEndpoint , azEnvironment ,
253
260
environment . AzureOperationalInsightsEndpoint ) ;
261
+ CheckEndpoint ( AzureEnvironment . ExtendedEndpoint . AnalysisServicesEndpointSuffix , azEnvironment ,
262
+ environment . AzureAnalysisServicesEndpointSuffix ) ;
254
263
Assert . Equal ( azEnvironment . Name , environment . Name ) ;
255
264
Assert . Equal ( azEnvironment . OnPremise , environment . EnableAdfsAuthentication ) ;
256
265
}
@@ -261,7 +270,7 @@ private AzureEnvironment CreateEnvironment(string name, bool onPremise, string a
261
270
string kvResource , string gallery , string graph , string graphResource , string portal ,
262
271
string publishSettings , string resourceManager , string serviceManagement ,
263
272
string sqlSuffix , string storageSuffix , string trafficManagerSuffix , string batchResource , string dataLakeResource ,
264
- string azureOperationalInsightsEndpointResourceId , string azureOperationalInsightsEndpoint )
273
+ string azureOperationalInsightsEndpointResourceId , string azureOperationalInsightsEndpoint , string analysisServicesSuffix )
265
274
{
266
275
var environment = new AzureEnvironment ( ) { Name = name , OnPremise = onPremise } ;
267
276
SetEndpoint ( AzureEnvironment . Endpoint . ActiveDirectory , environment , activeDirectory ) ;
@@ -306,6 +315,8 @@ private AzureEnvironment CreateEnvironment(string name, bool onPremise, string a
306
315
azureOperationalInsightsEndpointResourceId ) ;
307
316
CheckEndpoint ( AzureEnvironment . ExtendedEndpoint . OperationalInsightsEndpoint , environment ,
308
317
azureOperationalInsightsEndpoint ) ;
318
+ CheckEndpoint ( AzureEnvironment . ExtendedEndpoint . AnalysisServicesEndpointSuffix , environment ,
319
+ analysisServicesSuffix ) ;
309
320
return environment ;
310
321
311
322
}
0 commit comments