|
@@ -1,7 +1,11 @@
|
|
|
-using DotNet.Testcontainers.Builders;
|
|
|
|
|
|
|
+using System.Diagnostics;
|
|
|
|
|
+
|
|
|
|
|
+using DotNet.Testcontainers.Builders;
|
|
|
using DotNet.Testcontainers.Containers;
|
|
using DotNet.Testcontainers.Containers;
|
|
|
using DotNet.Testcontainers.Images;
|
|
using DotNet.Testcontainers.Images;
|
|
|
|
|
|
|
|
|
|
+using Renci.SshNet.Abstractions;
|
|
|
|
|
+
|
|
|
namespace Renci.SshNet.IntegrationTests.TestsFixtures
|
|
namespace Renci.SshNet.IntegrationTests.TestsFixtures
|
|
|
{
|
|
{
|
|
|
public sealed class InfrastructureFixture : IDisposable
|
|
public sealed class InfrastructureFixture : IDisposable
|
|
@@ -34,6 +38,10 @@ namespace Renci.SshNet.IntegrationTests.TestsFixtures
|
|
|
|
|
|
|
|
public async Task InitializeAsync()
|
|
public async Task InitializeAsync()
|
|
|
{
|
|
{
|
|
|
|
|
+ DiagnosticAbstraction.Source.Switch = new SourceSwitch("sourceSwitch", "Verbose");
|
|
|
|
|
+ DiagnosticAbstraction.Source.Listeners.Remove("Default");
|
|
|
|
|
+ DiagnosticAbstraction.Source.Listeners.Add(new ConsoleTraceListener());
|
|
|
|
|
+
|
|
|
_sshServerImage = new ImageFromDockerfileBuilder()
|
|
_sshServerImage = new ImageFromDockerfileBuilder()
|
|
|
.WithName("renci-ssh-tests-server-image")
|
|
.WithName("renci-ssh-tests-server-image")
|
|
|
.WithDockerfileDirectory(CommonDirectoryPath.GetSolutionDirectory(), Path.Combine("test", "Renci.SshNet.IntegrationTests"))
|
|
.WithDockerfileDirectory(CommonDirectoryPath.GetSolutionDirectory(), Path.Combine("test", "Renci.SshNet.IntegrationTests"))
|