forked from TrueCloudLab/frostfs-node
[#1385] metabase: Validate that tombstone and target have the same container ID
Target container ID is taken from tombstone: cmd/frostfs-node/object.go:507 Also object of type `TOMBSTONE` contains objectID, so tombstone and tombstoned object must have the same containerID. Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
This commit is contained in:
parent
8434f3dbfc
commit
76268e3ea2
16 changed files with 108 additions and 52 deletions
|
@ -37,7 +37,7 @@ func TestDB_Exists(t *testing.T) {
|
|||
require.True(t, exists)
|
||||
|
||||
t.Run("removed object", func(t *testing.T) {
|
||||
err := metaInhume(db, object.AddressOf(regular), oidtest.Address())
|
||||
err := metaInhume(db, object.AddressOf(regular), oidtest.ID())
|
||||
require.NoError(t, err)
|
||||
|
||||
exists, err := metaExists(db, object.AddressOf(regular))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue