-
Notifications
You must be signed in to change notification settings - Fork 10.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[release/9.0] Fix IIS outofprocess to remove WebSocket compression ha…
…ndshake (#58931) * Fix IIS outofprocess to remove WebSocket compression handshake * test name * Don't run IIS websocket tests on unsupported queue * comment * using * using * not * Skip WebSocketOutOfProcessTests on Windows.Amd64.Server2022.Open (#59112) * Skip WebSocketOutOfProcessTests on Windows.Amd64.Server2022.Open * Use if-def from base class * Fix in-proc and remove attributes from abstract class --------- Co-authored-by: Brennan <brecon@microsoft.com> Co-authored-by: Safia Abdalla <safia@microsoft.com>
- Loading branch information
1 parent
0eb3437
commit 401ae7c
Showing
13 changed files
with
236 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
src/Servers/IIS/IIS/test/Common.FunctionalTests/WebSocketInProcessTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using Microsoft.AspNetCore.InternalTesting; | ||
using Microsoft.AspNetCore.Server.IntegrationTesting; | ||
using Xunit.Abstractions; | ||
|
||
#if !IIS_FUNCTIONALS | ||
using Microsoft.AspNetCore.Server.IIS.FunctionalTests; | ||
|
||
#if IISEXPRESS_FUNCTIONALS | ||
namespace Microsoft.AspNetCore.Server.IIS.IISExpress.FunctionalTests; | ||
#elif NEWHANDLER_FUNCTIONALS | ||
namespace Microsoft.AspNetCore.Server.IIS.NewHandler.FunctionalTests; | ||
#elif NEWSHIM_FUNCTIONALS | ||
namespace Microsoft.AspNetCore.Server.IIS.NewShim.FunctionalTests; | ||
#endif | ||
#else | ||
|
||
namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests; | ||
#endif | ||
|
||
[Collection(IISTestSiteCollectionInProc.Name)] | ||
[MinimumOSVersion(OperatingSystems.Windows, WindowsVersions.Win8, SkipReason = "No WebSocket supported on Win7")] | ||
#if IISEXPRESS_FUNCTIONALS | ||
[SkipOnHelix("Unsupported queue", Queues = "Windows.Amd64.VS2022.Pre.Open")] | ||
#else | ||
// These queues do not have websockets enabled currently for full IIS | ||
[SkipOnHelix("Unsupported queue", Queues = "Windows.Amd64.VS2022.Pre.Open;Windows.Amd64.Server2022.Open")] | ||
#endif | ||
public class WebSocketsInProcessTests : WebSocketsTests | ||
{ | ||
public WebSocketsInProcessTests(IISTestSiteFixture fixture, ITestOutputHelper testOutput) : base(fixture, testOutput) | ||
{ | ||
Fixture.DeploymentParameters.HostingModel = HostingModel.InProcess; | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
src/Servers/IIS/IIS/test/Common.FunctionalTests/WebSocketOutOfProcessTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
// Licensed to the .NET Foundation under one or more agreements. | ||
// The .NET Foundation licenses this file to you under the MIT license. | ||
|
||
using Microsoft.AspNetCore.InternalTesting; | ||
using Microsoft.AspNetCore.Server.IntegrationTesting; | ||
using Xunit.Abstractions; | ||
|
||
#if !IIS_FUNCTIONALS | ||
using Microsoft.AspNetCore.Server.IIS.FunctionalTests; | ||
|
||
#if IISEXPRESS_FUNCTIONALS | ||
namespace Microsoft.AspNetCore.Server.IIS.IISExpress.FunctionalTests; | ||
#elif NEWHANDLER_FUNCTIONALS | ||
namespace Microsoft.AspNetCore.Server.IIS.NewHandler.FunctionalTests; | ||
#elif NEWSHIM_FUNCTIONALS | ||
namespace Microsoft.AspNetCore.Server.IIS.NewShim.FunctionalTests; | ||
#endif | ||
#else | ||
|
||
namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests; | ||
#endif | ||
|
||
[Collection(IISTestSiteCollectionOutOfProc.Name)] | ||
[MinimumOSVersion(OperatingSystems.Windows, WindowsVersions.Win8, SkipReason = "No WebSocket supported on Win7")] | ||
#if IISEXPRESS_FUNCTIONALS | ||
[SkipOnHelix("Unsupported queue", Queues = "Windows.Amd64.VS2022.Pre.Open")] | ||
#else | ||
// These queues do not have websockets enabled currently for full IIS | ||
[SkipOnHelix("Unsupported queue", Queues = "Windows.Amd64.VS2022.Pre.Open;Windows.Amd64.Server2022.Open")] | ||
#endif | ||
public class WebSocketsOutOfProcessTests : WebSocketsTests | ||
{ | ||
public WebSocketsOutOfProcessTests(IISTestSiteFixture fixture, ITestOutputHelper testOutput) : base(fixture, testOutput) | ||
{ | ||
Fixture.DeploymentParameters.HostingModel = HostingModel.OutOfProcess; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.