File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
src/ResourceManager/Network/Commands.Network.Test/ScenarioTests Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 12
12
// limitations under the License.
13
13
// ----------------------------------------------------------------------------------
14
14
15
+ using System ;
15
16
using Microsoft . Azure . ServiceManagemenet . Common . Models ;
16
17
using Microsoft . WindowsAzure . Commands . ScenarioTest ;
17
18
using Microsoft . WindowsAzure . Commands . Test . Utilities . Common ;
@@ -31,7 +32,7 @@ public ApplicationGatewayTests(ITestOutputHelper output)
31
32
[ Trait ( Category . AcceptanceType , Category . CheckIn ) ]
32
33
public void TestApplicationGatewayCRUD ( )
33
34
{
34
- NetworkResourcesController . NewInstance . RunPsTest ( "Test-ApplicationGatewayCRUD" ) ;
35
+ NetworkResourcesController . NewInstance . RunPsTest ( string . Format ( "Test-ApplicationGatewayCRUD -baseDir '{0}'" , AppDomain . CurrentDomain . BaseDirectory ) ) ;
35
36
}
36
37
}
37
38
}
Original file line number Diff line number Diff line change @@ -18,6 +18,11 @@ Application gateway tests
18
18
#>
19
19
function Test-ApplicationGatewayCRUD
20
20
{
21
+ param
22
+ (
23
+ $basedir = " .\"
24
+ )
25
+
21
26
# Setup
22
27
23
28
$rglocation = Get-ProviderLocation ResourceManagement
@@ -81,7 +86,8 @@ function Test-ApplicationGatewayCRUD
81
86
$fp01 = New-AzureRmApplicationGatewayFrontendPort - Name $frontendPort01Name - Port 80
82
87
$fp02 = New-AzureRmApplicationGatewayFrontendPort - Name $frontendPort02Name - Port 8080
83
88
84
- $authcert01 = New-AzureRmApplicationGatewayAuthenticationCertificate - Name $authCertName - CertificateFile " .\ScenarioTests\Data\ApplicationGatewayAuthCert.cer"
89
+ $authCertFilePath = $basedir + " \ScenarioTests\Data\ApplicationGatewayAuthCert.cer"
90
+ $authcert01 = New-AzureRmApplicationGatewayAuthenticationCertificate - Name $authCertName - CertificateFile $authCertFilePath
85
91
$poolSetting01 = New-AzureRmApplicationGatewayBackendHttpSettings - Name $poolSetting01Name - Port 80 - Protocol Http - CookieBasedAffinity Disabled
86
92
$poolSetting02 = New-AzureRmApplicationGatewayBackendHttpSettings - Name $poolSetting02Name - Port 443 - Protocol Https - CookieBasedAffinity Enabled - AuthenticationCertificates $authcert01
87
93
You can’t perform that action at this time.
0 commit comments