[#33] Client: Add extended life tests

Signed-off-by: Pavel Gross <p.gross@yadro.com>
This commit is contained in:
Pavel Gross 2025-02-19 10:55:57 +03:00
parent 2e56c13946
commit bd8eb7cc60
24 changed files with 1020 additions and 976 deletions

View file

@ -51,6 +51,16 @@ public struct FrostFsPlacementPolicy(bool unique,
ContainerBackupFactor = BackupFactor
};
if (Selectors != null && Selectors.Count > 0)
{
policy.Selectors.AddRange(Selectors.Select(s => s.GetMessage()));
}
if (Filters != null && Filters.Count > 0)
{
policy.Filters.AddRange(Filters.Select(s => s.ToMessage()));
}
foreach (var replica in Replicas)
{
policy.Replicas.Add(replica.ToMessage());