-
-
Notifications
You must be signed in to change notification settings - Fork 476
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extracted data access helpers and migration support to Weasel.
- Loading branch information
1 parent
af97bf3
commit d324906
Showing
441 changed files
with
2,822 additions
and
9,942 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 |
---|---|---|
|
@@ -8,4 +8,5 @@ services: | |
POSTGRES_PASSWORD: postgres | ||
POSTGRES_USER: postgres | ||
POSTGRES_DB: marten_testing | ||
NAMEDATALEN: 100 | ||
|
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
33 changes: 33 additions & 0 deletions
33
src/Marten.CommandLine.Testing/ApplyThenAssertSmokeTests.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 |
---|---|---|
@@ -0,0 +1,33 @@ | ||
using System.Threading.Tasks; | ||
using Marten.CommandLine.Commands; | ||
using Marten.Testing.Documents; | ||
using Marten.Testing.Harness; | ||
using Microsoft.Extensions.Hosting; | ||
using Xunit; | ||
|
||
namespace Marten.CommandLine.Testing | ||
{ | ||
public class ApplyThenAssertSmokeTests | ||
{ | ||
[Fact] | ||
public async Task do_it_all() | ||
{ | ||
var options = new StoreOptions(); | ||
options.Connection(ConnectionSource.ConnectionString); | ||
options.Schema.For<User>(); | ||
options.Schema.For<Target>(); | ||
|
||
await new DocumentStore(options).Advanced.Clean.CompletelyRemoveAllAsync(); | ||
|
||
await new ApplyCommand().Execute(new MartenInput | ||
{ | ||
HostBuilder = new HostBuilder().ConfigureServices(x => x.AddMarten(options)) | ||
}); | ||
|
||
await new AssertCommand().Execute(new MartenInput | ||
{ | ||
HostBuilder = new HostBuilder().ConfigureServices(x => x.AddMarten(options)) | ||
}); | ||
} | ||
} | ||
} |
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,2 @@ | ||
using Xunit; | ||
[assembly: CollectionBehavior(DisableTestParallelization = true)] |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System.IO; | ||
using System.Reflection.Metadata; | ||
using System.Threading.Tasks; | ||
using Baseline; | ||
using Marten.CommandLine.Commands.Patch; | ||
using Marten.Testing.Documents; | ||
using Marten.Testing.Harness; | ||
using Microsoft.Extensions.Hosting; | ||
using Xunit; | ||
|
||
namespace Marten.CommandLine.Testing | ||
{ | ||
public class PatchCommandSmokeTests | ||
{ | ||
|
||
[Fact] | ||
public async Task can_write_both_files() | ||
{ | ||
var options = new StoreOptions(); | ||
options.Connection(ConnectionSource.ConnectionString); | ||
options.Schema.For<User>(); | ||
options.Schema.For<Target>(); | ||
|
||
var input = new PatchInput() | ||
{ | ||
HostBuilder = new HostBuilder().ConfigureServices(x => x.AddMarten(options)), | ||
FileName = Path.GetTempPath().AppendPath("dump1.sql"), | ||
|
||
|
||
}; | ||
|
||
await new PatchCommand().Execute(input); | ||
} | ||
} | ||
} |
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
Oops, something went wrong.