diff --git a/src/Middleware/WebSockets/test/AutobahnTestApp/Properties/launchSettings.json b/src/Middleware/WebSockets/test/AutobahnTestApp/Properties/launchSettings.json deleted file mode 100644 index 85a2609ccc..0000000000 --- a/src/Middleware/WebSockets/test/AutobahnTestApp/Properties/launchSettings.json +++ /dev/null @@ -1,42 +0,0 @@ -{ - "iisSettings": { - "windowsAuthentication": false, - "anonymousAuthentication": true, - "iisExpress": { - "applicationUrl": "http://localhost:6155/", - "sslPort": 44371 - } - }, - "profiles": { - "IIS Express": { - "commandName": "IISExpress", - "launchBrowser": true, - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "ManagedSockets" - } - }, - "AutobahnTestApp": { - "commandName": "Project", - "launchBrowser": true, - "launchUrl": "http://localhost:5000", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "ManagedSockets" - } - }, - "AutobahnTestApp (SSL)": { - "commandName": "Project", - "launchBrowser": true, - "launchUrl": "https://localhost:5443", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "ManagedSockets" - } - }, - "WebListener": { - "commandName": "Project", - "commandLineArgs": "--server Microsoft.AspNetCore.Server.HttpSys", - "environmentVariables": { - "ASPNETCORE_ENVIRONMENT": "ManagedSockets" - } - } - } -} \ No newline at end of file diff --git a/src/Middleware/WebSockets/test/AutobahnTestApp/AutobahnTestApp.csproj b/src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/AutobahnTestApp.csproj similarity index 100% rename from src/Middleware/WebSockets/test/AutobahnTestApp/AutobahnTestApp.csproj rename to src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/AutobahnTestApp.csproj diff --git a/src/Middleware/WebSockets/test/AutobahnTestApp/Program.cs b/src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/Program.cs similarity index 100% rename from src/Middleware/WebSockets/test/AutobahnTestApp/Program.cs rename to src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/Program.cs diff --git a/src/Middleware/WebSockets/test/AutobahnTestApp/README.md b/src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/README.md similarity index 100% rename from src/Middleware/WebSockets/test/AutobahnTestApp/README.md rename to src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/README.md diff --git a/src/Middleware/WebSockets/test/AutobahnTestApp/Startup.cs b/src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/Startup.cs similarity index 100% rename from src/Middleware/WebSockets/test/AutobahnTestApp/Startup.cs rename to src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/Startup.cs diff --git a/src/Middleware/WebSockets/test/AutobahnTestApp/TestResources/testCert.pfx b/src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/TestResources/testCert.pfx similarity index 100% rename from src/Middleware/WebSockets/test/AutobahnTestApp/TestResources/testCert.pfx rename to src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/TestResources/testCert.pfx diff --git a/src/Middleware/WebSockets/test/AutobahnTestApp/TestResources/testCert.txt b/src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/TestResources/testCert.txt similarity index 100% rename from src/Middleware/WebSockets/test/AutobahnTestApp/TestResources/testCert.txt rename to src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/TestResources/testCert.txt diff --git a/src/Middleware/WebSockets/test/AutobahnTestApp/scripts/RunAutobahnTests.ps1 b/src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/scripts/RunAutobahnTests.ps1 similarity index 100% rename from src/Middleware/WebSockets/test/AutobahnTestApp/scripts/RunAutobahnTests.ps1 rename to src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/scripts/RunAutobahnTests.ps1 diff --git a/src/Middleware/WebSockets/test/AutobahnTestApp/scripts/autobahn.spec.json b/src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/scripts/autobahn.spec.json similarity index 100% rename from src/Middleware/WebSockets/test/AutobahnTestApp/scripts/autobahn.spec.json rename to src/Middleware/WebSockets/test/ConformanceTests/AutobahnTestApp/scripts/autobahn.spec.json diff --git a/src/Middleware/WebSockets/test/ConformanceTests/Helpers.cs b/src/Middleware/WebSockets/test/ConformanceTests/Helpers.cs index 37f65ca082..7c35b17305 100644 --- a/src/Middleware/WebSockets/test/ConformanceTests/Helpers.cs +++ b/src/Middleware/WebSockets/test/ConformanceTests/Helpers.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.IO; namespace Microsoft.AspNetCore.WebSockets.ConformanceTest @@ -7,22 +7,7 @@ namespace Microsoft.AspNetCore.WebSockets.ConformanceTest { public static string GetApplicationPath(string projectName) { - var applicationBasePath = AppContext.BaseDirectory; - - var directoryInfo = new DirectoryInfo(applicationBasePath); - do - { - var solutionFileInfo = new FileInfo(Path.Combine(directoryInfo.FullName, "WebSockets.sln")); - if (solutionFileInfo.Exists) - { - return Path.GetFullPath(Path.Combine(directoryInfo.FullName, "test", projectName)); - } - - directoryInfo = directoryInfo.Parent; - } - while (directoryInfo.Parent != null); - - throw new Exception($"Solution root could not be found using {applicationBasePath}"); + return Path.GetFullPath(Path.Combine(AppContext.BaseDirectory, projectName)); } } } diff --git a/src/Middleware/WebSockets/test/ConformanceTests/Microsoft.AspNetCore.WebSockets.ConformanceTests.csproj b/src/Middleware/WebSockets/test/ConformanceTests/Microsoft.AspNetCore.WebSockets.ConformanceTests.csproj index 76281207ee..c768e3ba64 100644 --- a/src/Middleware/WebSockets/test/ConformanceTests/Microsoft.AspNetCore.WebSockets.ConformanceTests.csproj +++ b/src/Middleware/WebSockets/test/ConformanceTests/Microsoft.AspNetCore.WebSockets.ConformanceTests.csproj @@ -3,6 +3,7 @@ netcoreapp2.1 $(TargetFrameworks);netcoreapp2.0 + $(DefaultItemExcludes);AutobahnTestApp\**\* @@ -10,6 +11,7 @@ +