Skip to content

Commit

Permalink
updated test to not use obsolete composeUp func
Browse files Browse the repository at this point in the history
  • Loading branch information
mariotoffia committed Sep 29, 2021
1 parent c0766fc commit 54a8564
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Documentation: https://github.com/mariotoffia/FluentDocker
</PropertyGroup>

<ItemGroup>
<!-- <PackageReference Include="GitVersionTask" Version="5.3.7" PrivateAssets="All" /> -->
<PackageReference Include="GitVersionTask" Version="5.3.7" PrivateAssets="All" />
<PackageReference Include="MSTest.TestFramework" Version="1.1.17" />
</ItemGroup>
<ItemGroup>
Expand Down
17 changes: 13 additions & 4 deletions Ductus.FluentDocker.Tests/CommandTests/ComposeCommandTests.cs
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -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<string>() { file },
Certificates = DockerHost.Certificates
});

Assert.IsTrue(result.Success);

var ids = DockerHost.Host.ComposePs(composeFile: file, certificates: DockerHost.Certificates);
Expand Down Expand Up @@ -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<string>() { file },
Certificates = hostService.Certificates
});
}
}
}
2 changes: 1 addition & 1 deletion Ductus.FluentDocker/Ductus.FluentDocker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<LangVersion>latest</LangVersion>
</PropertyGroup>
<ItemGroup>
<!-- <PackageReference Include="GitVersionTask" Version="5.3.7" PrivateAssets="All" /> -->
<PackageReference Include="GitVersionTask" Version="5.3.7" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.0.0" PrivateAssets="All" />
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
<PackageReference Include="SharpCompress" Version="0.23.0" />
Expand Down

0 comments on commit 54a8564

Please sign in to comment.