forked from TrueCloudLab/frostfs-s3-gw
[#650] Add Copies Numbers for PostObject operation
Signed-off-by: Pavel Pogodaev <p.pogodaev@yadro.com>
This commit is contained in:
parent
d85e5b10bb
commit
c0c4bdb366
6 changed files with 174 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue