Netcore3.0 (#323)
* Updates based on documentation * Getting the build passing * Getting app functioning * A few cleanups to confirm it's working as expected * Fixing functional tests * Updating dockerfile for 3.0 * Functional Tests now run sequentially * Updating to latest version of moq * Adding migration for post 3.0 upgrades * Removing commented out lines * Moving address and catalogitemordered configuration in to classes that own them * Minor cleanups
This commit is contained in:
committed by
Steve Smith
parent
9a21db6979
commit
4442015835
@@ -11,6 +11,7 @@ using Xunit;
|
||||
|
||||
namespace Microsoft.eShopWeb.FunctionalTests.Web.Controllers
|
||||
{
|
||||
[Collection("Sequential")]
|
||||
public class AccountControllerSignIn : IClassFixture<CustomWebApplicationFactory<Startup>>
|
||||
{
|
||||
public AccountControllerSignIn(CustomWebApplicationFactory<Startup> factory)
|
||||
@@ -42,7 +43,7 @@ namespace Microsoft.eShopWeb.FunctionalTests.Web.Controllers
|
||||
string regexpression = @"name=""__RequestVerificationToken"" type=""hidden"" value=""([-A-Za-z0-9+=/\\_]+?)""";
|
||||
var regex = new Regex(regexpression);
|
||||
var match = regex.Match(input);
|
||||
var group = match.Groups.LastOrDefault();
|
||||
var group = match.Groups.Values.LastOrDefault();
|
||||
Assert.NotNull(group);
|
||||
Assert.True(group.Value.Length > 50);
|
||||
}
|
||||
@@ -63,7 +64,7 @@ namespace Microsoft.eShopWeb.FunctionalTests.Web.Controllers
|
||||
string regexpression = @"name=""__RequestVerificationToken"" type=""hidden"" value=""([-A-Za-z0-9+=/\\_]+?)""";
|
||||
var regex = new Regex(regexpression);
|
||||
var match = regex.Match(input);
|
||||
return match.Groups.LastOrDefault().Value;
|
||||
return match.Groups.Values.LastOrDefault().Value;
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -8,6 +8,7 @@ using Xunit;
|
||||
|
||||
namespace Microsoft.eShopWeb.FunctionalTests.Web.Controllers
|
||||
{
|
||||
[Collection("Sequential")]
|
||||
public class ApiCatalogControllerList : IClassFixture<CustomWebApplicationFactory<Startup>>
|
||||
{
|
||||
public ApiCatalogControllerList(CustomWebApplicationFactory<Startup> factory)
|
||||
|
||||
@@ -5,6 +5,7 @@ using Xunit;
|
||||
|
||||
namespace Microsoft.eShopWeb.FunctionalTests.Web.Controllers
|
||||
{
|
||||
[Collection("Sequential")]
|
||||
public class CatalogControllerIndex : IClassFixture<CustomWebApplicationFactory<Startup>>
|
||||
{
|
||||
public CatalogControllerIndex(CustomWebApplicationFactory<Startup> factory)
|
||||
|
||||
@@ -7,6 +7,7 @@ using Xunit;
|
||||
|
||||
namespace Microsoft.eShopWeb.FunctionalTests.Web.Controllers
|
||||
{
|
||||
[Collection("Sequential")]
|
||||
public class OrderIndexOnGet : IClassFixture<CustomWebApplicationFactory<Startup>>
|
||||
{
|
||||
public OrderIndexOnGet(CustomWebApplicationFactory<Startup> factory)
|
||||
|
||||
@@ -40,11 +40,6 @@ namespace Microsoft.eShopWeb.FunctionalTests.Web.Controllers
|
||||
options.UseInternalServiceProvider(provider);
|
||||
});
|
||||
|
||||
services.AddIdentity<ApplicationUser, IdentityRole>()
|
||||
.AddDefaultUI(UIFramework.Bootstrap4)
|
||||
.AddEntityFrameworkStores<AppIdentityDbContext>()
|
||||
.AddDefaultTokenProviders();
|
||||
|
||||
// Build the service provider.
|
||||
var sp = services.BuildServiceProvider();
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ using Xunit;
|
||||
|
||||
namespace Microsoft.eShopWeb.FunctionalTests.WebRazorPages
|
||||
{
|
||||
[Collection("Sequential")]
|
||||
public class BasketPageCheckout : IClassFixture<CustomWebApplicationFactory<Startup>>
|
||||
{
|
||||
public BasketPageCheckout(CustomWebApplicationFactory<Startup> factory)
|
||||
@@ -28,7 +29,7 @@ namespace Microsoft.eShopWeb.FunctionalTests.WebRazorPages
|
||||
string regexpression = @"name=""__RequestVerificationToken"" type=""hidden"" value=""([-A-Za-z0-9+=/\\_]+?)""";
|
||||
var regex = new Regex(regexpression);
|
||||
var match = regex.Match(input);
|
||||
return match.Groups.LastOrDefault().Value;
|
||||
return match.Groups.Values.LastOrDefault().Value;
|
||||
}
|
||||
|
||||
[Fact]
|
||||
|
||||
@@ -6,6 +6,7 @@ using Xunit;
|
||||
|
||||
namespace Microsoft.eShopWeb.FunctionalTests.WebRazorPages
|
||||
{
|
||||
[Collection("Sequential")]
|
||||
public class HomePageOnGet : IClassFixture<CustomWebApplicationFactory<Startup>>
|
||||
{
|
||||
public HomePageOnGet(CustomWebApplicationFactory<Startup> factory)
|
||||
|
||||
Reference in New Issue
Block a user