Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,11 @@ internal IISTestSiteFixture(Action<IISDeploymentParameters> configure)
// Uncomment to add IIS debug logs to test output.
//DeploymentParameters.EnvironmentVariables.Add("ASPNETCORE_MODULE_DEBUG", "console");

DeploymentParameters.EnableModule("WebSocketModule", "%IIS_BIN%/iiswsock.dll");
// This queue does not have websockets enabled currently, adding the module will break all tests using this fixture.
if (!HelixHelper.GetTargetHelixQueue().ToLowerInvariant().Contains("windows.amd64.server2022"))
{
DeploymentParameters.EnableModule("WebSocketModule", "%IIS_BIN%/iiswsock.dll");
}
}

public HttpClient Client => DeploymentResult.HttpClient;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,19 @@ namespace Microsoft.AspNetCore.Server.IIS.FunctionalTests;
#endif

[MinimumOSVersion(OperatingSystems.Windows, WindowsVersions.Win8, SkipReason = "No WebSocket supported on Win7")]
[SkipOnHelix("Unsupported queue", Queues = "Windows.Amd64.VS2022.Pre.Open;")]
#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 abstract class WebSocketsTests : FunctionalTestsBase
{
public IISTestSiteFixture Fixture { get; }

public WebSocketsTests(IISTestSiteFixture fixture, ITestOutputHelper testOutput) : base(testOutput)
{
Fixture = fixture;
Fixture.DeploymentParameters.EnableLogging("C:/github/aspnetcore/artifacts/log");
}

[ConditionalFact]
Expand Down
Loading