From c1b23b615e62518fdde779fd418bdaf448f548b2 Mon Sep 17 00:00:00 2001 From: Michi Date: Wed, 22 Oct 2025 10:18:16 +0200 Subject: [PATCH] Support Testcontainers 4.8.0 (#1370) --- .../WireMock.Net.Testcontainers.csproj | 2 +- src/WireMock.Net.Testcontainers/WireMockContainer.cs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/src/WireMock.Net.Testcontainers/WireMock.Net.Testcontainers.csproj b/src/WireMock.Net.Testcontainers/WireMock.Net.Testcontainers.csproj index f574e744..cf37e666 100644 --- a/src/WireMock.Net.Testcontainers/WireMock.Net.Testcontainers.csproj +++ b/src/WireMock.Net.Testcontainers/WireMock.Net.Testcontainers.csproj @@ -39,7 +39,7 @@ runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/src/WireMock.Net.Testcontainers/WireMockContainer.cs b/src/WireMock.Net.Testcontainers/WireMockContainer.cs index f87c99be..a01a6add 100644 --- a/src/WireMock.Net.Testcontainers/WireMockContainer.cs +++ b/src/WireMock.Net.Testcontainers/WireMockContainer.cs @@ -128,12 +128,14 @@ public sealed class WireMockContainer : DockerContainer /// /// The source directory or file to be copied. /// The target directory path to copy the files to. + /// The user ID to set for the copied file or directory. Defaults to 0 (root). + /// The group ID to set for the copied file or directory. Defaults to 0 (root). /// The POSIX file mode permission. /// Cancellation token. /// A task that completes when the directory or file has been copied. - public new async Task CopyAsync(string source, string target, UnixFileModes fileMode = Unix.FileMode644, CancellationToken ct = default) + public new async Task CopyAsync(string source, string target, uint uid = 0, uint gid = 0, UnixFileModes fileMode = Unix.FileMode644, CancellationToken ct = default) { - await base.CopyAsync(source, target, fileMode, ct); + await base.CopyAsync(source, target, uid, gid, fileMode, ct); if (_configuration.WatchStaticMappings && await PathStartsWithContainerMappingsPath(target)) {