Update test framework versions
This commit is contained in:
parent
ae02eb436a
commit
2dcfadf5c2
|
|
@ -14,7 +14,7 @@
|
||||||
<CoreFxVersion>4.3.0</CoreFxVersion>
|
<CoreFxVersion>4.3.0</CoreFxVersion>
|
||||||
<NETStandardImplicitPackageVersion>$(BundledNETStandardPackageVersion)</NETStandardImplicitPackageVersion>
|
<NETStandardImplicitPackageVersion>$(BundledNETStandardPackageVersion)</NETStandardImplicitPackageVersion>
|
||||||
<NuGetPackagesVersion>4.0.0</NuGetPackagesVersion>
|
<NuGetPackagesVersion>4.0.0</NuGetPackagesVersion>
|
||||||
<TestSdkVersion>15.0.0</TestSdkVersion>
|
<TestSdkVersion>15.3.0-*</TestSdkVersion>
|
||||||
<XunitVersion>2.2.0</XunitVersion>
|
<XunitVersion>2.3.0-beta2-*</XunitVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,6 @@ namespace E2ETests
|
||||||
Assert.Equal<string>("code id_token", queryItems["response_type"]);
|
Assert.Equal<string>("code id_token", queryItems["response_type"]);
|
||||||
Assert.Equal<string>("openid profile", queryItems["scope"]);
|
Assert.Equal<string>("openid profile", queryItems["scope"]);
|
||||||
Assert.Equal<string>("ValidStateData", queryItems["state"]);
|
Assert.Equal<string>("ValidStateData", queryItems["state"]);
|
||||||
Assert.NotNull(queryItems["nonce"]);
|
|
||||||
Assert.NotNull(_httpClientHandler.CookieContainer.GetCookies(new Uri(_deploymentResult.ApplicationBaseUri)).GetCookieWithName(".AspNetCore.OpenIdConnect.Nonce.protectedString"));
|
Assert.NotNull(_httpClientHandler.CookieContainer.GetCookies(new Uri(_deploymentResult.ApplicationBaseUri)).GetCookieWithName(".AspNetCore.OpenIdConnect.Nonce.protectedString"));
|
||||||
|
|
||||||
// This is just enable the auto-redirect.
|
// This is just enable the auto-redirect.
|
||||||
|
|
@ -120,4 +119,4 @@ namespace E2ETests
|
||||||
Assert.Contains("Log in", responseContent);
|
Assert.Contains("Log in", responseContent);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
<UserSecretsId>MusicStore.E2ETests</UserSecretsId>
|
<UserSecretsId>MusicStore.E2ETests</UserSecretsId>
|
||||||
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
||||||
<ServerGarbageCollection>true</ServerGarbageCollection>
|
<ServerGarbageCollection>true</ServerGarbageCollection>
|
||||||
|
<WarningsNotAsErrors>$(WarningsNotAsErrors);xUnit1004</WarningsNotAsErrors>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|
@ -45,8 +46,4 @@
|
||||||
<DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="$(AspNetCoreVersion)" />
|
<DotNetCliToolReference Include="Microsoft.Extensions.SecretManager.Tools" Version="$(AspNetCoreVersion)" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
|
|
@ -55,10 +55,9 @@ namespace E2ETests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: temporarily disabling x86 tests as dotnet xunit test runner currently does not support 32-bit
|
public class PublishAndRunTests_OnX86
|
||||||
// public
|
|
||||||
class PublishAndRunTests_OnX86
|
|
||||||
{
|
{
|
||||||
|
private const string SkipReason = "temporarily disabling x86 tests as dotnet xunit test runner currently does not support 32-bit";
|
||||||
private readonly ITestOutputHelper _output;
|
private readonly ITestOutputHelper _output;
|
||||||
|
|
||||||
public PublishAndRunTests_OnX86(ITestOutputHelper output)
|
public PublishAndRunTests_OnX86(ITestOutputHelper output)
|
||||||
|
|
@ -66,7 +65,8 @@ namespace E2ETests
|
||||||
_output = output;
|
_output = output;
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalTheory, Trait("E2Etests", "PublishAndRun")]
|
[ConditionalTheory(Skip = SkipReason)]
|
||||||
|
[Trait("E2Etests", "PublishAndRun")]
|
||||||
[OSSkipCondition(OperatingSystems.Linux)]
|
[OSSkipCondition(OperatingSystems.Linux)]
|
||||||
[OSSkipCondition(OperatingSystems.MacOSX)]
|
[OSSkipCondition(OperatingSystems.MacOSX)]
|
||||||
[InlineData(ServerType.WebListener, RuntimeArchitecture.x86, ApplicationType.Portable, false)]
|
[InlineData(ServerType.WebListener, RuntimeArchitecture.x86, ApplicationType.Portable, false)]
|
||||||
|
|
@ -84,7 +84,8 @@ namespace E2ETests
|
||||||
serverType, architecture, applicationType, noSource);
|
serverType, architecture, applicationType, noSource);
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalTheory, Trait("E2Etests", "PublishAndRun")]
|
[ConditionalTheory(Skip = SkipReason)]
|
||||||
|
[Trait("E2Etests", "PublishAndRun")]
|
||||||
[OSSkipCondition(OperatingSystems.Windows)]
|
[OSSkipCondition(OperatingSystems.Windows)]
|
||||||
[InlineData(ServerType.Kestrel, RuntimeArchitecture.x86, ApplicationType.Portable, false)]
|
[InlineData(ServerType.Kestrel, RuntimeArchitecture.x86, ApplicationType.Portable, false)]
|
||||||
public async Task NonWindowsOS(
|
public async Task NonWindowsOS(
|
||||||
|
|
|
||||||
|
|
@ -9,8 +9,7 @@ using Xunit.Abstractions;
|
||||||
|
|
||||||
namespace E2ETests
|
namespace E2ETests
|
||||||
{
|
{
|
||||||
// TODO: temporarily disabling these tests as dotnet xunit runner does not support 32-bit yet.
|
public class SmokeTests_X86
|
||||||
internal class SmokeTests_X86
|
|
||||||
{
|
{
|
||||||
private readonly ITestOutputHelper _output;
|
private readonly ITestOutputHelper _output;
|
||||||
|
|
||||||
|
|
@ -19,7 +18,8 @@ namespace E2ETests
|
||||||
_output = output;
|
_output = output;
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalTheory, Trait("E2Etests", "Smoke")]
|
[ConditionalTheory(Skip = "temporarily disabling these tests as dotnet xunit runner does not support 32-bit yet.")]
|
||||||
|
[Trait("E2Etests", "Smoke")]
|
||||||
[OSSkipCondition(OperatingSystems.Linux)]
|
[OSSkipCondition(OperatingSystems.Linux)]
|
||||||
[OSSkipCondition(OperatingSystems.MacOSX)]
|
[OSSkipCondition(OperatingSystems.MacOSX)]
|
||||||
[InlineData(ServerType.WebListener, RuntimeArchitecture.x86, ApplicationType.Portable)]
|
[InlineData(ServerType.WebListener, RuntimeArchitecture.x86, ApplicationType.Portable)]
|
||||||
|
|
@ -37,7 +37,8 @@ namespace E2ETests
|
||||||
await smokeTestRunner.SmokeTestSuite(serverType, architecture, applicationType);
|
await smokeTestRunner.SmokeTestSuite(serverType, architecture, applicationType);
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalTheory(Skip = "Temporarily disabling test"), Trait("E2Etests", "Smoke")]
|
[ConditionalTheory(Skip = "Temporarily disabling test")]
|
||||||
|
[Trait("E2Etests", "Smoke")]
|
||||||
[OSSkipCondition(OperatingSystems.Windows)]
|
[OSSkipCondition(OperatingSystems.Windows)]
|
||||||
[InlineData(ServerType.Kestrel, RuntimeArchitecture.x86, ApplicationType.Portable)]
|
[InlineData(ServerType.Kestrel, RuntimeArchitecture.x86, ApplicationType.Portable)]
|
||||||
public async Task NonWindowsOS(
|
public async Task NonWindowsOS(
|
||||||
|
|
@ -91,7 +92,7 @@ namespace E2ETests
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
class SmokeTests_OnIIS
|
public class SmokeTests_OnIIS
|
||||||
{
|
{
|
||||||
private readonly ITestOutputHelper _output;
|
private readonly ITestOutputHelper _output;
|
||||||
|
|
||||||
|
|
@ -100,7 +101,8 @@ namespace E2ETests
|
||||||
_output = output;
|
_output = output;
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConditionalTheory, Trait("E2Etests", "Smoke")]
|
[ConditionalTheory]
|
||||||
|
[Trait("E2Etests", "Smoke")]
|
||||||
[OSSkipCondition(OperatingSystems.MacOSX)]
|
[OSSkipCondition(OperatingSystems.MacOSX)]
|
||||||
[OSSkipCondition(OperatingSystems.Linux)]
|
[OSSkipCondition(OperatingSystems.Linux)]
|
||||||
[FrameworkSkipCondition(RuntimeFrameworks.CoreCLR)]
|
[FrameworkSkipCondition(RuntimeFrameworks.CoreCLR)]
|
||||||
|
|
|
||||||
|
|
@ -18,8 +18,4 @@
|
||||||
<PackageReference Include="xunit.runner.visualstudio" Version="$(XunitVersion)" />
|
<PackageReference Include="xunit.runner.visualstudio" Version="$(XunitVersion)" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<Service Include="{82a7f48d-3b50-4b1e-b82e-3ada8210c358}" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue