[#24] Client: Implement pool part1
first iteration - base classes and methods Signed-off-by: Pavel Gross <p.gross@yadro.com>
This commit is contained in:
parent
d1271df207
commit
c9a75ea025
72 changed files with 2786 additions and 468 deletions
|
@ -1,3 +1,5 @@
|
|||
using System.Collections.ObjectModel;
|
||||
|
||||
using FrostFS.Container;
|
||||
using FrostFS.Refs;
|
||||
using FrostFS.SDK.ClientV2;
|
||||
|
@ -41,7 +43,7 @@ public class ContainerMocker(string key) : ContainerServiceBase(key)
|
|||
putResponse.VerifyHeader = GetResponseVerificationHeader(putResponse);
|
||||
|
||||
var metadata = new Metadata();
|
||||
var putContainerResponse = new AsyncUnaryCall<PutResponse>(
|
||||
using var putContainerResponse = new AsyncUnaryCall<PutResponse>(
|
||||
Task.FromResult(putResponse),
|
||||
Task.FromResult(metadata),
|
||||
() => new Grpc.Core.Status(StatusCode.OK, string.Empty),
|
||||
|
@ -180,7 +182,7 @@ public class ContainerMocker(string key) : ContainerServiceBase(key)
|
|||
|
||||
public bool ReturnContainerRemoved { get; set; }
|
||||
|
||||
public List<byte[]> ContainerIds { get; set; } = [];
|
||||
public Collection<byte[]> ContainerIds { get; } = [];
|
||||
|
||||
public List<RequestData<DeleteRequest>> Requests { get; set; } = [];
|
||||
public Collection<RequestData<DeleteRequest>> Requests { get; } = [];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue