Change AutobahnTester to use dynamic ports with Kestrel (#238)
- Depends on https://github.com/aspnet/Hosting/pull/1388 - Addresses https://github.com/aspnet/Home/issues/3062
This commit is contained in:
parent
4db62c5786
commit
ac0ee35362
|
|
@ -9,7 +9,7 @@
|
|||
<MicrosoftAspNetCoreHttpExtensionsPackageVersion>2.1.0-preview3-32233</MicrosoftAspNetCoreHttpExtensionsPackageVersion>
|
||||
<MicrosoftAspNetCoreServerHttpSysPackageVersion>2.1.0-preview3-32233</MicrosoftAspNetCoreServerHttpSysPackageVersion>
|
||||
<MicrosoftAspNetCoreServerIISIntegrationPackageVersion>2.1.0-preview3-32233</MicrosoftAspNetCoreServerIISIntegrationPackageVersion>
|
||||
<MicrosoftAspNetCoreServerIntegrationTestingPackageVersion>0.5.0-preview2-32233</MicrosoftAspNetCoreServerIntegrationTestingPackageVersion>
|
||||
<MicrosoftAspNetCoreServerIntegrationTestingPackageVersion>0.5.0-a-preview3-deployment-parameters-scheme-16978</MicrosoftAspNetCoreServerIntegrationTestingPackageVersion>
|
||||
<MicrosoftAspNetCoreServerKestrelHttpsPackageVersion>2.1.0-preview3-32233</MicrosoftAspNetCoreServerKestrelHttpsPackageVersion>
|
||||
<MicrosoftAspNetCoreServerKestrelPackageVersion>2.1.0-preview3-32233</MicrosoftAspNetCoreServerKestrelPackageVersion>
|
||||
<MicrosoftAspNetCoreStaticFilesPackageVersion>2.1.0-preview3-32233</MicrosoftAspNetCoreStaticFilesPackageVersion>
|
||||
|
|
|
|||
|
|
@ -129,7 +129,6 @@ namespace Microsoft.AspNetCore.WebSockets.ConformanceTest.Autobahn
|
|||
|
||||
public async Task DeployTestAndAddToSpec(ServerType server, bool ssl, string environment, CancellationToken cancellationToken, Action<AutobahnExpectations> expectationConfig = null)
|
||||
{
|
||||
var baseUrl = ssl ? "https://localhost:0" : "http://localhost:0";
|
||||
var sslNamePart = ssl ? "SSL" : "NoSSL";
|
||||
var name = $"{server}|{sslNamePart}|{environment}";
|
||||
var logger = _loggerFactory.CreateLogger($"AutobahnTestApp:{server}:{sslNamePart}:{environment}");
|
||||
|
|
@ -146,7 +145,7 @@ namespace Microsoft.AspNetCore.WebSockets.ConformanceTest.Autobahn
|
|||
#endif
|
||||
var parameters = new DeploymentParameters(appPath, server, RuntimeFlavor.CoreClr, RuntimeArchitecture.x64)
|
||||
{
|
||||
ApplicationBaseUriHint = baseUrl,
|
||||
Scheme = (ssl ? Uri.UriSchemeHttps : Uri.UriSchemeHttp),
|
||||
ApplicationType = ApplicationType.Portable,
|
||||
TargetFramework = targetFramework,
|
||||
EnvironmentName = environment,
|
||||
|
|
|
|||
Loading…
Reference in New Issue