[#650] Add Copies Numbers for PostObject operation

Signed-off-by: Pavel Pogodaev <p.pogodaev@yadro.com>
This commit is contained in:
Pavel Pogodaev 2025-02-27 12:19:49 +03:00
parent d85e5b10bb
commit c0c4bdb366
6 changed files with 174 additions and 3 deletions

View file

@ -138,8 +138,18 @@ func (t *TreeServiceMock) GetAllBucketCORS(ctx context.Context, bktInfo *data.Bu
return []oid.Address{cors}, nil
}
func (t *TreeServiceMock) DeleteBucketCORS(context.Context, *data.BucketInfo) ([]oid.Address, error) {
panic("implement me")
func (t *TreeServiceMock) DeleteBucketCORS(_ context.Context, bktInfo *data.BucketInfo) ([]oid.Address, error) {
systemMap, ok := t.system[bktInfo.CID.EncodeToString()]
if !ok {
return []oid.Address{}, tree.ErrNodeNotFound
}
_, ok = systemMap["cors"]
if !ok {
return []oid.Address{}, tree.ErrNodeNotFound
}
return []oid.Address{}, nil
}
func (t *TreeServiceMock) GetVersions(_ context.Context, bktInfo *data.BucketInfo, objectName string) ([]*data.NodeVersion, error) {