diff --git a/Duplicati/UnitTest/BorderTests.cs b/Duplicati/UnitTest/BorderTests.cs index cb5413f98..352c1c370 100644 --- a/Duplicati/UnitTest/BorderTests.cs +++ b/Duplicati/UnitTest/BorderTests.cs @@ -1,4 +1,4 @@ -// Copyright (C) 2025, The Duplicati Team +// Copyright (C) 2025, The Duplicati Team // https://duplicati.com, hello@duplicati.com // // Permission is hereby granted, free of charge, to any person obtaining a @@ -26,6 +26,7 @@ using System.Linq; using System.Collections.Generic; using Duplicati.Library.Interface; using Assert = NUnit.Framework.Legacy.ClassicAssert; +using Duplicati.Library.Utility; namespace Duplicati.UnitTest { @@ -175,6 +176,23 @@ namespace Duplicati.UnitTest }); } + [Test] + [Category("Border")] + public void Run10kBackupRead() + { + if (!PermissionHelper.HasSeBackupPrivilege()) + { + Assert.Ignore("This test requires the SeBackupPrivilege to be set, which is not available in this environment."); + } + else + { + RunCommands(1024 * 10, modifyOptions: opts => + { + opts["backupread-policy"] = "required"; + }); + } + } + public static Dictionary WriteTestFilesToFolder(string targetfolder, int blocksize, int basedatasize = 0) { if (basedatasize <= 0)