mirror of
https://github.com/wiremock/WireMock.Net.git
synced 2026-11-20 23:51:44 +01:00
Test Testcontainers ConsoleApp on Linux (#1547)
* Test Testcontainers ConsoleApp on Linux * fix
This commit is contained in:
1 parent
3674007295
commit
96c5fcae8e
6 files changed
+113
-2
No files matched your search
@@ -0,0 +1,34 @@
|
||||
// Copyright © WireMock.Net
|
||||
|
||||
using WireMock.Net.Testcontainers;
|
||||
|
||||
namespace WireMock.Net.TestContainers.ConsoleApp;
|
||||
|
||||
/// <summary>
|
||||
/// Test if WireMock.Net.Testcontainers is compatible with the latest version of Testcontainers for .NET
|
||||
/// </summary>
|
||||
internal class Program
|
||||
{
|
||||
private static async Task<int> Main(string[] args)
|
||||
{
|
||||
try
|
||||
{
|
||||
await TestAsync();
|
||||
return 0;
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Console.Error.WriteLine(ex);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
private static async Task TestAsync()
|
||||
{
|
||||
var builder = new WireMockContainerBuilder()
|
||||
.WithLinuxImage()
|
||||
.WithWatchStaticMappings(true);
|
||||
|
||||
_ = builder.Build();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user