Skip to content

Commit c1b23b6

Browse files
authored
Support Testcontainers 4.8.0 (#1370)
1 parent 5885324 commit c1b23b6

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/WireMock.Net.Testcontainers/WireMock.Net.Testcontainers.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4040
</PackageReference>
4141
<PackageReference Include="Stef.Validation" Version="0.1.1" />
42-
<PackageReference Include="Testcontainers" Version="4.7.0" />
42+
<PackageReference Include="Testcontainers" Version="4.8.0" />
4343
</ItemGroup>
4444

4545
<ItemGroup>

src/WireMock.Net.Testcontainers/WireMockContainer.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,12 +128,14 @@ public HttpClient CreateClient(HttpMessageHandler innerHandler, params Delegatin
128128
/// </summary>
129129
/// <param name="source">The source directory or file to be copied.</param>
130130
/// <param name="target">The target directory path to copy the files to.</param>
131+
/// <param name="uid">The user ID to set for the copied file or directory. Defaults to 0 (root).</param>
132+
/// <param name="gid">The group ID to set for the copied file or directory. Defaults to 0 (root).</param>
131133
/// <param name="fileMode">The POSIX file mode permission.</param>
132134
/// <param name="ct">Cancellation token.</param>
133135
/// <returns>A task that completes when the directory or file has been copied.</returns>
134-
public new async Task CopyAsync(string source, string target, UnixFileModes fileMode = Unix.FileMode644, CancellationToken ct = default)
136+
public new async Task CopyAsync(string source, string target, uint uid = 0, uint gid = 0, UnixFileModes fileMode = Unix.FileMode644, CancellationToken ct = default)
135137
{
136-
await base.CopyAsync(source, target, fileMode, ct);
138+
await base.CopyAsync(source, target, uid, gid, fileMode, ct);
137139

138140
if (_configuration.WatchStaticMappings && await PathStartsWithContainerMappingsPath(target))
139141
{

0 commit comments

Comments
 (0)