Skip to content

Commit f7b46bb

Browse files
committed
Updating .NET tests to allow navigating to https test pages
1 parent dc0cd1e commit f7b46bb

9 files changed

+14
-4
lines changed

dotnet/test/chrome/WebDriver.Chrome.Tests.config

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<add key="Protocol" value="http"/>
1010
<add key="HostName" value="localhost"/>
1111
<add key="Port" value="2310"/>
12+
<add key="SecurePort" value="2410"/>
1213
<add key="Folder" value="common"/>
1314
</appSettings>
1415
</configuration>

dotnet/test/common/CookieImplementationTest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -426,7 +426,7 @@ public void ShouldRetainCookieExpiry()
426426
}
427427

428428
[Test]
429-
[IgnoreBrowser(Browser.IE, "Browser requires additional TLS settings to get secure cookies")]
429+
[IgnoreBrowser(Browser.IE, "Browser does not handle untrusted SSL certificates.")]
430430
[IgnoreBrowser(Browser.PhantomJS, "Untested browser")]
431431
[IgnoreBrowser(Browser.Safari, "Untested browser")]
432432
public void ShouldRetainCookieSecure()

dotnet/test/common/Environment/UrlBuilder.cs

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ public class UrlBuilder
1111
string protocol;
1212
string hostName;
1313
string port;
14+
string securePort;
1415
string path;
1516
string alternateHostName;
1617

@@ -34,6 +35,7 @@ public UrlBuilder()
3435
protocol = EnvironmentManager.GetSettingValue("Protocol");
3536
hostName = EnvironmentManager.GetSettingValue("HostName");
3637
port = EnvironmentManager.GetSettingValue("Port");
38+
securePort = EnvironmentManager.GetSettingValue("SecurePort");
3739
// TODO(andre.nogueira): Remove trailing / from folder
3840
path = EnvironmentManager.GetSettingValue("Folder");
3941
//Use the first IPv4 address that we find
@@ -76,7 +78,7 @@ public string WhereElseIs(string page)
7678
public string WhereIsSecure(string page)
7779
{
7880
string location = string.Empty;
79-
location = "https://" + hostName + ":" + port + "/" + path + "/" + page;
81+
location = "https://" + hostName + ":" + securePort + "/" + path + "/" + page;
8082

8183
return location;
8284
}

dotnet/test/firefox/WebDriver.Firefox.Tests.config

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<add key="Protocol" value="http"/>
1010
<add key="HostName" value="localhost"/>
1111
<add key="Port" value="2310"/>
12+
<add key="SecurePort" value="2410"/>
1213
<add key="Folder" value="common"/>
1314
</appSettings>
1415
</configuration>

dotnet/test/ie/WebDriver.IE.Tests.config

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<add key="Protocol" value="http"/>
1010
<add key="HostName" value="localhost"/>
1111
<add key="Port" value="2310"/>
12+
<add key="SecurePort" value="2410"/>
1213
<add key="Folder" value="common"/>
1314
</appSettings>
1415
</configuration>

dotnet/test/opera/WebDriver.Opera.Tests.config

+2
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88

99
<add key="Protocol" value="http"/>
1010
<add key="HostName" value="localhost"/>
11+
<add key="SecurePort" value="2410"/>
1112
<add key="Port" value="2310"/>
13+
<add key="SecurePort" value="2410"/>
1214
<add key="Folder" value="common"/>
1315
</appSettings>
1416
</configuration>

dotnet/test/phantomjs/WebDriver.PhantomJS.Tests.config

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<add key="Protocol" value="http"/>
1010
<add key="HostName" value="localhost"/>
1111
<add key="Port" value="2310"/>
12-
<add key="Folder" value="common"/>
12+
<add key="SecurePort" value="2410"/>
13+
<add key="Folder" value="common"/>
1314
</appSettings>
1415
</configuration>

dotnet/test/remote/WebDriver.Remote.Tests.config

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<add key="Protocol" value="http"/>
1111
<add key="HostName" value="localhost"/>
1212
<add key="Port" value="2310"/>
13+
<add key="SecurePort" value="2410"/>
1314
<add key="Folder" value="common"/>
1415
</appSettings>
1516
</configuration>

dotnet/test/safari/WebDriver.Safari.Tests.config

+2-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<add key="Protocol" value="http"/>
1010
<add key="HostName" value="localhost"/>
1111
<add key="Port" value="2310"/>
12-
<add key="Folder" value="common"/>
12+
<add key="SecurePort" value="2410"/>
13+
<add key="Folder" value="common"/>
1314
</appSettings>
1415
</configuration>

0 commit comments

Comments
 (0)