Skip to content

Commit 6c88a84

Browse files
authored
Merge branch 'trunk' into feature/ft-16248-websocket-timeout
2 parents 6ec0ac7 + 09da0ef commit 6c88a84

File tree

2 files changed

+0
-42
lines changed

2 files changed

+0
-42
lines changed

dotnet/src/webdriver/Proxy.cs

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ public class Proxy
7272
{
7373
private ProxyKind proxyKind = ProxyKind.Unspecified;
7474
private bool isAutoDetect;
75-
private string? ftpProxyLocation;
7675
private string? httpProxyLocation;
7776
private string? proxyAutoConfigUrl;
7877
private string? sslProxyLocation;
@@ -116,11 +115,6 @@ public Proxy(Dictionary<string, object> settings)
116115
}
117116
}
118117

119-
if (settings.TryGetValue("ftpProxy", out object? ftpProxyObj) && ftpProxyObj?.ToString() is string ftpProxy)
120-
{
121-
this.FtpProxy = ftpProxy;
122-
}
123-
124118
if (settings.TryGetValue("httpProxy", out object? httpProxyObj) && httpProxyObj?.ToString() is string httpProxy)
125119
{
126120
this.HttpProxy = httpProxy;
@@ -236,24 +230,6 @@ public bool IsAutoDetect
236230
}
237231
}
238232

239-
/// <summary>
240-
/// Gets or sets the value of the proxy for the FTP protocol.
241-
/// </summary>
242-
[JsonPropertyName("ftpProxy")]
243-
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
244-
[Obsolete("FTP proxy support is deprecated and will be removed in the 4.37 version.")]
245-
public string? FtpProxy
246-
{
247-
get => this.ftpProxyLocation;
248-
249-
set
250-
{
251-
this.VerifyProxyTypeCompatilibily(ProxyKind.Manual);
252-
this.proxyKind = ProxyKind.Manual;
253-
this.ftpProxyLocation = value;
254-
}
255-
}
256-
257233
/// <summary>
258234
/// Gets or sets the value of the proxy for the HTTP protocol.
259235
/// </summary>
@@ -494,11 +470,6 @@ public void AddBypassAddresses(IEnumerable<string> addressesToAdd)
494470
serializedDictionary["sslProxy"] = this.sslProxyLocation;
495471
}
496472

497-
if (!string.IsNullOrEmpty(this.ftpProxyLocation))
498-
{
499-
serializedDictionary["ftpProxy"] = this.ftpProxyLocation;
500-
}
501-
502473
if (!string.IsNullOrEmpty(this.socksProxyLocation))
503474
{
504475
if (!this.socksVersion.HasValue)

dotnet/test/common/ProxyTest.cs

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public void NotInitializedProxy()
3131
Proxy proxy = new Proxy();
3232

3333
Assert.That(proxy.Kind, Is.EqualTo(ProxyKind.Unspecified));
34-
Assert.That(proxy.FtpProxy, Is.Null);
3534
Assert.That(proxy.HttpProxy, Is.Null);
3635
Assert.That(proxy.SslProxy, Is.Null);
3736
Assert.That(proxy.SocksProxy, Is.Null);
@@ -54,7 +53,6 @@ public void CanNotChangeAlreadyInitializedProxyType()
5453
Assert.That(() => proxy.SocksUserName = "", Throws.InvalidOperationException);
5554
Assert.That(() => proxy.SocksProxy = "", Throws.InvalidOperationException);
5655
Assert.That(() => proxy.SocksVersion = 5, Throws.InvalidOperationException);
57-
Assert.That(() => proxy.FtpProxy = "", Throws.InvalidOperationException);
5856
Assert.That(() => proxy.HttpProxy = "", Throws.InvalidOperationException);
5957
Assert.That(() => proxy.SslProxy = "", Throws.InvalidOperationException);
6058
Assert.That(() => proxy.ProxyAutoConfigUrl = "", Throws.InvalidOperationException);
@@ -73,7 +71,6 @@ public void ManualProxy()
7371
Proxy proxy = new Proxy();
7472

7573
proxy.HttpProxy = "http.proxy:1234";
76-
proxy.FtpProxy = "ftp.proxy";
7774
proxy.SslProxy = "ssl.proxy";
7875
proxy.AddBypassAddresses("localhost", "127.0.0.*");
7976
proxy.SocksProxy = "socks.proxy:65555";
@@ -82,7 +79,6 @@ public void ManualProxy()
8279
proxy.SocksPassword = "test2";
8380

8481
Assert.That(proxy.Kind, Is.EqualTo(ProxyKind.Manual));
85-
Assert.That(proxy.FtpProxy, Is.EqualTo("ftp.proxy"));
8682
Assert.That(proxy.HttpProxy, Is.EqualTo("http.proxy:1234"));
8783
Assert.That(proxy.SslProxy, Is.EqualTo("ssl.proxy"));
8884
Assert.That(proxy.SocksProxy, Is.EqualTo("socks.proxy:65555"));
@@ -104,7 +100,6 @@ public void PACProxy()
104100
Assert.That(proxy.Kind, Is.EqualTo(ProxyKind.ProxyAutoConfigure));
105101
Assert.That(proxy.ProxyAutoConfigUrl, Is.EqualTo("http://aaa/bbb.pac"));
106102

107-
Assert.That(proxy.FtpProxy, Is.Null);
108103
Assert.That(proxy.HttpProxy, Is.Null);
109104
Assert.That(proxy.SslProxy, Is.Null);
110105
Assert.That(proxy.SocksProxy, Is.Null);
@@ -124,7 +119,6 @@ public void AutoDetectProxy()
124119
Assert.That(proxy.Kind, Is.EqualTo(ProxyKind.AutoDetect));
125120
Assert.That(proxy.IsAutoDetect, Is.True);
126121

127-
Assert.That(proxy.FtpProxy, Is.Null);
128122
Assert.That(proxy.HttpProxy, Is.Null);
129123
Assert.That(proxy.SslProxy, Is.Null);
130124
Assert.That(proxy.SocksProxy, Is.Null);
@@ -153,7 +147,6 @@ public void ManualProxyFromDictionary()
153147
Proxy proxy = new Proxy(proxyData);
154148

155149
Assert.That(proxy.Kind, Is.EqualTo(ProxyKind.Manual));
156-
Assert.That(proxy.FtpProxy, Is.EqualTo("ftp.proxy"));
157150
Assert.That(proxy.HttpProxy, Is.EqualTo("http.proxy:1234"));
158151
Assert.That(proxy.SslProxy, Is.EqualTo("ssl.proxy"));
159152
Assert.That(proxy.SocksProxy, Is.EqualTo("socks.proxy:65555"));
@@ -199,7 +192,6 @@ public void PacProxyFromDictionary()
199192
Assert.That(proxy.Kind, Is.EqualTo(ProxyKind.ProxyAutoConfigure));
200193
Assert.That(proxy.ProxyAutoConfigUrl, Is.EqualTo("http://aaa/bbb.pac"));
201194

202-
Assert.That(proxy.FtpProxy, Is.Null);
203195
Assert.That(proxy.HttpProxy, Is.Null);
204196
Assert.That(proxy.SslProxy, Is.Null);
205197
Assert.That(proxy.SocksProxy, Is.Null);
@@ -222,7 +214,6 @@ public void AutoDetectProxyFromDictionary()
222214
Assert.That(proxy.Kind, Is.EqualTo(ProxyKind.AutoDetect));
223215
Assert.That(proxy.IsAutoDetect, Is.True);
224216

225-
Assert.That(proxy.FtpProxy, Is.Null);
226217
Assert.That(proxy.HttpProxy, Is.Null);
227218
Assert.That(proxy.SslProxy, Is.Null);
228219
Assert.That(proxy.SocksProxy, Is.Null);
@@ -243,7 +234,6 @@ public void SystemProxyFromDictionary()
243234

244235
Assert.That(proxy.Kind, Is.EqualTo(ProxyKind.System));
245236

246-
Assert.That(proxy.FtpProxy, Is.Null);
247237
Assert.That(proxy.HttpProxy, Is.Null);
248238
Assert.That(proxy.SslProxy, Is.Null);
249239
Assert.That(proxy.SocksProxy, Is.Null);
@@ -265,7 +255,6 @@ public void DirectProxyFromDictionary()
265255

266256
Assert.That(proxy.Kind, Is.EqualTo(ProxyKind.Direct));
267257

268-
Assert.That(proxy.FtpProxy, Is.Null);
269258
Assert.That(proxy.HttpProxy, Is.Null);
270259
Assert.That(proxy.SslProxy, Is.Null);
271260
Assert.That(proxy.SocksProxy, Is.Null);
@@ -281,13 +270,11 @@ public void DirectProxyFromDictionary()
281270
public void ConstructingWithNullKeysWorksAsExpected()
282271
{
283272
Dictionary<string, object> rawProxy = new Dictionary<string, object>();
284-
rawProxy.Add("ftpProxy", null);
285273
rawProxy.Add("httpProxy", "http://www.example.com");
286274
rawProxy.Add("autodetect", null);
287275

288276
Proxy proxy = new Proxy(rawProxy);
289277

290-
Assert.That(proxy.FtpProxy, Is.Null);
291278
Assert.That(proxy.IsAutoDetect, Is.False);
292279
Assert.That(proxy.HttpProxy, Is.EqualTo("http://www.example.com"));
293280
}

0 commit comments

Comments
 (0)