forked from TrueCloudLab/frostfs-node
[#1686] blobstor: Add generic tests
This tests check that each blobstor component behaves similarly when same methods are being used. It is intended to serve as a specification for all future components. Signed-off-by: Evgenii Stratonikov <evgeniy@morphbits.ru>
This commit is contained in:
parent
b2d4cc556e
commit
0b95a21701
11 changed files with 518 additions and 6 deletions
|
@ -222,7 +222,7 @@ func (t *FSTree) Put(prm common.PutPrm) (common.PutRes, error) {
|
|||
if !prm.DontCompress {
|
||||
prm.RawData = t.Compress(prm.RawData)
|
||||
}
|
||||
return common.PutRes{}, os.WriteFile(p, prm.RawData, t.Permissions)
|
||||
return common.PutRes{StorageID: []byte{}}, os.WriteFile(p, prm.RawData, t.Permissions)
|
||||
}
|
||||
|
||||
// PutStream puts executes handler on a file opened for write.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue