Skip to content

Commit d7a2497

Browse files
authored
Revert "[release/8.0] Disable tests targetting http://corefx-net-http11.azure…" (#114209)
This reverts commit 7bdb3db.
1 parent febc186 commit d7a2497

File tree

7 files changed

+17
-55
lines changed

7 files changed

+17
-55
lines changed

src/libraries/Common/tests/System/Net/Configuration.Http.cs

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,7 @@ public static partial class Http
5858
public static readonly Uri RemoteEchoServer = new Uri("http://" + Host + "/" + EchoHandler);
5959
public static readonly Uri SecureRemoteEchoServer = new Uri("https://" + SecureHost + "/" + EchoHandler);
6060
public static readonly Uri Http2RemoteEchoServer = new Uri("https://" + Http2Host + "/" + EchoHandler);
61-
public static Uri[] EchoServerList => [
62-
// [ActiveIssue("https://github.com/dotnet/runtime/issues/110578)]
63-
// RemoteEchoServer,
64-
SecureRemoteEchoServer,
65-
Http2RemoteEchoServer
66-
];
61+
public static readonly Uri[] EchoServerList = new Uri[] { RemoteEchoServer, SecureRemoteEchoServer, Http2RemoteEchoServer };
6762

6863
public static readonly Uri RemoteVerifyUploadServer = new Uri("http://" + Host + "/" + VerifyUploadHandler);
6964
public static readonly Uri SecureRemoteVerifyUploadServer = new Uri("https://" + SecureHost + "/" + VerifyUploadHandler);
@@ -78,20 +73,8 @@ public static partial class Http
7873
public static Uri RemoteLoopServer => new Uri("ws://" + RemoteLoopHost + "/" + RemoteLoopHandler);
7974

8075
public static readonly object[][] EchoServers = EchoServerList.Select(x => new object[] { x }).ToArray();
81-
public static readonly object[][] VerifyUploadServers = {
82-
// [ActiveIssue("https://github.com/dotnet/runtime/issues/110578)]
83-
// new object[] { RemoteVerifyUploadServer },
84-
new object[] { SecureRemoteVerifyUploadServer },
85-
new object[] { Http2RemoteVerifyUploadServer }
86-
};
87-
88-
public static readonly object[][] CompressedServers = {
89-
// [ActiveIssue("https://github.com/dotnet/runtime/issues/110578)]
90-
// new object[] { RemoteDeflateServer },
91-
new object[] { RemoteGZipServer },
92-
new object[] { Http2RemoteDeflateServer },
93-
new object[] { Http2RemoteGZipServer }
94-
};
76+
public static readonly object[][] VerifyUploadServers = { new object[] { RemoteVerifyUploadServer }, new object[] { SecureRemoteVerifyUploadServer }, new object[] { Http2RemoteVerifyUploadServer } };
77+
public static readonly object[][] CompressedServers = { new object[] { RemoteDeflateServer }, new object[] { RemoteGZipServer }, new object[] { Http2RemoteDeflateServer }, new object[] { Http2RemoteGZipServer } };
9578

9679
public static readonly object[][] Http2Servers = { new object[] { new Uri("https://" + Http2Host) } };
9780
public static readonly object[][] Http2NoPushServers = { new object[] { new Uri("https://" + Http2NoPushHost) } };
@@ -101,14 +84,7 @@ public static partial class Http
10184
public static readonly RemoteServer RemoteSecureHttp11Server = new RemoteServer(new Uri("https://" + SecureHost + "/"), HttpVersion.Version11);
10285
public static readonly RemoteServer RemoteHttp2Server = new RemoteServer(new Uri("https://" + Http2Host + "/"), new Version(2, 0));
10386

104-
public static IEnumerable<RemoteServer> RemoteServers =>
105-
new RemoteServer[]
106-
{
107-
// [ActiveIssue("https://github.com/dotnet/runtime/issues/110578)]
108-
// RemoteHttp11Server,
109-
RemoteSecureHttp11Server,
110-
RemoteHttp2Server
111-
};
87+
public static readonly IEnumerable<RemoteServer> RemoteServers = new RemoteServer[] { RemoteHttp11Server, RemoteSecureHttp11Server, RemoteHttp2Server };
11288

11389
public static readonly IEnumerable<object[]> RemoteServersMemberData = RemoteServers.Select(s => new object[] { s });
11490

src/libraries/Common/tests/System/Net/Configuration.WebSockets.cs

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,8 @@ public static partial class WebSockets
2222
public static readonly Uri RemoteEchoHeadersServer = new Uri("ws://" + Host + "/" + EchoHeadersHandler);
2323
public static readonly Uri SecureRemoteEchoHeadersServer = new Uri("wss://" + SecureHost + "/" + EchoHeadersHandler);
2424

25-
public static object[][] EchoServers => new object[][] {
26-
// [ActiveIssue("https://github.com/dotnet/runtime/issues/110578)]
27-
// new object[] { RemoteEchoServer },
28-
new object[] { SecureRemoteEchoServer },
29-
};
30-
31-
public static object[][] EchoHeadersServers => new object[][] {
32-
// [ActiveIssue("https://github.com/dotnet/runtime/issues/110578)]
33-
// new object[] { RemoteEchoHeadersServer },
34-
new object[] { SecureRemoteEchoHeadersServer },
35-
};
25+
public static readonly object[][] EchoServers = { new object[] { RemoteEchoServer }, new object[] { SecureRemoteEchoServer } };
26+
public static readonly object[][] EchoHeadersServers = { new object[] { RemoteEchoHeadersServer }, new object[] { SecureRemoteEchoHeadersServer } };
3627
}
3728
}
3829
}

src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.RemoteServer.cs

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ public async Task UseDefaultCredentials_SetToFalseAndServerNeedsAuth_StatusCodeU
7171
handler.UseDefaultCredentials = false;
7272
using (HttpClient client = CreateHttpClient(handler))
7373
{
74-
Uri uri = Configuration.Http.RemoteSecureHttp11Server.NegotiateAuthUriForDefaultCreds;
74+
Uri uri = Configuration.Http.RemoteHttp11Server.NegotiateAuthUriForDefaultCreds;
7575
_output.WriteLine("Uri: {0}", uri);
7676
using (HttpResponseMessage response = await client.GetAsync(uri))
7777
{
@@ -601,9 +601,9 @@ public async Task PostAsync_CallMethod_EmptyContent(Configuration.Http.RemoteSer
601601
public static IEnumerable<object[]> ExpectContinueVersion()
602602
{
603603
return
604-
from expect in new bool?[] { true, false, null }
605-
from version in new Version[] { new Version(1, 0), new Version(1, 1), new Version(2, 0) }
606-
select new object[] { expect, version };
604+
from expect in new bool?[] {true, false, null}
605+
from version in new Version[] {new Version(1, 0), new Version(1, 1), new Version(2, 0)}
606+
select new object[] {expect, version};
607607
}
608608

609609
[OuterLoop("Uses external servers", typeof(PlatformDetection), nameof(PlatformDetection.LocalEchoServerIsNotAvailable))]
@@ -781,8 +781,7 @@ public async Task SendAsync_SendRequestUsingMethodToEchoServerWithNoContent_Meth
781781
{
782782
var request = new HttpRequestMessage(
783783
new HttpMethod(method),
784-
serverUri)
785-
{ Version = UseVersion };
784+
serverUri) { Version = UseVersion };
786785

787786
using (HttpResponseMessage response = await client.SendAsync(TestAsync, request))
788787
{
@@ -808,8 +807,7 @@ public async Task SendAsync_SendRequestUsingMethodToEchoServerWithContent_Succes
808807
{
809808
var request = new HttpRequestMessage(
810809
new HttpMethod(method),
811-
serverUri)
812-
{ Version = UseVersion };
810+
serverUri) { Version = UseVersion };
813811
request.Content = new StringContent(ExpectedContent);
814812
using (HttpResponseMessage response = await client.SendAsync(TestAsync, request))
815813
{
@@ -988,7 +986,6 @@ public async Task GetAsync_AllowAutoRedirectTrue_RedirectFromHttpToHttp_StatusCo
988986
[OuterLoop("Uses external servers")]
989987
[Fact]
990988
[ActiveIssue("https://github.com/dotnet/runtime/issues/55083", TestPlatforms.Browser)]
991-
[ActiveIssue("https://github.com/dotnet/runtime/issues/110578")]
992989
public async Task GetAsync_AllowAutoRedirectTrue_RedirectFromHttpToHttps_StatusCodeOK()
993990
{
994991
HttpClientHandler handler = CreateHttpClientHandler();
@@ -1073,17 +1070,17 @@ public async Task GetAsync_MaxAutomaticRedirectionsNServerHops_ThrowsIfTooMany(i
10731070
handler.MaxAutomaticRedirections = maxHops;
10741071
using (HttpClient client = CreateHttpClient(handler))
10751072
{
1076-
Task<HttpResponseMessage> t = client.GetAsync(Configuration.Http.RemoteSecureHttp11Server.RedirectUriForDestinationUri(
1073+
Task<HttpResponseMessage> t = client.GetAsync(Configuration.Http.RemoteHttp11Server.RedirectUriForDestinationUri(
10771074
statusCode: 302,
1078-
destinationUri: Configuration.Http.RemoteSecureHttp11Server.EchoUri,
1075+
destinationUri: Configuration.Http.RemoteHttp11Server.EchoUri,
10791076
hops: hops));
10801077

10811078
if (hops <= maxHops)
10821079
{
10831080
using (HttpResponseMessage response = await t)
10841081
{
10851082
Assert.Equal(HttpStatusCode.OK, response.StatusCode);
1086-
Assert.Equal(Configuration.Http.SecureRemoteEchoServer, response.RequestMessage.RequestUri);
1083+
Assert.Equal(Configuration.Http.RemoteEchoServer, response.RequestMessage.RequestUri);
10871084
}
10881085
}
10891086
else

src/libraries/Common/tests/System/Net/Http/HttpClientHandlerTest.ServerCertificates.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ public async Task NoCallback_ValidCertificate_SuccessAndExpectedPropertyBehavior
9797

9898
[OuterLoop("Uses external servers")]
9999
[Fact]
100-
[ActiveIssue("https://github.com/dotnet/runtime/issues/110578")]
101100
public async Task UseCallback_NotSecureConnection_CallbackNotCalled()
102101
{
103102
HttpClientHandler handler = CreateHttpClientHandler();

src/libraries/System.Net.Http.WinHttpHandler/tests/FunctionalTests/ServerCertificateTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ public async Task NoCallback_ValidCertificate_CallbackNotCalled()
3232

3333
[OuterLoop]
3434
[Fact]
35-
[ActiveIssue("https://github.com/dotnet/runtime/issues/110578")]
3635
public async Task UseCallback_NotSecureConnection_CallbackNotCalled()
3736
{
3837
var handler = new WinHttpHandler();

src/libraries/System.Net.Http.WinHttpHandler/tests/FunctionalTests/WinHttpHandlerTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public async Task GetAsync_RedirectResponseHasCookie_CookieSentToFinalUri(
5555
string cookieName,
5656
string cookieValue)
5757
{
58-
Uri uri = System.Net.Test.Common.Configuration.Http.RemoteSecureHttp11Server.RedirectUriForDestinationUri(302, System.Net.Test.Common.Configuration.Http.SecureRemoteEchoServer, 1);
58+
Uri uri = System.Net.Test.Common.Configuration.Http.RemoteHttp11Server.RedirectUriForDestinationUri(302, System.Net.Test.Common.Configuration.Http.RemoteEchoServer, 1);
5959
var handler = new WinHttpHandler();
6060
handler.WindowsProxyUsePolicy = WindowsProxyUsePolicy.UseWinInetProxy;
6161
handler.CookieUsePolicy = cookieUsePolicy;

src/libraries/System.Net.Http/tests/FunctionalTests/MetricsTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ public Task RequestDuration_Redirect_RecordedForEachHttpSpan()
11121112
});
11131113

11141114
}, options: new GenericLoopbackOptions() { UseSsl = true });
1115-
}, options: new GenericLoopbackOptions() { UseSsl = false });
1115+
}, options: new GenericLoopbackOptions() { UseSsl = false});
11161116
}
11171117

11181118
[Fact]

0 commit comments

Comments
 (0)