forked from TrueCloudLab/frostfs-node
[#1109] object: Validate attribute EXPIRATION_EPOCH
on put
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
fd28461def
commit
40b68bcb6c
2 changed files with 28 additions and 30 deletions
|
@ -195,6 +195,8 @@ func TestFormatValidator_Validate(t *testing.T) {
|
|||
val := "text"
|
||||
err := v.Validate(context.Background(), fn(val), false)
|
||||
require.Error(t, err)
|
||||
err = v.Validate(context.Background(), fn(val), true)
|
||||
require.Error(t, err)
|
||||
})
|
||||
|
||||
t.Run("expired object", func(t *testing.T) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue