Skip to content

Commit a1aa503

Browse files
committed
fix tests
1 parent 4e82d5f commit a1aa503

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/ResourceManager/ApiManagement/Commands.SMAPI.Test/ScenarioTests/ApiManagementTests.ps1

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ function Api-ImportExportWadlTest {
164164

165165
$context = New-AzureRmApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
166166

167-
$wadlPath = "./Resources/WADLYahoo.xml"
167+
$wadlPath = "$TestOutputRoot/Resources/WADLYahoo.xml"
168168
$path = "wadlapi"
169169
$wadlApiId = getAssetName
170170

@@ -196,7 +196,7 @@ function Api-ImportExportSwaggerTest {
196196

197197
$context = New-AzureRmApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
198198

199-
$swaggerPath = "./Resources/SwaggerPetStoreV2.json"
199+
$swaggerPath = "$TestOutputRoot/Resources/SwaggerPetStoreV2.json"
200200
$swaggerUrl = "http://petstore.swagger.io/v2/swagger.json"
201201
$path1 = "swaggerapifromFile"
202202
$path2 = "swaggerapifromUrl"
@@ -241,7 +241,7 @@ function Api-ImportExportWsdlTest {
241241

242242
$context = New-AzureRmApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
243243

244-
$wsdlPath1 = "./Resources/Weather.wsdl"
244+
$wsdlPath1 = "$TestOutputRoot/Resources/Weather.wsdl"
245245
$wsdlUrl = "http://www.webservicex.net/stockquote.asmx?WSDL"
246246
$path1 = "soapapifromFile"
247247
$path2 = "soapapifromUrl"
@@ -295,7 +295,7 @@ function Api-ImportWsdlToCreateSoapToRestApi {
295295

296296
$context = New-AzureRmApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
297297

298-
$wsdlPath1 = "./Resources/Weather.wsdl"
298+
$wsdlPath1 = "$TestOutputRoot/Resources/Weather.wsdl"
299299
$path1 = "soapToRestApi"
300300
$wsdlApiId1 = getAssetName
301301
$wsdlServiceName1 = "Weather" # from file Weather.wsdl
@@ -1092,10 +1092,10 @@ function Policy-CrudTest {
10921092

10931093
# load from file get to pipeline scenarios
10941094

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"
10991099

11001100
$context = New-AzureRmApiManagementContext -ResourceGroupName $resourceGroupName -ServiceName $serviceName
11011101

@@ -2057,7 +2057,7 @@ function Backend-CrudTest {
20572057
Assert-AreEqual 1 $backend.Properties.Count
20582058
Assert-NotNull $backend.Proxy
20592059
Assert-AreEqual $backend.Proxy.Url "http://12.168.1.1:8080"
2060-
Assert-NotNull $backend.Proxy.ProxyCredential
2060+
Assert-NotNull $backend.Proxy.ProxyCredentials
20612061
}
20622062
finally {
20632063
# remove created backend

0 commit comments

Comments
 (0)