regres => yes
This commit is contained in:
@ -28,7 +28,7 @@ namespace test
|
|||||||
|
|
||||||
|
|
||||||
[Collection("Yavsc mandatory success story")]
|
[Collection("Yavsc mandatory success story")]
|
||||||
[Trait("regres", "no")]
|
[Trait("regres", "yes")]
|
||||||
public class BatchTests: BaseTestContext, IClassFixture<ServerSideFixture>, IDisposable
|
public class BatchTests: BaseTestContext, IClassFixture<ServerSideFixture>, IDisposable
|
||||||
{
|
{
|
||||||
ServerSideFixture _fixture;
|
ServerSideFixture _fixture;
|
||||||
|
@ -5,7 +5,7 @@ using Xunit.Abstractions;
|
|||||||
namespace test.Mandatory
|
namespace test.Mandatory
|
||||||
{
|
{
|
||||||
[Collection("Database")]
|
[Collection("Database")]
|
||||||
[Trait("regres", "no")]
|
[Trait("regres", "yes")]
|
||||||
[Trait("dev", "wip")]
|
[Trait("dev", "wip")]
|
||||||
public class Database: IClassFixture<ServerSideFixture>, IDisposable
|
public class Database: IClassFixture<ServerSideFixture>, IDisposable
|
||||||
{
|
{
|
||||||
@ -16,9 +16,8 @@ namespace test.Mandatory
|
|||||||
this.output = output;
|
this.output = output;
|
||||||
_serverFixture = serverFixture;
|
_serverFixture = serverFixture;
|
||||||
try {
|
try {
|
||||||
|
if (_serverFixture.DbCreated)
|
||||||
= new Microsoft.Data.Entity.Infrastructure.DatabaseFacade(_serverFixture.DbContext.Database);
|
|
||||||
|
|
||||||
_serverFixture.DropTestDb();
|
_serverFixture.DropTestDb();
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -36,7 +35,6 @@ namespace test.Mandatory
|
|||||||
[Fact]
|
[Fact]
|
||||||
public void InstallFromScratchUsingPoweredNpgsqlUser()
|
public void InstallFromScratchUsingPoweredNpgsqlUser()
|
||||||
{
|
{
|
||||||
|
|
||||||
_serverFixture.EnsureTestDb();
|
_serverFixture.EnsureTestDb();
|
||||||
_serverFixture.UpgradeDb();
|
_serverFixture.UpgradeDb();
|
||||||
}
|
}
|
||||||
|
@ -19,7 +19,7 @@ using static OAuth.AspNet.AuthServer.Constants;
|
|||||||
namespace test
|
namespace test
|
||||||
{
|
{
|
||||||
[Collection("Yavsc Work In Progress")]
|
[Collection("Yavsc Work In Progress")]
|
||||||
[Trait("regres", "no")]
|
[Trait("regres", "yes")]
|
||||||
public class Remoting : BaseTestContext, IClassFixture<ServerSideFixture>
|
public class Remoting : BaseTestContext, IClassFixture<ServerSideFixture>
|
||||||
{
|
{
|
||||||
public Remoting(ServerSideFixture serverFixture, ITestOutputHelper output)
|
public Remoting(ServerSideFixture serverFixture, ITestOutputHelper output)
|
||||||
@ -78,6 +78,8 @@ namespace test
|
|||||||
}
|
}
|
||||||
internal static void EnsureWeb()
|
internal static void EnsureWeb()
|
||||||
{
|
{
|
||||||
|
throw new NotImplementedException();
|
||||||
|
|
||||||
DirectoryInfo di = new DirectoryInfo("../Yavsc");
|
DirectoryInfo di = new DirectoryInfo("../Yavsc");
|
||||||
Environment.CurrentDirectory = di.FullName;
|
Environment.CurrentDirectory = di.FullName;
|
||||||
var host = new WebHostBuilder();
|
var host = new WebHostBuilder();
|
||||||
@ -86,7 +88,7 @@ namespace test
|
|||||||
|
|
||||||
.UseEnvironment("Development")
|
.UseEnvironment("Development")
|
||||||
|
|
||||||
.UseServer("web")
|
.UseServer("Microsoft.AspNet.Server.Kestrel")
|
||||||
.UseStartup<Yavsc.Startup>()
|
.UseStartup<Yavsc.Startup>()
|
||||||
.Build();
|
.Build();
|
||||||
// hostengine.ApplicationServices
|
// hostengine.ApplicationServices
|
||||||
|
@ -140,18 +140,10 @@ namespace test
|
|||||||
|
|
||||||
|
|
||||||
TestingDatabase = (string)builder["Database"];
|
TestingDatabase = (string)builder["Database"];
|
||||||
|
|
||||||
Logger.LogInformation("ServerSideFixture created.");
|
Logger.LogInformation("ServerSideFixture created.");
|
||||||
}
|
}
|
||||||
|
|
||||||
[Fact]
|
|
||||||
public void InitTestHost()
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
EnsureTestDb();
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
private ModelBuilder modelBuilder;
|
private ModelBuilder modelBuilder;
|
||||||
|
|
||||||
@ -201,6 +193,8 @@ namespace test
|
|||||||
{
|
{
|
||||||
Logger.LogInformation("Disposing");
|
Logger.LogInformation("Disposing");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public bool DbCreated { get { return dbCreated; } }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user