@@ -207,11 +207,11 @@ function Api-CrudGraphQlTest {
207
207
Assert-AreEqual $subscriptionKeyQueryStringParamName $newApi.SubscriptionKeyQueryParamName
208
208
Assert-AreEqual $newApiType $newApi.ApiType
209
209
Assert-AreEqual $newApiTermsOfServiceUrl $newApi.TermsOfServiceUrl
210
- Assert-AreEqual $newApiContactName $newApi.Contact.Name
211
- Assert-AreEqual $newApiContactUrl $newApi.Contact.Url
212
- Assert-AreEqual $newApiContactEmail $newApi.Contact.Email
213
- Assert-AreEqual $newApiLicenseName $newApi.Nicense.Name
214
- Assert-AreEqual $newApiLicenseUrl $newApi.Nicense.Url
210
+ Assert-AreEqual $newApiContactName $newApi.ContactName
211
+ Assert-AreEqual $newApiContactUrl $newApi.ContactUrl
212
+ Assert-AreEqual $newApiContactEmail $newApi.ContactEmail
213
+ Assert-AreEqual $newApiLicenseName $newApi.LicenseName
214
+ Assert-AreEqual $newApiLicenseUrl $newApi.LicenseUrl
215
215
216
216
# set api
217
217
$newApiName = getAssetName
@@ -248,11 +248,11 @@ function Api-CrudGraphQlTest {
248
248
Assert-AreEqual $subscriptionKeyQueryStringParamName $newApi.SubscriptionKeyQueryParamName
249
249
Assert-AreEqual $newApiType $newApi.ApiType
250
250
Assert-AreEqual $newApiTermsOfServiceUrl $newApi.TermsOfServiceUrl
251
- Assert-AreEqual $newApiContactName $newApi.Contact.Name
252
- Assert-AreEqual $newApiContactUrl $newApi.Contact.Url
253
- Assert-AreEqual $newApiContactEmail $newApi.Contact.Email
254
- Assert-AreEqual $newApiLicenseName $newApi.Nicense.Name
255
- Assert-AreEqual $newApiLicenseUrl $newApi.Nicense.Url
251
+ Assert-AreEqual $newApiContactName $newApi.ContactName
252
+ Assert-AreEqual $newApiContactUrl $newApi.ContactUrl
253
+ Assert-AreEqual $newApiContactEmail $newApi.ContactEmail
254
+ Assert-AreEqual $newApiLicenseName $newApi.LicenseName
255
+ Assert-AreEqual $newApiLicenseUrl $newApi.LicenseUrl
256
256
257
257
258
258
$product = Get-AzApiManagementProduct - Context $context | Select-Object - First 1
@@ -296,7 +296,7 @@ function Api-CrudWebsocketTest {
296
296
$newApiName = getAssetName
297
297
$newApiDescription = getAssetName
298
298
$newApiPath = getAssetName
299
- $newApiServiceUrl = " http ://newechoapi.cloudapp.net/newapi"
299
+ $newApiServiceUrl = " ws ://newechoapi.cloudapp.net/newapi"
300
300
$subscriptionKeyParametersHeader = getAssetName
301
301
$subscriptionKeyQueryStringParamName = getAssetName
302
302
$newApiType = " websocket"
@@ -319,25 +319,25 @@ function Api-CrudWebsocketTest {
319
319
Assert-AreEqual $newApiServiceUrl $newApi.ServiceUrl
320
320
Assert-AreEqual $newApiPath $newApi.Path
321
321
Assert-AreEqual 2 $newApi.Protocols.Length
322
- Assert-AreEqual http $newApi.Protocols [0 ]
323
- Assert-AreEqual https $newApi.Protocols [1 ]
322
+ Assert-AreEqual ws $newApi.Protocols [0 ]
323
+ Assert-AreEqual wss $newApi.Protocols [1 ]
324
324
Assert-Null $newApi.AuthorizationServerId
325
325
Assert-Null $newApi.AuthorizationScope
326
326
Assert-AreEqual $subscriptionKeyParametersHeader $newApi.SubscriptionKeyHeaderName
327
327
Assert-AreEqual $subscriptionKeyQueryStringParamName $newApi.SubscriptionKeyQueryParamName
328
328
Assert-AreEqual $newApiType $newApi.ApiType
329
329
Assert-AreEqual $newApiTermsOfServiceUrl $newApi.TermsOfServiceUrl
330
- Assert-AreEqual $newApiContactName $newApi.Contact.Name
331
- Assert-AreEqual $newApiContactUrl $newApi.Contact.Url
332
- Assert-AreEqual $newApiContactEmail $newApi.Contact.Email
333
- Assert-AreEqual $newApiLicenseName $newApi.Nicense.Name
334
- Assert-AreEqual $newApiLicenseUrl $newApi.Nicense.Url
330
+ Assert-AreEqual $newApiContactName $newApi.ContactName
331
+ Assert-AreEqual $newApiContactUrl $newApi.ContactUrl
332
+ Assert-AreEqual $newApiContactEmail $newApi.ContactEmail
333
+ Assert-AreEqual $newApiLicenseName $newApi.LicenseName
334
+ Assert-AreEqual $newApiLicenseUrl $newApi.LicenseUrl
335
335
336
336
# set api
337
337
$newApiName = getAssetName
338
338
$newApiDescription = getAssetName
339
339
$newApiPath = getAssetName
340
- $newApiServiceUrl = " http ://newechoapi.cloudapp.net/newapinew"
340
+ $newApiServiceUrl = " ws ://newechoapi.cloudapp.net/newapinew"
341
341
$subscriptionKeyParametersHeader = getAssetName
342
342
$subscriptionKeyQueryStringParamName = getAssetName
343
343
$newApiType = " websocket"
@@ -361,18 +361,18 @@ function Api-CrudWebsocketTest {
361
361
Assert-AreEqual $newApiServiceUrl $newApi.ServiceUrl
362
362
Assert-AreEqual $newApiPath $newApi.Path
363
363
Assert-AreEqual 1 $newApi.Protocols.Length
364
- Assert-AreEqual https $newApi.Protocols [0 ]
364
+ Assert-AreEqual ws $newApi.Protocols [0 ]
365
365
Assert-Null $newApi.AuthorizationServerId
366
366
Assert-Null $newApi.AuthorizationScope
367
367
Assert-AreEqual $subscriptionKeyParametersHeader $newApi.SubscriptionKeyHeaderName
368
368
Assert-AreEqual $subscriptionKeyQueryStringParamName $newApi.SubscriptionKeyQueryParamName
369
369
Assert-AreEqual $newApiType $newApi.ApiType
370
370
Assert-AreEqual $newApiTermsOfServiceUrl $newApi.TermsOfServiceUrl
371
- Assert-AreEqual $newApiContactName $newApi.Contact.Name
372
- Assert-AreEqual $newApiContactUrl $newApi.Contact.Url
373
- Assert-AreEqual $newApiContactEmail $newApi.Contact.Email
374
- Assert-AreEqual $newApiLicenseName $newApi.Nicense.Name
375
- Assert-AreEqual $newApiLicenseUrl $newApi.Nicense.Url
371
+ Assert-AreEqual $newApiContactName $newApi.ContactName
372
+ Assert-AreEqual $newApiContactUrl $newApi.ContactUrl
373
+ Assert-AreEqual $newApiContactEmail $newApi.ContactEmail
374
+ Assert-AreEqual $newApiLicenseName $newApi.LicenseName
375
+ Assert-AreEqual $newApiLicenseUrl $newApi.LicenseUrl
376
376
377
377
378
378
$product = Get-AzApiManagementProduct - Context $context | Select-Object - First 1
0 commit comments