From 54a8564ca5101021b5ba5e71b8f7a26b652c5314 Mon Sep 17 00:00:00 2001 From: Mario Toffia Date: Wed, 29 Sep 2021 06:32:44 +0200 Subject: [PATCH] updated test to not use obsolete composeUp func --- .../Ductus.FluentDocker.MsTest.csproj | 2 +- .../CommandTests/ComposeCommandTests.cs | 17 +++++++++++++---- Ductus.FluentDocker/Ductus.FluentDocker.csproj | 2 +- 3 files changed, 15 insertions(+), 6 deletions(-) diff --git a/Ductus.FluentDocker.MsTest/Ductus.FluentDocker.MsTest.csproj b/Ductus.FluentDocker.MsTest/Ductus.FluentDocker.MsTest.csproj index 3e30c0f..3838171 100644 --- a/Ductus.FluentDocker.MsTest/Ductus.FluentDocker.MsTest.csproj +++ b/Ductus.FluentDocker.MsTest/Ductus.FluentDocker.MsTest.csproj @@ -28,7 +28,7 @@ Documentation: https://github.com/mariotoffia/FluentDocker - + diff --git a/Ductus.FluentDocker.Tests/CommandTests/ComposeCommandTests.cs b/Ductus.FluentDocker.Tests/CommandTests/ComposeCommandTests.cs index 56a581b..195c766 100644 --- a/Ductus.FluentDocker.Tests/CommandTests/ComposeCommandTests.cs +++ b/Ductus.FluentDocker.Tests/CommandTests/ComposeCommandTests.cs @@ -1,10 +1,8 @@ using System.IO; -using System.Linq; using System.Threading.Tasks; using Ductus.FluentDocker.Commands; using Ductus.FluentDocker.Extensions; using Ductus.FluentDocker.Model.Common; -using Ductus.FluentDocker.Services; using Ductus.FluentDocker.Services.Extensions; using Ductus.FluentDocker.Services.Impl; using Ductus.FluentDocker.Tests.Compose; @@ -33,7 +31,13 @@ public async Task try { - var result = DockerHost.Host.ComposeUp(composeFile: file, certificates: DockerHost.Certificates); + var result = DockerHost.Host + .ComposeUpCommand(new Commands.Compose.ComposeUpCommandArgs + { + ComposeFiles = new System.Collections.Generic.List() { file }, + Certificates = DockerHost.Certificates + }); + Assert.IsTrue(result.Success); var ids = DockerHost.Host.ComposePs(composeFile: file, certificates: DockerHost.Certificates); @@ -83,8 +87,13 @@ public void Issue79_DockerComposeOnDockerMachineShallWork() typeof(NsResolver).ResourceExtract(fullPath); var hostService = new DockerHostService("wifi-test"); + var composeResponse = hostService.Host - .ComposeUp(composeFile: file, certificates: hostService.Certificates); + .ComposeUpCommand(new Commands.Compose.ComposeUpCommandArgs + { + ComposeFiles = new System.Collections.Generic.List() { file }, + Certificates = hostService.Certificates + }); } } } diff --git a/Ductus.FluentDocker/Ductus.FluentDocker.csproj b/Ductus.FluentDocker/Ductus.FluentDocker.csproj index 23e7d82..748156b 100644 --- a/Ductus.FluentDocker/Ductus.FluentDocker.csproj +++ b/Ductus.FluentDocker/Ductus.FluentDocker.csproj @@ -27,7 +27,7 @@ latest - +