@@ -164,7 +164,7 @@ function Api-ImportExportWadlTest {
164
164
165
165
$context = New-AzureRmApiManagementContext - ResourceGroupName $resourceGroupName - ServiceName $serviceName
166
166
167
- $wadlPath = " . /Resources/WADLYahoo.xml"
167
+ $wadlPath = " $TestOutputRoot /Resources/WADLYahoo.xml"
168
168
$path = " wadlapi"
169
169
$wadlApiId = getAssetName
170
170
@@ -196,7 +196,7 @@ function Api-ImportExportSwaggerTest {
196
196
197
197
$context = New-AzureRmApiManagementContext - ResourceGroupName $resourceGroupName - ServiceName $serviceName
198
198
199
- $swaggerPath = " . /Resources/SwaggerPetStoreV2.json"
199
+ $swaggerPath = " $TestOutputRoot /Resources/SwaggerPetStoreV2.json"
200
200
$swaggerUrl = " http://petstore.swagger.io/v2/swagger.json"
201
201
$path1 = " swaggerapifromFile"
202
202
$path2 = " swaggerapifromUrl"
@@ -241,7 +241,7 @@ function Api-ImportExportWsdlTest {
241
241
242
242
$context = New-AzureRmApiManagementContext - ResourceGroupName $resourceGroupName - ServiceName $serviceName
243
243
244
- $wsdlPath1 = " . /Resources/Weather.wsdl"
244
+ $wsdlPath1 = " $TestOutputRoot /Resources/Weather.wsdl"
245
245
$wsdlUrl = " http://www.webservicex.net/stockquote.asmx?WSDL"
246
246
$path1 = " soapapifromFile"
247
247
$path2 = " soapapifromUrl"
@@ -295,7 +295,7 @@ function Api-ImportWsdlToCreateSoapToRestApi {
295
295
296
296
$context = New-AzureRmApiManagementContext - ResourceGroupName $resourceGroupName - ServiceName $serviceName
297
297
298
- $wsdlPath1 = " . /Resources/Weather.wsdl"
298
+ $wsdlPath1 = " $TestOutputRoot /Resources/Weather.wsdl"
299
299
$path1 = " soapToRestApi"
300
300
$wsdlApiId1 = getAssetName
301
301
$wsdlServiceName1 = " Weather" # from file Weather.wsdl
@@ -1092,10 +1092,10 @@ function Policy-CrudTest {
1092
1092
1093
1093
# load from file get to pipeline scenarios
1094
1094
1095
- $tenantValidPath = " . /Resources/TenantValidPolicy.xml"
1096
- $productValidPath = " . /Resources/ProductValidPolicy.xml"
1097
- $apiValidPath = " . /Resources/ApiValidPolicy.xml"
1098
- $operationValidPath = " . /Resources/OperationValidPolicy.xml"
1095
+ $tenantValidPath = " $TestOutputRoot /Resources/TenantValidPolicy.xml"
1096
+ $productValidPath = " $TestOutputRoot /Resources/ProductValidPolicy.xml"
1097
+ $apiValidPath = " $TestOutputRoot /Resources/ApiValidPolicy.xml"
1098
+ $operationValidPath = " $TestOutputRoot /Resources/OperationValidPolicy.xml"
1099
1099
1100
1100
$context = New-AzureRmApiManagementContext - ResourceGroupName $resourceGroupName - ServiceName $serviceName
1101
1101
@@ -2057,7 +2057,7 @@ function Backend-CrudTest {
2057
2057
Assert-AreEqual 1 $backend.Properties.Count
2058
2058
Assert-NotNull $backend.Proxy
2059
2059
Assert-AreEqual $backend.Proxy.Url " http://12.168.1.1:8080"
2060
- Assert-NotNull $backend.Proxy.ProxyCredential
2060
+ Assert-NotNull $backend.Proxy.ProxyCredentials
2061
2061
}
2062
2062
finally {
2063
2063
# remove created backend
0 commit comments