-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
75 changed files
with
379 additions
and
325 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
namespace Basic_tests; | ||
|
||
// ReSharper disable once UnusedType.Global | ||
public class Startup | ||
{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using CommandLine.Common.TestInfrastructure; | ||
using grate.Configuration; | ||
using grate.Migration; | ||
using Microsoft.Extensions.DependencyInjection; | ||
using Microsoft.Extensions.Hosting; | ||
using TestCommon.TestInfrastructure; | ||
|
||
namespace CommandLine.Common; | ||
|
||
// ReSharper disable once UnusedType.Global | ||
public abstract class Startup< | ||
TTestContainerDatabase, | ||
TExternalDatabase, | ||
TGrateTestContext>: TestCommon.Startup<TTestContainerDatabase, TExternalDatabase, TGrateTestContext> | ||
where TTestContainerDatabase : ITestDatabase | ||
where TExternalDatabase : ITestDatabase | ||
where TGrateTestContext : IGrateTestContext | ||
{ | ||
protected abstract DatabaseType DatabaseType { get; } | ||
|
||
protected override void ConfigureExtraServices(IServiceCollection services, HostBuilderContext context) | ||
{ | ||
services.AddSingleton<IGrateMigrator>(new CommandLineGrateMigrator(DatabaseType)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,12 @@ | ||
using grate.Configuration; | ||
using Oraclde.TestInfrastructure; | ||
using Oracle.TestInfrastructure; | ||
using TestCommon.TestInfrastructure; | ||
|
||
namespace CommandLine.Oracle; | ||
|
||
// ReSharper disable once UnusedType.Global | ||
public class Startup: TestCommon.Startup | ||
public class Startup: Common.Startup<OracleTestContainerDatabase, OracleExternalDatabase, OracleGrateTestContext> | ||
{ | ||
protected override DatabaseType DatabaseType => DatabaseType.Oracle; | ||
protected override Type TestContainerDatabaseType => typeof(OracleTestContainerDatabase); | ||
protected override Type TestContextType => typeof(OracleGrateTestContext); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
using TestCommon.Generic; | ||
using Oracle.TestInfrastructure; | ||
using TestCommon.Generic; | ||
using TestCommon.TestInfrastructure; | ||
|
||
namespace Oracle; | ||
|
||
[Collection(nameof(OracleTestContainerDatabase))] | ||
public class Database(IGrateTestContext testContext, ITestOutputHelper testOutput) | ||
[Collection(nameof(OracleGrateTestContext))] | ||
public class Database(OracleGrateTestContext testContext, ITestOutputHelper testOutput) | ||
: GenericDatabase(testContext, testOutput); |
5 changes: 3 additions & 2 deletions
5
unittests/Oracle/DependencyInjection/ServiceCollectionTest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
using TestCommon.TestInfrastructure; | ||
using Oracle.TestInfrastructure; | ||
using TestCommon.TestInfrastructure; | ||
|
||
namespace Oracle.Running_MigrationScripts; | ||
|
||
[Collection(nameof(OracleTestContainerDatabase))] | ||
[Collection(nameof(OracleGrateTestContext))] | ||
// ReSharper disable once InconsistentNaming | ||
public class Anytime_scripts(IGrateTestContext testContext, ITestOutputHelper testOutput) | ||
public class Anytime_scripts(OracleGrateTestContext testContext, ITestOutputHelper testOutput) | ||
: TestCommon.Generic.Running_MigrationScripts.Anytime_scripts(testContext, testOutput); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
using TestCommon.TestInfrastructure; | ||
using Oracle.TestInfrastructure; | ||
using TestCommon.TestInfrastructure; | ||
|
||
namespace Oracle.Running_MigrationScripts; | ||
|
||
// ReSharper disable once UnusedType.Global | ||
[Collection(nameof(OracleTestContainerDatabase))] | ||
public class DropDatabase(IGrateTestContext testContext, ITestOutputHelper testOutput) | ||
[Collection(nameof(OracleGrateTestContext))] | ||
public class DropDatabase(OracleGrateTestContext testContext, ITestOutputHelper testOutput) | ||
: TestCommon.Generic.Running_MigrationScripts.DropDatabase(testContext, testOutput); |
7 changes: 4 additions & 3 deletions
7
unittests/Oracle/Running_MigrationScripts/Environment_scripts.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
using TestCommon.TestInfrastructure; | ||
using Oracle.TestInfrastructure; | ||
using TestCommon.TestInfrastructure; | ||
|
||
namespace Oracle.Running_MigrationScripts; | ||
|
||
// ReSharper disable once UnusedType.Global | ||
[Collection(nameof(OracleTestContainerDatabase))] | ||
public class Environment_scripts(IGrateTestContext testContext, ITestOutputHelper testOutput) | ||
[Collection(nameof(OracleGrateTestContext))] | ||
public class Environment_scripts(OracleGrateTestContext testContext, ITestOutputHelper testOutput) | ||
: TestCommon.Generic.Running_MigrationScripts.Environment_scripts(testContext, testOutput); | ||
|
7 changes: 4 additions & 3 deletions
7
unittests/Oracle/Running_MigrationScripts/Everytime_scripts.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
using TestCommon.TestInfrastructure; | ||
using Oracle.TestInfrastructure; | ||
using TestCommon.TestInfrastructure; | ||
|
||
namespace Oracle.Running_MigrationScripts; | ||
|
||
[Collection(nameof(OracleTestContainerDatabase))] | ||
public class Everytime_scripts(IGrateTestContext testContext, ITestOutputHelper testOutput) | ||
[Collection(nameof(OracleGrateTestContext))] | ||
public class Everytime_scripts(OracleGrateTestContext testContext, ITestOutputHelper testOutput) | ||
: TestCommon.Generic.Running_MigrationScripts.Everytime_scripts(testContext, testOutput); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
unittests/Oracle/Running_MigrationScripts/One_time_scripts.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.