@@ -41,6 +41,7 @@ public void CanConvertNullEnvironments()
41
41
Assert . Null ( environment . AdTenant ) ;
42
42
Assert . Null ( environment . AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix ) ;
43
43
Assert . Null ( environment . AzureDataLakeStoreFileSystemEndpointSuffix ) ;
44
+ Assert . Null ( environment . DataLakeEndpointResourceId ) ;
44
45
Assert . Null ( environment . AzureKeyVaultDnsSuffix ) ;
45
46
Assert . Null ( environment . AzureKeyVaultServiceEndpointResourceId ) ;
46
47
Assert . False ( environment . EnableAdfsAuthentication ) ;
@@ -65,19 +66,19 @@ public void CanConvertNullEnvironments()
65
66
"https://graph.windows.net" , "https://graph.windows.net/" , "https://manage.windowsazure.com" ,
66
67
"https://manage.windowsazure.com/publishsettings" , "https://management.azure.com" ,
67
68
"https://management.core.windows.net" , ".sql.azure.com" , ".core.windows.net" ,
68
- ".trafficmanager.windows.net" , "https://batch.core.windows.net" ) ]
69
+ ".trafficmanager.windows.net" , "https://batch.core.windows.net" , "https://datalake.azure.net" ) ]
69
70
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
70
71
public void CanConvertValidEnvironments ( string name , bool onPremise , string activeDirectory , string serviceResource ,
71
72
string adTenant , string dataLakeJobs , string dataLakeFiles , string kvDnsSuffix ,
72
73
string kvResource , string gallery , string graph , string graphResource , string portal ,
73
74
string publishSettings , string resourceManager , string serviceManagement ,
74
- string sqlSuffix , string storageSuffix , string trafficManagerSuffix , string batchResource )
75
+ string sqlSuffix , string storageSuffix , string trafficManagerSuffix , string batchResource , string dataLakeResource )
75
76
{
76
77
AzureEnvironment azEnvironment = CreateEnvironment ( name , onPremise , activeDirectory ,
77
78
serviceResource , adTenant , dataLakeJobs , dataLakeFiles , kvDnsSuffix ,
78
79
kvResource , gallery , graph , graphResource , portal , publishSettings ,
79
80
resourceManager , serviceManagement , sqlSuffix , storageSuffix ,
80
- trafficManagerSuffix , batchResource ) ;
81
+ trafficManagerSuffix , batchResource , dataLakeResource ) ;
81
82
var environment = ( PSAzureEnvironment ) azEnvironment ;
82
83
Assert . NotNull ( environment ) ;
83
84
CheckEndpoint ( AzureEnvironment . Endpoint . ActiveDirectory , azEnvironment ,
@@ -90,6 +91,8 @@ public void CanConvertValidEnvironments(string name, bool onPremise, string acti
90
91
environment . AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix ) ;
91
92
CheckEndpoint ( AzureEnvironment . Endpoint . AzureDataLakeStoreFileSystemEndpointSuffix , azEnvironment ,
92
93
environment . AzureDataLakeStoreFileSystemEndpointSuffix ) ;
94
+ CheckEndpoint ( AzureEnvironment . Endpoint . DataLakeEndpointResourceId , azEnvironment ,
95
+ environment . DataLakeEndpointResourceId ) ;
93
96
CheckEndpoint ( AzureEnvironment . Endpoint . AzureKeyVaultDnsSuffix , azEnvironment ,
94
97
environment . AzureKeyVaultDnsSuffix ) ;
95
98
CheckEndpoint ( AzureEnvironment . Endpoint . AzureKeyVaultServiceEndpointResourceId , azEnvironment ,
@@ -133,6 +136,7 @@ public void CanConvertNullPSEnvironments()
133
136
Assert . False ( environment . IsEndpointSet ( AzureEnvironment . Endpoint . AdTenant ) ) ;
134
137
Assert . False ( environment . IsEndpointSet ( AzureEnvironment . Endpoint . AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix ) ) ;
135
138
Assert . False ( environment . IsEndpointSet ( AzureEnvironment . Endpoint . AzureDataLakeStoreFileSystemEndpointSuffix ) ) ;
139
+ Assert . False ( environment . IsEndpointSet ( AzureEnvironment . Endpoint . DataLakeEndpointResourceId ) ) ;
136
140
Assert . False ( environment . IsEndpointSet ( AzureEnvironment . Endpoint . AzureKeyVaultDnsSuffix ) ) ;
137
141
Assert . False ( environment . IsEndpointSet ( AzureEnvironment . Endpoint . AzureKeyVaultServiceEndpointResourceId ) ) ;
138
142
Assert . False ( environment . OnPremise ) ;
@@ -156,13 +160,13 @@ public void CanConvertNullPSEnvironments()
156
160
"https://graph.windows.net" , "https://graph.windows.net/" , "https://manage.windowsazure.com" ,
157
161
"https://manage.windowsazure.com/publishsettings" , "https://management.azure.com" ,
158
162
"https://management.core.windows.net" , ".sql.azure.com" , ".core.windows.net" ,
159
- ".trafficmanager.windows.net" , "https://batch.core.windows.net" ) ]
163
+ ".trafficmanager.windows.net" , "https://batch.core.windows.net" , "https://datalake.azure.net" ) ]
160
164
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
161
165
public void CanConvertValidPSEnvironments ( string name , bool onPremise , string activeDirectory , string serviceResource ,
162
166
string adTenant , string dataLakeJobs , string dataLakeFiles , string kvDnsSuffix ,
163
167
string kvResource , string gallery , string graph , string graphResource , string portal ,
164
168
string publishSettings , string resourceManager , string serviceManagement ,
165
- string sqlSuffix , string storageSuffix , string trafficManagerSuffix , string batchResource )
169
+ string sqlSuffix , string storageSuffix , string trafficManagerSuffix , string batchResource , string dataLakeResource )
166
170
{
167
171
PSAzureEnvironment environment = new PSAzureEnvironment
168
172
{
@@ -173,6 +177,7 @@ public void CanConvertValidPSEnvironments(string name, bool onPremise, string ac
173
177
AdTenant = adTenant ,
174
178
AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix = dataLakeJobs ,
175
179
AzureDataLakeStoreFileSystemEndpointSuffix = dataLakeFiles ,
180
+ DataLakeEndpointResourceId = dataLakeResource ,
176
181
AzureKeyVaultDnsSuffix = kvDnsSuffix ,
177
182
AzureKeyVaultServiceEndpointResourceId = kvResource ,
178
183
GalleryUrl = gallery ,
@@ -199,6 +204,8 @@ public void CanConvertValidPSEnvironments(string name, bool onPremise, string ac
199
204
environment . AzureDataLakeAnalyticsCatalogAndJobEndpointSuffix ) ;
200
205
CheckEndpoint ( AzureEnvironment . Endpoint . AzureDataLakeStoreFileSystemEndpointSuffix , azEnvironment ,
201
206
environment . AzureDataLakeStoreFileSystemEndpointSuffix ) ;
207
+ CheckEndpoint ( AzureEnvironment . Endpoint . DataLakeEndpointResourceId , azEnvironment ,
208
+ environment . DataLakeEndpointResourceId ) ;
202
209
CheckEndpoint ( AzureEnvironment . Endpoint . AzureKeyVaultDnsSuffix , azEnvironment ,
203
210
environment . AzureKeyVaultDnsSuffix ) ;
204
211
CheckEndpoint ( AzureEnvironment . Endpoint . AzureKeyVaultServiceEndpointResourceId , azEnvironment ,
@@ -234,7 +241,7 @@ private AzureEnvironment CreateEnvironment(string name, bool onPremise, string a
234
241
string adTenant , string dataLakeJobs , string dataLakeFiles , string kvDnsSuffix ,
235
242
string kvResource , string gallery , string graph , string graphResource , string portal ,
236
243
string publishSettings , string resourceManager , string serviceManagement ,
237
- string sqlSuffix , string storageSuffix , string trafficManagerSuffix , string batchResource )
244
+ string sqlSuffix , string storageSuffix , string trafficManagerSuffix , string batchResource , string dataLakeResource )
238
245
{
239
246
var environment = new AzureEnvironment ( ) { Name = name , OnPremise = onPremise } ;
240
247
SetEndpoint ( AzureEnvironment . Endpoint . ActiveDirectory , environment , activeDirectory ) ;
@@ -248,6 +255,9 @@ private AzureEnvironment CreateEnvironment(string name, bool onPremise, string a
248
255
CheckEndpoint ( AzureEnvironment . Endpoint . AzureDataLakeStoreFileSystemEndpointSuffix ,
249
256
environment ,
250
257
dataLakeFiles ) ;
258
+ CheckEndpoint ( AzureEnvironment . Endpoint . DataLakeEndpointResourceId ,
259
+ environment ,
260
+ dataLakeResource ) ;
251
261
CheckEndpoint ( AzureEnvironment . Endpoint . AzureKeyVaultDnsSuffix , environment ,
252
262
kvDnsSuffix ) ;
253
263
CheckEndpoint ( AzureEnvironment . Endpoint . AzureKeyVaultServiceEndpointResourceId ,
0 commit comments